varscan.h 1.95 KB
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
2
3
4
5
6
7
8
#ifndef _VARSCAN_H
#define _VARSCAN_H

#ifndef _GRID_H
#  include "grid.h"
#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 char *stdname, const char *longname, const char *units,
13
                  const var_tile_t *tiles, int *tile_index);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
14
15

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

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

22
void varDefMissval(int varID, double missval);
23
void varDefCompType(int varID, int comptype);
24
void varDefCompLevel(int varID, int complevel);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
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);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
31
void varDefEnsembleInfo(int varID, int ens_idx, int ens_count, int forecast_type);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
32

33
void varDefTypeOfGeneratingProcess(int varID, int typeOfGeneratingProcess);
34
void varDefProductDefinitionTemplate(int varID, int productDefinitionTemplate);
35
36


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

Uwe Schulzweida's avatar
Uwe Schulzweida committed
41
bool zaxisCompare(int zaxisID, int zaxistype, int nlevels, bool lbounds, const double *levels, const char *longname, const char *units, int ltype);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
42
43

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