gribapi.h 1.84 KB
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
2
3
#ifndef _GRIBAPI_H
#define _GRIBAPI_H

Uwe Schulzweida's avatar
Uwe Schulzweida committed
4
5
#define  GRIBAPI_MISSVAL  -9.E33

Uwe Schulzweida's avatar
Uwe Schulzweida committed
6
7
8
9
10
11
12
13
14
15
16
/* GRIB2 Level Types */
#define  GRIB2_LTYPE_SURFACE               1
#define  GRIB2_LTYPE_ISOBARIC            100
#define  GRIB2_LTYPE_MEANSEA             101
#define  GRIB2_LTYPE_ALTITUDE            102
#define  GRIB2_LTYPE_HEIGHT              103
#define  GRIB2_LTYPE_SIGMA               104
#define  GRIB2_LTYPE_HYBRID              105
#define  GRIB2_LTYPE_LANDDEPTH           106
#define  GRIB2_LTYPE_ISENTROPIC          107
#define  GRIB2_LTYPE_SEADEPTH            160
Uwe Schulzweida's avatar
Uwe Schulzweida committed
17

Uwe Schulzweida's avatar
Uwe Schulzweida committed
18
19
20
21
22
23
24
25
26
27
28
29
30
/* GRIB2 Data representation type (Grid Type) */
#define  GRIB2_GTYPE_LATLON                0  /*  latitude/longitude                       */
#define  GRIB2_GTYPE_LATLON_ROT            1  /*  rotated latitude/longitude               */
#define  GRIB2_GTYPE_LATLON_STR            2  /*  stretched latitude/longitude             */
#define  GRIB2_GTYPE_LATLON_ROTSTR         3  /*  rotated and stretched latitude/longitude */
#define  GRIB2_GTYPE_GAUSSIAN             40  /*  gaussian grid                            */
#define  GRIB2_GTYPE_GAUSSIAN_ROT         41  /*  rotated gaussian grid                    */
#define  GRIB2_GTYPE_GAUSSIAN_STR         42  /*  stretched gaussian grid                  */
#define  GRIB2_GTYPE_GAUSSIAN_ROTSTR      43  /*  rotated and stretched gaussian grid      */
#define  GRIB2_GTYPE_LCC                  30  /*  Lambert conformal                        */
#define  GRIB2_GTYPE_SPECTRAL             50  /*  spherical harmonics                      */
#define  GRIB2_GTYPE_GME                 100  /*  hexagonal GME grid                       */
#define  GRIB2_GTYPE_NUMBER              101  /*  General Unstructured Grid                */
Uwe Schulzweida's avatar
Uwe Schulzweida committed
31

Uwe Schulzweida's avatar
Uwe Schulzweida committed
32
const char *gribapiLibraryVersion(void);
33
void gribapiDefHandles(int streamID);
34
35
void *gribHandleNew();
void gribHandleDelete(void *gh);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
36
37

#endif  /* _GRIBAPI_H */