updated top-level README and version_decl for V4.4.2 (#1795)
[WRF.git] / external / io_grib1 / WGRIB / grib.h
blob90a5574a28166bb57df5c78b2ebe7128bdaec0e3
1 enum Def_NCEP_Table {rean, opn, rean_nowarn, opn_nowarn};
3 unsigned char *seek_grib(FILE *file, long *pos, long *len_grib,
4 unsigned char *buffer, unsigned int buf_len);
6 int read_grib(FILE *file, long pos, long len_grib, unsigned char *buffer);
8 double ibm2flt(unsigned char *ibm);
10 void BDS_unpack(float *flt, unsigned char *bds, unsigned char *bitmap,
11 int n_bits, int n, double ref, double scale);
13 double int_power(double x, int y);
15 int flt2ieee(float x, unsigned char *ieee);
17 int wrtieee(float *array, int n, int header, FILE *output);
18 int wrtieee_header(unsigned int n, FILE *output);
20 void levels(int, int, int);
22 void PDStimes(int time_range, int p1, int p2, int time_unit);
24 int missing_points(unsigned char *bitmap, int n);
26 void EC_ext(unsigned char *pds, char *prefix, char *suffix);
28 int GDS_grid(unsigned char *gds, unsigned char *bds, int *nx, int *ny,
29 long int *nxny);
31 void GDS_prt_thin_lon(unsigned char *gds);
33 void GDS_winds(unsigned char *gds, int verbose);
35 int PDS_date(unsigned char *pds, int option, int verf_time);
37 int add_time(int *year, int *month, int *day, int *hour, int dtime, int unit);
39 int verf_time(unsigned char *pds, int *year, int *month, int *day, int *hour);
41 void print_pds(unsigned char *pds, int print_PDS, int print_PDS10, int verbose);
42 void print_gds(unsigned char *gds, int print_GDS, int print_GDS10, int verbose);
44 void ensemble(unsigned char *pds, int mode);