varscan.h 1.89 KB
Newer Older
1
2
#ifndef  VARSCAN_H
#define  VARSCAN_H
Uwe Schulzweida's avatar
Uwe Schulzweida committed
3

4
5
#ifndef  GRID_H
#include "grid.h"
Uwe Schulzweida's avatar
Uwe Schulzweida committed
6
7
8
#endif


Uwe Schulzweida's avatar
Uwe Schulzweida committed
9
void varAddRecord(int recID, int param, int gridID, int zaxistype, int lbounds,
10
		  int level1, int level2, int level_sf, int level_unit, int prec,
11
		  int *pvarID, int *plevelID, int tsteptype, int numavg, int ltype1, int ltype2,
12
		  const char *name, const VarScanKeys *scanKeys, const var_tile_t *tiles, int *tile_index);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
13
14

void varDefVCT(size_t vctsize, double *vctptr);
15
void varDefZAxisReference(int nlev, int nvgrid, unsigned char uuid[CDI_UUID_SIZE]);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
16

17
int  varDefZaxis(int vlistID, int zaxistype, int nlevels, const double *levels, const char **cvals, size_t clength, bool lbounds,
18
		 const double *levels1, const double *levels2, int vctsize, const double *vct, char *name,
19
		 const char *longname, const char *units, int prec, int mode, int ltype1, int ltype2);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
20

21
void varDefMissval(int varID, double missval);
22
void varDefCompType(int varID, int comptype);
23
void varDefCompLevel(int varID, int complevel);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
24
25
26
27
28
29
30
void varDefInst(int varID, int instID);
int  varInqInst(int varID);
void varDefModel(int varID, int modelID);
int  varInqModel(int varID);
void varDefTable(int varID, int tableID);
int  varInqTable(int varID);

31
void varDefKeyInt(int varID, int key, int value);
32
void varDefKeyBytes(int varID, int key, const unsigned char *bytes, int length);
33
void varDefKeyString(int varID, int key, const char *string);
34

35
36
void varDefOptGribInt(int varID, int tile_index, long lval, const char *keyword);
void varDefOptGribDbl(int varID, int tile_index, double dval, const char *keyword);
37
38
int varOptGribNentries(int varID);

39
bool zaxisCompare(int zaxisID, int zaxistype, int nlevels, bool lbounds, const double *levels, const char *longname, const char *units, int ltype1, int ltype2);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
40
41

#endif
42
43
44
45
46
47
48
49
50
/*
 * Local Variables:
 * c-file-style: "Java"
 * c-basic-offset: 2
 * indent-tabs-mode: nil
 * show-trailing-whitespace: t
 * require-trailing-newline: t
 * End:
 */