/usr/include/gribex/getValues.h is in libemos-dev 000392+dfsg.1-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 | #ifndef GETVALUES_H
#define GETVALUES_H
#include "gdecode.h"
#ifdef FORTRAN_NO_UNDERSCORE
#define GETINT getint
#define GETREAL getreal
#else
#define GETINT getint_
#define GETREAL getreal_
#endif
fortint getIntegerValue(gribProduct**,unsigned char*);
fortdouble getRealValue(gribProduct**,unsigned char*);
fortint GETINT(gribProduct**,unsigned char*,long);
fortdouble GETREAL(gribProduct**,unsigned char*,long);
fortint IGNWLAT(gribProduct**);
fortint IGNWLON(gribProduct**);
fortint IGSELAT(gribProduct**);
fortint IGSELON(gribProduct**);
fortint IGDI(gribProduct**);
fortint IGDJ(gribProduct**);
fortint IGIP(gribProduct**);
fortint IGLATRPL(gribProduct**);
fortint IGLONRPL(gribProduct**);
fortint IGROTATN(gribProduct**);
fortint IGLATSPL(gribProduct**);
fortint IGLONSPL(gribProduct**);
fortint IGSFACTR(gribProduct**);
fortint IGREFVAL(gribProduct**);
fortint IGDSCALE(gribProduct**);
fortdouble RGLENGTH(gribProduct**);
fortdouble RGTABLE(gribProduct**);
fortdouble RGCENTRE(gribProduct**);
fortdouble RGPARAM(gribProduct**);
fortdouble RGLEVEL(gribProduct**);
fortdouble RGLEVEL1(gribProduct**);
fortdouble RGLEVEL2(gribProduct**);
fortdouble RGDATE(gribProduct**);
fortdouble RGTIME(gribProduct**);
fortdouble RGSTEP(gribProduct**);
fortdouble RGDEFIN(gribProduct**);
fortdouble RGCLASS(gribProduct**);
fortdouble RGTYPE(gribProduct**);
fortdouble RGSTREAM(gribProduct**);
fortdouble RGEXPVER(gribProduct**);
fortdouble RGNUMPV(gribProduct**);
fortdouble RGREPRES(gribProduct**);
fortdouble RGNI(gribProduct**);
fortdouble RGNJ(gribProduct**);
fortdouble RGRESCOM(gribProduct**);
fortdouble RGNUMBER(gribProduct**);
fortdouble RGSCAN(gribProduct**);
fortdouble RGJ(gribProduct**);
fortdouble RGK(gribProduct**);
fortdouble RGM(gribProduct**);
fortdouble RGREPMOD(gribProduct**);
fortdouble RGTJ(gribProduct**);
fortdouble RGTK(gribProduct**);
fortdouble RGTM(gribProduct**);
fortdouble RGBITSPV(gribProduct**);
fortdouble RGUNUSED(gribProduct**);
fortdouble RGNVALUE(gribProduct**);
typedef fortint (*geti) (gribProduct **);
typedef fortdouble (*getf) (gribProduct **);
typedef struct {
unsigned char * name;
geti get;
} despatchI;
typedef struct {
unsigned char * name;
getf get;
} despatchR;
despatchI despatchInteger[] = {
"angleOfRotation",IGROTATN,
"bottomLayer",GLEVEL2,
"codeTable",GTABLE,
"complexPackingScalingFactor",IGIP,
"dataRepresentationType",GREPRES,
"date",GDATE,
"ecmwfClass",GCLASS,
"ecmwfExperimentVersionNumber",GEXPVER,
"ecmwfLocalDefinitionNumber",GDEFIN,
"ecmwfStream",GSTREAM,
"ecmwfType",GTYPE,
"gribLength",GLENGTH,
"iDirectionIncrement",IGDI,
"jDirectionIncrement",IGDJ,
"jPentagonalResolution",GJ,
"kPentagonalResolution",GK,
"latitudeOfThePoleOfStretching",IGLATSPL,
"latitudeOfTheSouthernPoleOfRotation",IGLATRPL,
"longitudeOfThePoleOfStretching",IGLONSPL,
"longitudeOfTheSouthernPoleOfRotation",IGLONRPL,
"mPentagonalResolution",GM,
"northWestLatitude",IGNWLAT,
"northWestLongitude",IGNWLON,
"numberOfBitsPerPackedValue",GBITSPV,
"numberOfFieldValues",GNVALUE,
"numberOfParallelsBetweenPoleAndEquator",GNUMBER,
"numberOfPointsAlongMeridian",GNJ,
"numberOfPointsAlongParallel",GNI,
"numberOfUnusedBitsAtEndOfSection4",GUNUSED,
"numberOfVerticalCoordinateParameters",GNUMPV,
"originatingCentre",GCENTRE,
"parameter", GPARAM,
"pressureLevel",GLEVEL,
"referenceValue",IGREFVAL,
"representationMode",GREPMOD,
"resolutionAndComponentsFlag",GRESCOM,
"scaleFactorUsedToPackFieldValues",IGDSCALE,
"scanningModeFlag",GSCAN,
"southEastLatitude",IGSELAT,
"southEastLongitude",IGSELON,
"stretchingFactor",IGSFACTR,
"subsetJPentagonalResolution",GTJ,
"subsetKPentagonalResolution",GTK,
"subsetMPentagonalResolution",GTM,
"time",GTIME,
"timestep",GSTEP,
"topLayer",GLEVEL1
};
despatchR despatchReal[] = {
"angleOfRotation",GROTATN,
"bottomLayer",RGLEVEL2,
"codeTable",RGTABLE,
"complexPackingScalingFactor",GIP,
"dataRepresentationType",RGREPRES,
"date",RGDATE,
"ecmwfClass",RGCLASS,
"ecmwfExperimentVersionNumber",RGEXPVER,
"ecmwfLocalDefinitionNumber",RGDEFIN,
"ecmwfStream",RGSTREAM,
"ecmwfType",RGTYPE,
"gribLength",RGLENGTH,
"iDirectionIncrement",GDI,
"jDirectionIncrement",GDJ,
"jPentagonalResolution",RGJ,
"kPentagonalResolution",RGK,
"latitudeOfThePoleOfStretching",GLATSPL,
"latitudeOfTheSouthernPoleOfRotation",GLATRPL,
"longitudeOfThePoleOfStretching",GLONSPL,
"longitudeOfTheSouthernPoleOfRotation",GLONRPL,
"mPentagonalResolution",RGM,
"northWestLatitude",GNWLAT,
"northWestLongitude",GNWLON,
"numberOfBitsPerPackedValue",RGBITSPV,
"numberOfFieldValues",RGNVALUE,
"numberOfParallelsBetweenPoleAndEquator",RGNUMBER,
"numberOfPointsAlongMeridian",RGNJ,
"numberOfPointsAlongParallel",RGNI,
"numberOfUnusedBitsAtEndOfSection4",RGUNUSED,
"numberOfVerticalCoordinateParameters",RGNUMPV,
"originatingCentre",RGCENTRE,
"parameter",RGPARAM,
"pressureLevel",RGLEVEL,
"referenceValue",GREFVAL,
"representationMode",RGREPMOD,
"resolutionAndComponentsFlag",RGRESCOM,
"scaleFactorUsedToPackFieldValues",GDSCALE,
"scanningModeFlag",RGSCAN,
"southEastLatitude",GSELAT,
"southEastLongitude",GSELON,
"stretchingFactor",GSFACTR,
"subsetJPentagonalResolution",RGTJ,
"subsetKPentagonalResolution",RGTK,
"subsetMPentagonalResolution",RGTM,
"time",RGTIME,
"timestep",RGSTEP,
"topLayer",RGLEVEL1
};
int binaryChopI(despatchI * list, int listLength, unsigned char * test);
int binaryChopR(despatchR * list, int listLength, unsigned char * test);
#endif /* End of GETVALUES_H */
|