5#include <WXP/DomainVal.h>
7#include <WXP/Filename.h>
8#include <WXP/GribPDB.h>
9#include <WXP/GribParam.h>
11#include <WXP/GridSpec.h>
13#include <WXP/ModelName.h>
14#include <WXP/VarName.h>
47 static const int NUM_VALID = 20;
50 static const int DATA_SIZE = 25000;
53 unsigned char data[DATA_SIZE];
119 int valid_data[NUM_VALID];
139 int setParam(
const char *str );
142 inline int setMissValue(
float rmiss ){ miss = rmiss;
return 1; };
143 inline int setValueBits(
int val ){ bpval = val;
return 1; };
144 inline int setWrap(
int val ){ wrap = val;
return 1; };
145 int open(
const char *filename,
int raccess );
146 int open(
const char *filename );
156 int read(
const char *spec,
Grid &grid );
161 int peek(
Grid &grid );
167 unsigned char getByte(
int loc );
171 GribParam getVer1Param(
int ver,
int src,
int table,
int param );
181 GribParam getVer2Param(
int src,
int disc,
int cat,
int param );
190 int write(
Grid &grid );
192 static int checkType(
const char *filename );
194 static int convIBMFloat(
float val,
unsigned char *pc );
196 static float convScale(
const unsigned char *pc );
200 static const int LIMIT = 300000;
This class stores date and time information.
Definition Date.h:8
This class accesses files.
Definition File.h:15
This class creates filenames.
Definition Filename.h:11
This class reads in and decodes GRIB data.
Definition GribFile.h:17
unsigned char getByte(int loc)
Definition GribFile.cc:836
GribFile()
Definition GribFile.cc:42
int readIDS(GribPDB &pdb)
Definition GribFile.cc:2040
static int checkType(const char *filename)
Definition GribFile.cc:181
int readGDB(DomainVal &dv)
Definition GribFile.cc:1399
int readBits()
Definition GribFile.cc:863
int read(Grid &grid)
Definition GribFile.cc:331
~GribFile()
Definition GribFile.cc:70
int init()
Definition GribFile.cc:88
int seekData(int val)
Definition GribFile.cc:844
int readSection()
Definition GribFile.cc:2007
int next()
Definition GribFile.cc:672
int getVersion()
Definition GribFile.h:151
int readBMB()
Definition GribFile.cc:1715
int writeBits(int val)
Definition GribFile.cc:4715
int setPDB(GribPDB &pdb, Grid &grid)
Definition GribFile.cc:1369
int close()
Definition GribFile.cc:270
static float convScale(const unsigned char *pc)
Definition GribFile.cc:4584
int readHeader()
Definition GribFile.cc:687
int readPDB(GribPDB &pdb)
Definition GribFile.cc:1099
int searchGRIB()
Definition GribFile.cc:767
int readGDS(DomainVal &dv)
Definition GribFile.cc:2068
static int setDomain(int type, DomainVal &dv)
Definition GribFile.cc:906
int readData(int bytes)
Definition GribFile.cc:810
static float convIEEEFloat(const unsigned char *pc)
Definition GribFile.cc:4555
int skipSection()
Definition GribFile.cc:2030
int readDRS()
Definition GribFile.cc:3604
int readDS(Grid &grid)
Definition GribFile.cc:3766
bool checkBMB()
Definition GribFile.cc:1743
int readPDS(GribPDB &pdb)
Definition GribFile.cc:2536
int readBDB(Grid &grid)
Definition GribFile.cc:1762
int readBMS()
Definition GribFile.cc:3721
int makeDatim(Grid &grid)
Definition GribFile.cc:4607
int useHdrFile(bool val)
Definition GribFile.cc:157
bool isOpen()
Definition GribFile.cc:119
int setMaxBad(int val)
Definition GribFile.cc:171
static float convIBMFloat(const unsigned char *pc)
Definition GribFile.cc:4490
const char * getWmoHdr()
Definition GribFile.h:153
int getHeader(Grid &grid)
Definition GribFile.cc:296
int makeInfo(GribPDB &pdb, Grid &grid)
Definition GribFile.cc:4682
This class defines vertical level parameters.
Definition GridSpec.h:7
This class defines a grid.
Definition Grid.h:20
This class sets up a repository for grids.
Definition Grids.h:14
This class retrieves forecast model name from file. The model name is cached in the object so it ca...
Definition ModelName.h:8
This class processes variable information from variable.lup file.
Definition VarName.h:9
All WXP classes fall under the WXP namespace.
Definition Angle.h:4
This struct defines basic domain parameters.
Definition DomainVal.h:5
This structure contains the values from the GRIB Product Definition Block.
Definition GribPDB.h:10
This struct stores GRIB parameter information.
Definition GribParam.h:5