VAPoR  0.1
cdi.h
Go to the documentation of this file.
1 /*
2  CDI C header file
3 
4  This is the only file that must be included to use the CDI library from C.
5 */
6 
7 #ifndef CDI_H_
8 #define CDI_H_
9 
10 #include <sys/types.h>
11 
12 #if defined(__cplusplus)
13 extern "C" {
14 #endif
15 
16 #define CDI_MAX_NAME 256 /* max length of a name */
17 
18 #define CDI_UNDEFID -1
19 #define CDI_GLOBAL -1 /* Global var ID for vlist */
20 
21 /* Byte order */
22 
23 #define CDI_BIGENDIAN 0 /* Byte order BIGENDIAN */
24 #define CDI_LITTLEENDIAN 1 /* Byte order LITTLEENDIAN */
25 
26 #define CDI_REAL 1 /* Real numbers */
27 #define CDI_COMP 2 /* Complex numbers */
28 #define CDI_BOTH 3 /* Both numbers */
29 
30 /* Error identifier */
31 
32 #define CDI_NOERR 0 /* No Error */
33 #define CDI_ESYSTEM -10 /* Operating system error */
34 #define CDI_EINVAL -20 /* Invalid argument */
35 #define CDI_EUFTYPE -21 /* Unsupported file type */
36 #define CDI_ELIBNAVAIL -22 /* xxx library not available */
37 #define CDI_EUFSTRUCT -23 /* Unsupported file structure */
38 #define CDI_EUNC4 -24 /* Unsupported netCDF4 structure */
39 #define CDI_ELIMIT -99 /* Internal limits exceeded */
40 
41 /* File types */
42 
43 #define FILETYPE_GRB 1 /* File type GRIB */
44 #define FILETYPE_GRB2 2 /* File type GRIB version 2 */
45 #define FILETYPE_NC 3 /* File type netCDF */
46 #define FILETYPE_NC2 4 /* File type netCDF version 2 (64-bit) */
47 #define FILETYPE_NC4 5 /* File type netCDF version 4 */
48 #define FILETYPE_NC4C 6 /* File type netCDF version 4 (classic) */
49 #define FILETYPE_SRV 7 /* File type SERVICE */
50 #define FILETYPE_EXT 8 /* File type EXTRA */
51 #define FILETYPE_IEG 9 /* File type IEG */
52 
53 /* Compress types */
54 
55 #define COMPRESS_NONE 0
56 #define COMPRESS_SZIP 1
57 #define COMPRESS_GZIP 2
58 #define COMPRESS_BZIP2 3
59 #define COMPRESS_ZIP 4
60 #define COMPRESS_JPEG 5
61 
62 /* external data types */
63 
64 #define DATATYPE_PACK 0
65 #define DATATYPE_PACK1 1
66 #define DATATYPE_PACK2 2
67 #define DATATYPE_PACK3 3
68 #define DATATYPE_PACK4 4
69 #define DATATYPE_PACK5 5
70 #define DATATYPE_PACK6 6
71 #define DATATYPE_PACK7 7
72 #define DATATYPE_PACK8 8
73 #define DATATYPE_PACK9 9
74 #define DATATYPE_PACK10 10
75 #define DATATYPE_PACK11 11
76 #define DATATYPE_PACK12 12
77 #define DATATYPE_PACK13 13
78 #define DATATYPE_PACK14 14
79 #define DATATYPE_PACK15 15
80 #define DATATYPE_PACK16 16
81 #define DATATYPE_PACK17 17
82 #define DATATYPE_PACK18 18
83 #define DATATYPE_PACK19 19
84 #define DATATYPE_PACK20 20
85 #define DATATYPE_PACK21 21
86 #define DATATYPE_PACK22 22
87 #define DATATYPE_PACK23 23
88 #define DATATYPE_PACK24 24
89 #define DATATYPE_PACK25 25
90 #define DATATYPE_PACK26 26
91 #define DATATYPE_PACK27 27
92 #define DATATYPE_PACK28 28
93 #define DATATYPE_PACK29 29
94 #define DATATYPE_PACK30 30
95 #define DATATYPE_PACK31 31
96 #define DATATYPE_PACK32 32
97 #define DATATYPE_CPX32 64
98 #define DATATYPE_CPX64 128
99 #define DATATYPE_FLT32 132
100 #define DATATYPE_FLT64 164
101 #define DATATYPE_INT8 208
102 #define DATATYPE_INT16 216
103 #define DATATYPE_INT32 232
104 #define DATATYPE_UINT8 308
105 #define DATATYPE_UINT16 316
106 #define DATATYPE_UINT32 332
107 
108 /* internal data types */
109 #define DATATYPE_INT 251
110 #define DATATYPE_FLT 252
111 #define DATATYPE_TXT 253
112 #define DATATYPE_CPX 254
113 #define DATATYPE_UCHAR 255
114 
115 /* Chunks */
116 
117 #define CHUNK_AUTO 1 /* use default chunk size */
118 #define CHUNK_GRID 2
119 #define CHUNK_LINES 3
120 
121 /* GRID types */
122 
123 #define GRID_GENERIC 1 /* Generic grid */
124 #define GRID_GAUSSIAN 2 /* Regular Gaussian lon/lat grid */
125 #define GRID_GAUSSIAN_REDUCED 3 /* Reduced Gaussian lon/lat grid */
126 #define GRID_LONLAT 4 /* Regular longitude/latitude grid */
127 #define GRID_SPECTRAL 5 /* Spherical harmonic coefficients */
128 #define GRID_FOURIER 6 /* Fourier coefficients */
129 #define GRID_GME 7 /* Icosahedral-hexagonal GME grid */
130 #define GRID_TRAJECTORY 8 /* Trajectory */
131 #define GRID_UNSTRUCTURED 9 /* General unstructured grid */
132 #define GRID_CURVILINEAR 10 /* Curvilinear grid */
133 #define GRID_LCC 11 /* Lambert Conformal Conic (GRIB) */
134 #define GRID_LCC2 12 /* Lambert Conformal Conic (PROJ) */
135 #define GRID_LAEA 13 /* Lambert Azimuthal Equal Area */
136 #define GRID_SINUSOIDAL 14 /* Sinusoidal */
137 #define GRID_PROJECTION 15 /* Projected coordiantes */
138 
139 /* ZAXIS types */
140 
141 #define ZAXIS_SURFACE 0 /* Surface level */
142 #define ZAXIS_GENERIC 1 /* Generic level */
143 #define ZAXIS_HYBRID 2 /* Hybrid level */
144 #define ZAXIS_HYBRID_HALF 3 /* Hybrid half level */
145 #define ZAXIS_PRESSURE 4 /* Isobaric pressure level in Pascal */
146 #define ZAXIS_HEIGHT 5 /* Height above ground in meters */
147 #define ZAXIS_DEPTH_BELOW_SEA 6 /* Depth below sea level in meters */
148 #define ZAXIS_DEPTH_BELOW_LAND 7 /* Depth below land surface in centimeters */
149 #define ZAXIS_ISENTROPIC 8 /* Isentropic */
150 #define ZAXIS_TRAJECTORY 9 /* Trajectory */
151 #define ZAXIS_ALTITUDE 10 /* Altitude above mean sea level in meters */
152 #define ZAXIS_SIGMA 11 /* Sigma level */
153 #define ZAXIS_MEANSEA 12 /* Mean sea level */
154 #define ZAXIS_TOA 13 /* Norminal top of atmosphere */
155 #define ZAXIS_SEA_BOTTOM 14 /* Sea bottom */
156 #define ZAXIS_ATMOSPHERE 15 /* Entire atmosphere */
157 #define ZAXIS_CLOUD_BASE 16 /* Cloud base level */
158 #define ZAXIS_CLOUD_TOP 17 /* Level of cloud tops */
159 #define ZAXIS_ISOTHERM_ZERO 18 /* Level of 0o C isotherm */
160 #define ZAXIS_SNOW 19 /* Snow level */
161 #define ZAXIS_LAKE_BOTTOM 20 /* Lake or River Bottom */
162 #define ZAXIS_SEDIMENT_BOTTOM 21 /* Bottom Of Sediment Layer */
163 #define ZAXIS_SEDIMENT_BOTTOM_TA 22 /* Bottom Of Thermally Active Sediment Layer */
164 #define ZAXIS_SEDIMENT_BOTTOM_TW 23 /* Bottom Of Sediment Layer Penetrated By Thermal Wave */
165 #define ZAXIS_MIX_LAYER 24 /* Mixing Layer */
166 #define ZAXIS_REFERENCE 25 /* zaxis reference number */
167 
168 /* TIME types */
169 
170 #define TIME_CONSTANT 0 /* obsolate, use TSTEP_CONSTANT */
171 #define TIME_VARIABLE 1 /* obsolate, use TSTEP_INSTANT */
172 
173 /* TSTEP types */
174 
175 #define TSTEP_CONSTANT 0 /* Constant */
176 #define TSTEP_INSTANT 1 /* Instant */
177 #define TSTEP_AVG 2 /* Average */
178 #define TSTEP_ACCUM 3 /* Accumulation */
179 #define TSTEP_MAX 4 /* Maximum */
180 #define TSTEP_MIN 5 /* Minimum */
181 #define TSTEP_DIFF 6 /* Difference */
182 #define TSTEP_RMS 7 /* Root mean square */
183 #define TSTEP_SD 8 /* Standard deviation */
184 #define TSTEP_COV 9 /* Covariance */
185 #define TSTEP_RATIO 10 /* Ratio */
186 #define TSTEP_RANGE 11
187 #define TSTEP_INSTANT2 12
188 #define TSTEP_INSTANT3 13
189 
190 /* TAXIS types */
191 
192 #define TAXIS_ABSOLUTE 1
193 #define TAXIS_RELATIVE 2
194 #define TAXIS_FORECAST 3
195 
196 /* TUNIT types */
197 
198 #define TUNIT_SECOND 1
199 #define TUNIT_MINUTE 2
200 #define TUNIT_HOUR 3
201 #define TUNIT_DAY 4
202 #define TUNIT_MONTH 5
203 #define TUNIT_YEAR 6
204 #define TUNIT_QUARTER 7
205 #define TUNIT_3HOURS 8
206 #define TUNIT_6HOURS 9
207 #define TUNIT_12HOURS 10
208 
209 /* CALENDAR types */
210 
211 #define CALENDAR_STANDARD 0 /* don't change this value (used also in cgribexlib)! */
212 #define CALENDAR_PROLEPTIC 1
213 #define CALENDAR_360DAYS 2
214 #define CALENDAR_365DAYS 3
215 #define CALENDAR_366DAYS 4
216 #define CALENDAR_NONE 5
217 
218 
219 /* CDI control routines */
220 
221 void cdiReset(void);
222 
223 char *cdiStringError(int cdiErrno);
224 
225 void cdiDebug(int debug);
226 
227 char *cdiLibraryVersion(void);
228 void cdiPrintVersion(void);
229 
230 int cdiHaveFiletype(int filetype);
231 
232 void cdiDefMissval(double missval);
233 double cdiInqMissval(void);
234 void cdiDefGlobal(const char *string, int val);
235 
236 int namespaceNew();
237 void namespaceSetActive(int namespaceID);
238 void namespaceDelete(int namespaceID);
239 
240 
241 /* CDI converter routines */
242 
243 /* parameter */
244 
245 void cdiParamToString(int param, char *paramstr, int maxlen);
246 
247 void cdiDecodeParam(int param, int *pnum, int *pcat, int *pdis);
248 int cdiEncodeParam(int pnum, int pcat, int pdis);
249 
250 /* date format: YYYYMMDD */
251 /* time format: hhmmss */
252 
253 void cdiDecodeDate(int date, int *year, int *month, int *day);
254 int cdiEncodeDate(int year, int month, int day);
255 
256 void cdiDecodeTime(int time, int *hour, int *minute, int *second);
257 int cdiEncodeTime(int hour, int minute, int second);
258 
259 
260 /* STREAM control routines */
261 
262 /* streamOpenRead: Open a dataset for reading */
263 int streamOpenRead(const char *path);
264 
265 /* streamOpenWrite: Create a new dataset */
266 int streamOpenWrite(const char *path, int filetype);
267 
268 int streamOpenAppend(const char *path);
269 
270 /* streamClose: Close an open dataset */
271 void streamClose(int streamID);
272 
273 /* streamSync: Synchronize an Open Dataset to Disk */
274 void streamSync(int streamID);
275 
276 /* streamDefVlist: Define the Vlist for a stream */
277 void streamDefVlist(int streamID, int vlistID);
278 
279 /* streamInqVlist: Get the Vlist of a stream */
280 int streamInqVlist(int streamID);
281 int streamInqVlistIDorig(int streamID);
282 
283 /* streamInqFiletype: Get the filetype */
284 int streamInqFiletype(int streamID);
285 
286 /* streamDefByteorder: Define the byteorder */
287 void streamDefByteorder(int streamID, int byteorder);
288 
289 /* streamInqByteorder: Get the byteorder */
290 int streamInqByteorder(int streamID);
291 
292 /* streamDefCompType: Define compression type */
293 void streamDefCompType(int streamID, int comptype);
294 
295 /* streamDefCompLevel: Define compression level */
296 void streamDefCompLevel(int streamID, int complevel);
297 
298 /* streamInqCompType: Get compression type */
299 int streamInqCompType(int streamID);
300 
301 /* streamInqCompLevel: Get compression level */
302 int streamInqCompLevel(int streamID);
303 
304 /* streamDefTimestep: Define time step */
305 int streamDefTimestep(int streamID, int tsID);
306 
307 /* query currently set timestep id */
308 int streamInqCurTimestepID(int streamID);
309 
310 /* streamInqTimestep: Get time step */
311 int streamInqTimestep(int streamID, int tsID);
312 
313 char *streamFilename(int streamID);
314 char *streamFilesuffix(int filetype);
315 int streamNtsteps(int streamID);
316 off_t streamNvals(int streamID);
317 
318 int streamInqNvars ( int streamID );
319 
320 /* STREAM var I/O routines */
321 
322 /* streamReadVar: Read a variable */
323 void streamReadVar(int streamID, int varID, double *data_vec, int *nmiss);
324 
325 /* streamWriteVar: Write a variable */
326 void streamWriteVar(int streamID, int varID, const double *data_vec, int nmiss);
327 void streamWriteVarF(int streamID, int varID, const float *data_vec, int nmiss);
328 
329 /* streamReadVarSlice: Read a horizontal slice of a variable */
330 void streamReadVarSlice(int streamID, int varID, int levelID, double *data_vec, int *nmiss);
331 
332 /* streamWriteVarSlice: Write a horizontal slice of a variable */
333 void streamWriteVarSlice(int streamID, int varID, int levelID, const double *data_vec, int nmiss);
334 void streamWriteVarSliceF(int streamID, int varID, int levelID, const float *data_vec, int nmiss);
335 
336 void streamWriteVarChunk(int streamID, int varID, const int rect[][2],
337  const double *data_vec, int nmiss);
338 
339 
340 /* STREAM record I/O routines */
341 
342 void streamInqRecord(int streamID, int *varID, int *levelID);
343 void streamDefRecord(int streamID, int varID, int levelID);
344 void streamReadRecord(int streamID, double *data_vec, int *nmiss);
345 void streamWriteRecord(int streamID, const double *data_vec, int nmiss);
346 void streamWriteRecordF(int streamID, const float *data_vec, int nmiss);
347 void streamCopyRecord(int streamIDdest, int streamIDsrc);
348 
349 void streamInqGinfo(int streamID, int *intnum, float *fltnum, off_t *bignum);
350 
351 /* VLIST routines */
352 
353 /* vlistCreate: Create a variable list */
354 int vlistCreate(void);
355 
356 /* vlistDestroy: Destroy a variable list */
357 void vlistDestroy(int vlistID);
358 
359 /* vlistDuplicate: Duplicate a variable list */
360 int vlistDuplicate(int vlistID);
361 
362 /* vlistCopy: Copy a variable list */
363 void vlistCopy(int vlistID2, int vlistID1);
364 
365 /* vlistCopyFlag: Copy some entries of a variable list */
366 void vlistCopyFlag(int vlistID2, int vlistID1);
367 
368 void vlistClearFlag(int vlistID);
369 
370 /* vlistCat: Concatenate two variable lists */
371 void vlistCat(int vlistID2, int vlistID1);
372 
373 /* vlistMerge: Merge two variable lists */
374 void vlistMerge(int vlistID2, int vlistID1);
375 
376 void vlistPrint(int vlistID);
377 
378 /* vlistNumber: Number type in a variable list */
379 int vlistNumber(int vlistID);
380 
381 /* vlistNvars: Number of variables in a variable list */
382 int vlistNvars(int vlistID);
383 
384 /* vlistNgrids: Number of grids in a variable list */
385 int vlistNgrids(int vlistID);
386 
387 /* vlistNzaxis: Number of zaxis in a variable list */
388 int vlistNzaxis(int vlistID);
389 
390 void vlistDefNtsteps(int vlistID, int nts);
391 int vlistNtsteps(int vlistID);
392 int vlistGridsizeMax(int vlistID);
393 int vlistGrid(int vlistID, int index);
394 int vlistGridIndex(int vlistID, int gridID);
395 void vlistChangeGridIndex(int vlistID, int index, int gridID);
396 void vlistChangeGrid(int vlistID, int gridID1, int gridID2);
397 int vlistZaxis(int vlistID, int index);
398 int vlistZaxisIndex(int vlistID, int zaxisID);
399 void vlistChangeZaxisIndex(int vlistID, int index, int zaxisID);
400 void vlistChangeZaxis(int vlistID, int zaxisID1, int zaxisID2);
401 int vlistNrecs(int vlistID);
402 
403 /* vlistDefTaxis: Define the time axis of a variable list */
404 void vlistDefTaxis(int vlistID, int taxisID);
405 
406 /* vlistInqTaxis: Get the time axis of a variable list */
407 int vlistInqTaxis(int vlistID);
408 
409 void vlistDefTable(int vlistID, int tableID);
410 int vlistInqTable(int vlistID);
411 void vlistDefInstitut(int vlistID, int instID);
412 int vlistInqInstitut(int vlistID);
413 void vlistDefModel(int vlistID, int modelID);
414 int vlistInqModel(int vlistID);
415 
416 
417 /* VLIST VAR routines */
418 
419 /* vlistDefVar: Create a new Variable */
420 int vlistDefVar(int vlistID, int gridID, int zaxisID, int tsteptype);
421 
422 void vlistChangeVarGrid(int vlistID, int varID, int gridID);
423 void vlistChangeVarZaxis(int vlistID, int varID, int zaxisID);
424 
425 void vlistInqVar(int vlistID, int varID, int *gridID, int *zaxisID, int *tsteptype);
426 int vlistInqVarGrid(int vlistID, int varID);
427 int vlistInqVarZaxis(int vlistID, int varID);
428 
429 /* used in MPIOM */
430 int vlistInqVarID(int vlistID, int code);
431 
432 int vlistInqVarTsteptype(int vlistID, int varID);
433 void vlistDefVarTsteptype(int vlistID, int varID, int tsteptype);
434 
435 void vlistDefVarCompType(int vlistID, int varID, int comptype);
436 int vlistInqVarCompType(int vlistID, int varID);
437 void vlistDefVarCompLevel(int vlistID, int varID, int complevel);
438 int vlistInqVarCompLevel(int vlistID, int varID);
439 
440 /* vlistDefVarParam: Define the parameter number of a Variable */
441 void vlistDefVarParam(int vlistID, int varID, int param);
442 
443 /* vlistInqVarParam: Get the parameter number of a Variable */
444 int vlistInqVarParam(int vlistID, int varID);
445 
446 /* vlistDefVarCode: Define the code number of a Variable */
447 void vlistDefVarCode(int vlistID, int varID, int code);
448 
449 /* vlistInqVarCode: Get the code number of a Variable */
450 int vlistInqVarCode(int vlistID, int varID);
451 
452 /* vlistDefVarDatatype: Define the data type of a Variable */
453 void vlistDefVarDatatype(int vlistID, int varID, int datatype);
454 
455 /* vlistInqVarDatatype: Get the data type of a Variable */
456 int vlistInqVarDatatype(int vlistID, int varID);
457 
458 void vlistDefVarChunkType(int vlistID, int varID, int chunktype);
459 int vlistInqVarChunkType(int vlistID, int varID);
460 
461 void vlistDefVarXYZ(int vlistID, int varID, int xyz);
462 int vlistInqVarXYZ(int vlistID, int varID);
463 
464 int vlistInqVarNumber(int vlistID, int varID);
465 
466 void vlistDefVarInstitut(int vlistID, int varID, int instID);
467 int vlistInqVarInstitut(int vlistID, int varID);
468 void vlistDefVarModel(int vlistID, int varID, int modelID);
469 int vlistInqVarModel(int vlistID, int varID);
470 void vlistDefVarTable(int vlistID, int varID, int tableID);
471 int vlistInqVarTable(int vlistID, int varID);
472 
473 /* vlistDefVarName: Define the name of a Variable */
474 void vlistDefVarName(int vlistID, int varID, const char *name);
475 
476 /* vlistInqVarName: Get the name of a Variable */
477 void vlistInqVarName(int vlistID, int varID, char *name);
478 
479 /* vlistDefVarStdname: Define the standard name of a Variable */
480 void vlistDefVarStdname(int vlistID, int varID, const char *stdname);
481 
482 /* vlistInqVarStdname: Get the standard name of a Variable */
483 void vlistInqVarStdname(int vlistID, int varID, char *stdname);
484 
485 /* vlistDefVarLongname: Define the long name of a Variable */
486 void vlistDefVarLongname(int vlistID, int varID, const char *longname);
487 
488 /* vlistInqVarLongname: Get the long name of a Variable */
489 void vlistInqVarLongname(int vlistID, int varID, char *longname);
490 
491 /* vlistDefVarUnits: Define the units of a Variable */
492 void vlistDefVarUnits(int vlistID, int varID, const char *units);
493 
494 /* vlistInqVarUnits: Get the units of a Variable */
495 void vlistInqVarUnits(int vlistID, int varID, char *units);
496 
497 /* vlistDefVarMissval: Define the missing value of a Variable */
498 void vlistDefVarMissval(int vlistID, int varID, double missval);
499 
500 /* vlistInqVarMissval: Get the missing value of a Variable */
501 double vlistInqVarMissval(int vlistID, int varID);
502 
503 /* vlistDefVarExtra: Define extra information of a Variable */
504 void vlistDefVarExtra(int vlistID, int varID, const char *extra);
505 
506 /* vlistInqVarExtra: Get extra information of a Variable */
507 void vlistInqVarExtra(int vlistID, int varID, char *extra);
508 
509 void vlistDefVarScalefactor(int vlistID, int varID, double scalefactor);
510 double vlistInqVarScalefactor(int vlistID, int varID);
511 void vlistDefVarAddoffset(int vlistID, int varID, double addoffset);
512 double vlistInqVarAddoffset(int vlistID, int varID);
513 
514 void vlistDefVarTimave(int vlistID, int varID, int timave);
515 int vlistInqVarTimave(int vlistID, int varID);
516 void vlistDefVarTimaccu(int vlistID, int varID, int timaccu);
517 int vlistInqVarTimaccu(int vlistID, int varID);
518 
519 void vlistDefVarTypeOfGeneratingProcess(int vlistID, int varID, int typeOfGeneratingProcess);
520 int vlistInqVarTypeOfGeneratingProcess(int vlistID, int varID);
521 
522 int vlistInqVarSize(int vlistID, int varID);
523 
524 void vlistDefIndex(int vlistID, int varID, int levID, int index);
525 int vlistInqIndex(int vlistID, int varID, int levID);
526 void vlistDefFlag(int vlistID, int varID, int levID, int flag);
527 int vlistInqFlag(int vlistID, int varID, int levID);
528 int vlistFindVar(int vlistID, int fvarID);
529 int vlistFindLevel(int vlistID, int fvarID, int flevelID);
530 int vlistMergedVar(int vlistID, int varID);
531 int vlistMergedLevel(int vlistID, int varID, int levelID);
532 
533 /* Ensemble info routines */
534 void vlistDefVarEnsemble(int vlistID, int varID, int ensID, int ensCount, int forecast_type);
535 int vlistInqVarEnsemble(int vlistID, int varID, int *ensID, int *ensCount, int *forecast_type);
536 
537 /* cdiClearAdditionalKeys: Clear the list of additional GRIB keys. */
539 /* cdiDefAdditionalKey: Register an additional GRIB key which is read when file is opened. */
540 void cdiDefAdditionalKey(const char *string);
541 
542 /* vlistDefVarIntKey: Set an arbitrary keyword/integer value pair for GRIB API */
543 void vlistDefVarIntKey(int vlistID, int varID, const char *name, int value);
544 /* vlistDefVarDblKey: Set an arbitrary keyword/double value pair for GRIB API */
545 void vlistDefVarDblKey(int vlistID, int varID, const char *name, double value);
546 
547 /* vlistHasVarKey: returns 1 if meta-data key was read, 0 otherwise. */
548 int vlistHasVarKey(int vlistID, int varID, const char *name);
549 /* vlistInqVarDblKey: raw access to GRIB meta-data */
550 double vlistInqVarDblKey(int vlistID, int varID, const char *name);
551 /* vlistInqVarIntKey: raw access to GRIB meta-data */
552 int vlistInqVarIntKey(int vlistID, int varID, const char *name);
553 
554 
555 /* VLIST attributes */
556 
557 /* vlistInqNatts: Get number of variable attributes assigned to this variable */
558 int vlistInqNatts(int vlistID, int varID, int *nattsp);
559 /* vlistInqAtt: Get information about an attribute */
560 int vlistInqAtt(int vlistID, int varID, int attrnum, char *name, int *typep, int *lenp);
561 int vlistDelAtt(int vlistID, int varID, const char *name);
562 
563 /* vlistDefAttInt: Define an integer attribute */
564 int vlistDefAttInt(int vlistID, int varID, const char *name, int type, int len, const int *ip_vec);
565 /* vlistDefAttFlt: Define a floating point attribute */
566 int vlistDefAttFlt(int vlistID, int varID, const char *name, int type, int len, const double *dp_vec);
567 /* vlistDefAttTxt: Define a text attribute */
568 int vlistDefAttTxt(int vlistID, int varID, const char *name, int len, const char *tp_cbuf);
569 
570 /* vlistInqAttInt: Get the value(s) of an integer attribute */
571 int vlistInqAttInt(int vlistID, int varID, const char *name, int mlen, int *ip_vec);
572 /* vlistInqAttFlt: Get the value(s) of a floating point attribute */
573 int vlistInqAttFlt(int vlistID, int varID, const char *name, int mlen, double *dp_vec);
574 /* vlistInqAttTxt: Get the value(s) of a text attribute */
575 int vlistInqAttTxt(int vlistID, int varID, const char *name, int mlen, char *tp_cbuf);
576 
577 
578 /* GRID routines */
579 
580 void gridName(int gridtype, char *gridname);
581 char *gridNamePtr(int gridtype);
582 
583 void gridCompress(int gridID);
584 
585 void gridDefMaskGME(int gridID, const int *mask_vec);
586 int gridInqMaskGME(int gridID, int *mask_vec);
587 
588 void gridDefMask(int gridID, const int *mask_vec);
589 int gridInqMask(int gridID, int *mask_vec);
590 
591 void gridPrint(int gridID, int opt);
592 
593 /* gridCreate: Create a horizontal Grid */
594 int gridCreate(int gridtype, int size);
595 
596 /* gridDestroy: Destroy a horizontal Grid */
597 void gridDestroy(int gridID);
598 
599 /* gridDuplicate: Duplicate a Grid */
600 int gridDuplicate(int gridID);
601 
602 /* gridInqType: Get the type of a Grid */
603 int gridInqType(int gridID);
604 
605 /* gridInqSize: Get the size of a Grid */
606 int gridInqSize(int gridID);
607 
608 /* gridDefXsize: Define the size of a X-axis */
609 void gridDefXsize(int gridID, int xsize);
610 
611 /* gridInqXsize: Get the size of a X-axis */
612 int gridInqXsize(int gridID);
613 
614 /* gridDefYsize: Define the size of a Y-axis */
615 void gridDefYsize(int gridID, int ysize);
616 
617 /* gridInqYsize: Get the size of a Y-axis */
618 int gridInqYsize(int gridID);
619 
620 /* gridDefNP: Define the number of parallels between a pole and the equator */
621 void gridDefNP(int gridID, int np);
622 
623 /* gridInqNP: Get the number of parallels between a pole and the equator */
624 int gridInqNP(int gridID);
625 
626 /* gridDefXvals: Define the values of a X-axis */
627 void gridDefXvals(int gridID, const double *xvals_vec);
628 
629 /* gridInqXvals: Get all values of a X-axis */
630 int gridInqXvals(int gridID, double *xvals_vec);
631 
632 /* gridDefYvals: Define the values of a Y-axis */
633 void gridDefYvals(int gridID, const double *yvals_vec);
634 
635 /* gridInqYvals: Get all values of a Y-axis */
636 int gridInqYvals(int gridID, double *yvals_vec);
637 
638 /* gridDefXname: Define the name of a X-axis */
639 void gridDefXname(int gridID, const char *xname);
640 
641 /* gridDefXlongname: Define the longname of a X-axis */
642 void gridDefXlongname(int gridID, const char *xlongname);
643 
644 /* gridDefXunits: Define the units of a X-axis */
645 void gridDefXunits(int gridID, const char *xunits);
646 
647 /* gridDefYname: Define the name of a Y-axis */
648 void gridDefYname(int gridID, const char *yname);
649 
650 /* gridDefYlongname: Define the longname of a Y-axis */
651 void gridDefYlongname(int gridID, const char *ylongname);
652 
653 /* gridDefYunits: Define the units of a Y-axis */
654 void gridDefYunits(int gridID, const char *yunits);
655 
656 /* gridInqXname: Get the name of a X-axis */
657 void gridInqXname(int gridID, char *xname);
658 
659 /* gridInqXlongname: Get the longname of a X-axis */
660 void gridInqXlongname(int gridID, char *xlongname);
661 
662 /* gridInqXstdname: Get the standard name of a X-axis */
663 void gridInqXstdname(int gridID, char *xstdname);
664 
665 /* gridInqXunits: Get the units of a X-axis */
666 void gridInqXunits(int gridID, char *xunits);
667 
668 /* gridInqYname: Get the name of a Y-axis */
669 void gridInqYname(int gridID, char *yname);
670 
671 /* gridInqYlongname: Get the longname of a Y-axis */
672 void gridInqYlongname(int gridID, char *ylongname);
673 
674 /* gridInqYstdname: Get the standard name of a Y-axis */
675 void gridInqYstdname(int gridID, char *ystdname);
676 
677 /* gridInqYunits: Get the units of a Y-axis */
678 void gridInqYunits(int gridID, char *yunits);
679 
680 /* gridDefPrec: Define the precision of a Grid */
681 void gridDefPrec(int gridID, int prec);
682 
683 /* gridInqPrec: Get the precision of a Grid */
684 int gridInqPrec(int gridID);
685 
686 /* gridInqXval: Get one value of a X-axis */
687 double gridInqXval(int gridID, int index);
688 
689 /* gridInqYval: Get one value of a Y-axis */
690 double gridInqYval(int gridID, int index);
691 
692 double gridInqXinc(int gridID);
693 double gridInqYinc(int gridID);
694 
695 int gridIsCircular(int gridID);
696 int gridIsRotated(int gridID);
697 double gridInqXpole(int gridID);
698 void gridDefXpole(int gridID, double xpole);
699 double gridInqYpole(int gridID);
700 void gridDefYpole(int gridID, double ypole);
701 double gridInqAngle(int gridID);
702 void gridDefAngle(int gridID, double angle);
703 void gridDefTrunc(int gridID, int trunc);
704 int gridInqTrunc(int gridID);
705 /* Hexagonal GME grid */
706 int gridInqGMEnd(int gridID);
707 void gridDefGMEnd(int gridID, int nd);
708 int gridInqGMEni(int gridID);
709 void gridDefGMEni(int gridID, int ni);
710 int gridInqGMEni2(int gridID);
711 void gridDefGMEni2(int gridID, int ni2);
712 int gridInqGMEni3(int gridID);
713 void gridDefGMEni3(int gridID, int ni3);
714 
715 /* Reference of an unstructured grid */
716 
717 /* gridDefNumber: Define the reference number for an unstructured grid */
718 void gridDefNumber(int gridID, int number);
719 
720 /* gridInqNumber: Get the reference number to an unstructured grid */
721 int gridInqNumber(int gridID);
722 
723 /* gridDefPosition: Define the position of grid in the reference file */
724 void gridDefPosition(int gridID, int position);
725 
726 /* gridInqPosition: Get the position of grid in the reference file */
727 int gridInqPosition(int gridID);
728 
729 /* gridDefReference: Define the reference URI for an unstructured grid */
730 void gridDefReference(int gridID, const char *reference);
731 
732 /* gridInqReference: Get the reference URI to an unstructured grid */
733 int gridInqReference(int gridID, char *reference);
734 
735 /* gridDefUUID: Define the UUID of an unstructured grid */
736 void gridDefUUID(int gridID, const char *uuid_cbuf);
737 
738 /* gridInqUUID: Get the UUID of an unstructured grid */
739 void gridInqUUID(int gridID, char *uuid_cbuf);
740 
741 
742 /* Lambert Conformal Conic grid (GRIB version) */
743 void gridDefLCC(int gridID, double originLon, double originLat, double lonParY, double lat1, double lat2, double xinc, double yinc, int projflag, int scanflag);
744 void gridInqLCC(int gridID, double *originLon, double *originLat, double *lonParY, double *lat1, double *lat2, double *xinc, double *yinc, int *projflag, int *scanflag);
745 
746 /* Lambert Conformal Conic 2 grid (PROJ version) */
747 void gridDefLcc2(int gridID, double earth_radius, double lon_0, double lat_0, double lat_1, double lat_2);
748 void gridInqLcc2(int gridID, double *earth_radius, double *lon_0, double *lat_0, double *lat_1, double *lat_2);
749 
750 /* Lambert Azimuthal Equal Area grid */
751 void gridDefLaea(int gridID, double earth_radius, double lon_0, double lat_0);
752 void gridInqLaea(int gridID, double *earth_radius, double *lon_0, double *lat_0);
753 
754 
755 void gridDefArea(int gridID, const double *area_vec);
756 void gridInqArea(int gridID, double *area_vec);
757 int gridHasArea(int gridID);
758 
759 /* gridDefNvertex: Define the number of vertex of a Gridbox */
760 void gridDefNvertex(int gridID, int nvertex);
761 
762 /* gridInqNvertex: Get the number of vertex of a Gridbox */
763 int gridInqNvertex(int gridID);
764 
765 /* gridDefXbounds: Define the bounds of a X-axis */
766 void gridDefXbounds(int gridID, const double *xbounds_vec);
767 
768 /* gridInqXbounds: Get the bounds of a X-axis */
769 int gridInqXbounds(int gridID, double *xbounds_vec);
770 
771 /* gridDefYbounds: Define the bounds of a Y-axis */
772 void gridDefYbounds(int gridID, const double *ybounds_vec);
773 
774 /* gridInqYbounds: Get the bounds of a Y-axis */
775 int gridInqYbounds(int gridID, double *ybounds_vec);
776 
777 void gridDefRowlon(int gridID, int nrowlon, const int *rowlon_vec);
778 void gridInqRowlon(int gridID, int *rowlon_vec);
779 void gridChangeType(int gridID, int gridtype);
780 
781 void gridDefComplexPacking(int gridID, int lpack);
782 int gridInqComplexPacking(int gridID);
783 
784 /* ZAXIS routines */
785 
786 void zaxisName(int zaxistype, char *zaxisname);
787 
788 /* zaxisCreate: Create a vertical Z-axis */
789 int zaxisCreate(int zaxistype, int size);
790 
791 /* zaxisDestroy: Destroy a vertical Z-axis */
792 void zaxisDestroy(int zaxisID);
793 
794 /* zaxisInqType: Get the type of a Z-axis */
795 int zaxisInqType(int zaxisID);
796 
797 /* zaxisInqSize: Get the size of a Z-axis */
798 int zaxisInqSize(int zaxisID);
799 
800 /* zaxisDuplicate: Duplicate a Z-axis */
801 int zaxisDuplicate(int zaxisID);
802 
803 void zaxisResize(int zaxisID, int size);
804 
805 void zaxisPrint(int zaxisID);
806 
807 /* zaxisDefLevels: Define the levels of a Z-axis */
808 void zaxisDefLevels(int zaxisID, const double *levels_vec);
809 
810 /* zaxisInqLevels: Get all levels of a Z-axis */
811 void zaxisInqLevels(int zaxisID, double *levels_vec);
812 
813 /* zaxisDefLevel: Define one level of a Z-axis */
814 void zaxisDefLevel(int zaxisID, int levelID, double levels);
815 
816 /* zaxisInqLevel: Get one level of a Z-axis */
817 double zaxisInqLevel(int zaxisID, int levelID);
818 
819 /* zaxisDefNlevRef: Define the number of half levels of a generalized Z-axis */
820 void zaxisDefNlevRef(int gridID, int nhlev);
821 
822 /* zaxisInqNlevRef: Get the number of half levels of a generalized Z-axis */
823 int zaxisInqNlevRef(int gridID);
824 
825 /* zaxisDefNumber: Define the reference number for a generalized Z-axis */
826 void zaxisDefNumber(int gridID, int number);
827 
828 /* zaxisInqNumber: Get the reference number to a generalized Z-axis */
829 int zaxisInqNumber(int gridID);
830 
831 /* zaxisDefUUID: Define the UUID of a generalized Z-axis */
832 void zaxisDefUUID(int zaxisID, const char *uuid_cbuf);
833 
834 /* zaxisInqUUID: Get the UUID of a generalized Z-axis */
835 void zaxisInqUUID(int zaxisID, char *uuid_cbuf);
836 
837 /* zaxisDefName: Define the name of a Z-axis */
838 void zaxisDefName(int zaxisID, const char *name);
839 
840 /* zaxisDefLongname: Define the longname of a Z-axis */
841 void zaxisDefLongname(int zaxisID, const char *longname);
842 
843 /* zaxisDefUnits: Define the units of a Z-axis */
844 void zaxisDefUnits(int zaxisID, const char *units);
845 
846 /* zaxisInqName: Get the name of a Z-axis */
847 void zaxisInqName(int zaxisID, char *name);
848 
849 /* zaxisInqLongname: Get the longname of a Z-axis */
850 void zaxisInqLongname(int zaxisID, char *longname);
851 
852 /* zaxisInqStdname: Get the standard name of a Z-axis */
853 void zaxisInqStdname(int zaxisID, char *stdname);
854 
855 /* zaxisInqUnits: Get the units of a Z-axis */
856 void zaxisInqUnits(int zaxisID, char *units);
857 
858 void zaxisDefPrec(int zaxisID, int prec);
859 int zaxisInqPrec(int zaxisID);
860 
861 void zaxisDefPositive(int zaxisID, int positive);
862 int zaxisInqPositive(int zaxisID);
863 
864 void zaxisDefLtype(int zaxisID, int ltype);
865 int zaxisInqLtype(int zaxisID);
866 
867 const double *zaxisInqLevelsPtr(int zaxisID);
868 void zaxisDefVct(int zaxisID, int size, const double *vct_vec);
869 void zaxisInqVct(int zaxisID, double *vct_vec);
870 int zaxisInqVctSize(int zaxisID);
871 const double *zaxisInqVctPtr(int zaxisID);
872 int zaxisInqLbounds(int zaxisID, double *lbounds_vec);
873 int zaxisInqUbounds(int zaxisID, double *ubounds_vec);
874 int zaxisInqWeights(int zaxisID, double *weights_vec);
875 double zaxisInqLbound(int zaxisID, int index);
876 double zaxisInqUbound(int zaxisID, int index);
877 void zaxisDefLbounds(int zaxisID, const double *lbounds_vec);
878 void zaxisDefUbounds(int zaxisID, const double *ubounds_vec);
879 void zaxisDefWeights(int zaxisID, const double *weights_vec);
880 void zaxisChangeType(int zaxisID, int zaxistype);
881 
882 /* TAXIS routines */
883 
884 /* taxisCreate: Create a Time axis */
885 int taxisCreate(int timetype);
886 
887 /* taxisDestroy: Destroy a Time axis */
888 void taxisDestroy(int taxisID);
889 
890 int taxisDuplicate(int taxisID);
891 
892 void taxisCopyTimestep(int taxisIDdes, int taxisIDsrc);
893 
894 void taxisDefType(int taxisID, int type);
895 
896 /* taxisDefVdate: Define the verification date */
897 void taxisDefVdate(int taxisID, int date);
898 
899 /* taxisDefVtime: Define the verification time */
900 void taxisDefVtime(int taxisID, int time);
901 
902 /* taxisDefRdate: Define the reference date */
903 void taxisDefRdate(int taxisID, int date);
904 
905 /* taxisDefRtime: Define the reference time */
906 void taxisDefRtime(int taxisID, int time);
907 
908 /* taxisDefFdate: Define the forecast reference date */
909 void taxisDefFdate(int taxisID, int date);
910 
911 /* taxisDefFtime: Define the forecast reference time */
912 void taxisDefFtime(int taxisID, int time);
913 
914 int taxisHasBounds(int taxisID);
915 
916 void taxisDeleteBounds(int taxisID);
917 
918 void taxisDefVdateBounds(int taxisID, int vdate_lb, int vdate_ub);
919 
920 void taxisDefVtimeBounds(int taxisID, int vtime_lb, int vtime_ub);
921 
922 void taxisInqVdateBounds(int taxisID, int *vdate_lb, int *vdate_ub);
923 
924 void taxisInqVtimeBounds(int taxisID, int *vtime_lb, int *vtime_ub);
925 
926 /* taxisDefCalendar: Define the calendar */
927 void taxisDefCalendar(int taxisID, int calendar);
928 
929 void taxisDefTunit(int taxisID, int tunit);
930 
931 void taxisDefNumavg(int taxisID, int numavg);
932 
933 int taxisInqType(int taxisID);
934 
935 /* taxisInqVdate: Get the verification date */
936 int taxisInqVdate(int taxisID);
937 
938 /* taxisInqVtime: Get the verification time */
939 int taxisInqVtime(int taxisID);
940 
941 /* taxisInqRdate: Get the reference date */
942 int taxisInqRdate(int taxisID);
943 
944 /* taxisInqRtime: Get the reference time */
945 int taxisInqRtime(int taxisID);
946 
947 /* taxisInqFdate: Get the forecast reference date */
948 int taxisInqFdate(int taxisID);
949 
950 /* taxisInqFtime: Get the forecast reference time */
951 int taxisInqFtime(int taxisID);
952 
953 /* taxisInqCalendar: Get the calendar */
954 int taxisInqCalendar(int taxisID);
955 
956 int taxisInqTunit(int taxisID);
957 
958 int taxisInqNumavg(int taxisID);
959 
960 char *tunitNamePtr(int tunitID);
961 
962 
963 /* Institut routines */
964 
965 int institutDef(int center, int subcenter, const char *name, const char *longname);
966 int institutInq(int center, int subcenter, const char *name, const char *longname);
967 int institutInqNumber(void);
968 int institutInqCenter(int instID);
969 int institutInqSubcenter(int instID);
970 char *institutInqNamePtr(int instID);
971 char *institutInqLongnamePtr(int instID);
972 
973 /* Model routines */
974 
975 int modelDef(int instID, int modelgribID, const char *name);
976 int modelInq(int instID, int modelgribID, char *name);
977 int modelInqInstitut(int modelID);
978 int modelInqGribID(int modelID);
979 char *modelInqNamePtr(int modelID);
980 
981 /* Table routines */
982 
983 void tableWriteC(const char *filename, int tableID);
984 void tableWrite(const char *filename, int tableID);
985 int tableRead(const char *tablefile);
986 int tableDef(int modelID, int tablenum, const char *tablename);
987 
988 char *tableInqNamePtr(int tableID);
989 void tableDefEntry(int tableID, int code, const char *name, const char *longname, const char *units);
990 
991 int tableInq(int modelID, int tablenum, const char *tablename);
992 int tableInqNumber(void);
993 
994 int tableInqNum(int tableID);
995 int tableInqModel(int tableID);
996 
997 void tableInqPar(int tableID, int code, char *name, char *longname, char *units);
998 
999 int tableInqParCode(int tableID, char *name, int *code);
1000 int tableInqParName(int tableID, int code, char *name);
1001 int tableInqParLongname(int tableID, int code, char *longname);
1002 int tableInqParUnits(int tableID, int code, char *units);
1003 
1004 char *tableInqParNamePtr(int tableID, int parID);
1005 char *tableInqParLongnamePtr(int tableID, int parID);
1006 char *tableInqParUnitsPtr(int tableID, int parID);
1007 
1008 /* History routines */
1009 
1010 void streamDefHistory(int streamID, int size, const char *history);
1011 int streamInqHistorySize(int streamID);
1012 void streamInqHistoryString(int streamID, char *history);
1013 
1014 #if defined (__cplusplus)
1015 }
1016 #endif
1017 
1018 #endif /* CDI_H_ */
1019 /*
1020  * Local Variables:
1021  * c-file-style: "Java"
1022  * c-basic-offset: 2
1023  * indent-tabs-mode: nil
1024  * show-trailing-whitespace: t
1025  * require-trailing-newline: t
1026  * End:
1027  */
void tableWriteC(const char *filename, int tableID)
char * tableInqParNamePtr(int tableID, int parID)
void gridDefXbounds(int gridID, const double *xbounds_vec)
int vlistInqIndex(int vlistID, int varID, int levID)
int vlistNtsteps(int vlistID)
void zaxisDefNlevRef(int gridID, int nhlev)
void taxisInqVtimeBounds(int taxisID, int *vtime_lb, int *vtime_ub)
void vlistChangeVarZaxis(int vlistID, int varID, int zaxisID)
int modelDef(int instID, int modelgribID, const char *name)
int tableDef(int modelID, int tablenum, const char *tablename)
int gridIsCircular(int gridID)
int gridInqNP(int gridID)
int vlistInqVarGrid(int vlistID, int varID)
int gridInqYsize(int gridID)
int streamNtsteps(int streamID)
int cdiEncodeTime(int hour, int minute, int second)
void vlistDefVarMissval(int vlistID, int varID, double missval)
int gridInqComplexPacking(int gridID)
off_t streamNvals(int streamID)
void vlistDefVarXYZ(int vlistID, int varID, int xyz)
void taxisCopyTimestep(int taxisIDdes, int taxisIDsrc)
double zaxisInqLbound(int zaxisID, int index)
void namespaceSetActive(int namespaceID)
void taxisDeleteBounds(int taxisID)
int institutInqCenter(int instID)
void gridDefPosition(int gridID, int position)
void gridDefGMEni3(int gridID, int ni3)
void taxisDefFtime(int taxisID, int time)
double gridInqXval(int gridID, int index)
void vlistInqVarStdname(int vlistID, int varID, char *stdname)
int taxisInqNumavg(int taxisID)
void vlistDefVarLongname(int vlistID, int varID, const char *longname)
int vlistNzaxis(int vlistID)
int tableInqParLongname(int tableID, int code, char *longname)
int vlistCreate(void)
int vlistDuplicate(int vlistID)
int tableInqParName(int tableID, int code, char *name)
void vlistInqVarExtra(int vlistID, int varID, char *extra)
void gridDefTrunc(int gridID, int trunc)
void vlistCopy(int vlistID2, int vlistID1)
int vlistNvars(int vlistID)
int vlistInqVarTable(int vlistID, int varID)
void vlistDefVarUnits(int vlistID, int varID, const char *units)
void tableWrite(const char *filename, int tableID)
void gridDefYunits(int gridID, const char *yunits)
void tableDefEntry(int tableID, int code, const char *name, const char *longname, const char *units)
void vlistDefVarModel(int vlistID, int varID, int modelID)
void vlistDefVarExtra(int vlistID, int varID, const char *extra)
int vlistMergedVar(int vlistID, int varID)
void gridDefYlongname(int gridID, const char *ylongname)
void gridDefXpole(int gridID, double xpole)
double gridInqAngle(int gridID)
int vlistInqModel(int vlistID)
void zaxisInqLongname(int zaxisID, char *longname)
void taxisDestroy(int taxisID)
int vlistInqVarCompType(int vlistID, int varID)
void gridInqRowlon(int gridID, int *rowlon_vec)
int zaxisInqNlevRef(int gridID)
int gridInqXbounds(int gridID, double *xbounds_vec)
int tableInqModel(int tableID)
void gridDefArea(int gridID, const double *area_vec)
int taxisHasBounds(int taxisID)
void cdiDecodeParam(int param, int *pnum, int *pcat, int *pdis)
int taxisInqFdate(int taxisID)
void vlistDefVarTsteptype(int vlistID, int varID, int tsteptype)
void streamWriteVar(int streamID, int varID, const double *data_vec, int nmiss)
int vlistInqAttInt(int vlistID, int varID, const char *name, int mlen, int *ip_vec)
void zaxisDefPositive(int zaxisID, int positive)
void vlistClearFlag(int vlistID)
int vlistInqVarNumber(int vlistID, int varID)
void zaxisDefLbounds(int zaxisID, const double *lbounds_vec)
void gridCompress(int gridID)
int streamOpenRead(const char *path)
void gridDefXvals(int gridID, const double *xvals_vec)
int vlistMergedLevel(int vlistID, int varID, int levelID)
void vlistDefVarChunkType(int vlistID, int varID, int chunktype)
void gridDefNP(int gridID, int np)
int vlistInqVarZaxis(int vlistID, int varID)
void vlistDefVarInstitut(int vlistID, int varID, int instID)
void vlistDestroy(int vlistID)
void vlistDefVarCode(int vlistID, int varID, int code)
void zaxisDefWeights(int zaxisID, const double *weights_vec)
int streamInqCompType(int streamID)
void vlistDefVarIntKey(int vlistID, int varID, const char *name, int value)
void gridDefLaea(int gridID, double earth_radius, double lon_0, double lat_0)
int vlistInqVarID(int vlistID, int code)
int institutInqNumber(void)
int tableInqParCode(int tableID, char *name, int *code)
void streamWriteVarSliceF(int streamID, int varID, int levelID, const float *data_vec, int nmiss)
void gridDefLcc2(int gridID, double earth_radius, double lon_0, double lat_0, double lat_1, double lat_2)
int vlistFindVar(int vlistID, int fvarID)
int zaxisInqPositive(int zaxisID)
int gridInqXvals(int gridID, double *xvals_vec)
void cdiDecodeTime(int time, int *hour, int *minute, int *second)
int taxisInqVdate(int taxisID)
void cdiParamToString(int param, char *paramstr, int maxlen)
int vlistInqInstitut(int vlistID)
void vlistInqVar(int vlistID, int varID, int *gridID, int *zaxisID, int *tsteptype)
void gridDefUUID(int gridID, const char *uuid_cbuf)
void vlistDefInstitut(int vlistID, int instID)
void zaxisDefLevels(int zaxisID, const double *levels_vec)
int taxisInqRtime(int taxisID)
void gridDefNumber(int gridID, int number)
int gridInqTrunc(int gridID)
int gridInqReference(int gridID, char *reference)
void streamReadRecord(int streamID, double *data_vec, int *nmiss)
double vlistInqVarScalefactor(int vlistID, int varID)
int streamInqTimestep(int streamID, int tsID)
int vlistInqVarTimave(int vlistID, int varID)
void gridDefXname(int gridID, const char *xname)
int gridInqPrec(int gridID)
void streamInqHistoryString(int streamID, char *history)
int vlistZaxisIndex(int vlistID, int zaxisID)
int streamInqVlistIDorig(int streamID)
void zaxisDefUbounds(int zaxisID, const double *ubounds_vec)
void gridDefLCC(int gridID, double originLon, double originLat, double lonParY, double lat1, double lat2, double xinc, double yinc, int projflag, int scanflag)
int taxisInqRdate(int taxisID)
double zaxisInqUbound(int zaxisID, int index)
void gridDefYpole(int gridID, double ypole)
int streamInqVlist(int streamID)
void vlistDefVarTypeOfGeneratingProcess(int vlistID, int varID, int typeOfGeneratingProcess)
void gridInqLaea(int gridID, double *earth_radius, double *lon_0, double *lat_0)
void cdiDebug(int debug)
void gridDefComplexPacking(int gridID, int lpack)
void taxisDefNumavg(int taxisID, int numavg)
void gridInqUUID(int gridID, char *uuid_cbuf)
int gridInqType(int gridID)
int gridInqMask(int gridID, int *mask_vec)
void gridDefPrec(int gridID, int prec)
void cdiDefAdditionalKey(const char *string)
void gridDefRowlon(int gridID, int nrowlon, const int *rowlon_vec)
void vlistDefVarTable(int vlistID, int varID, int tableID)
int gridInqGMEni(int gridID)
int vlistDefAttInt(int vlistID, int varID, const char *name, int type, int len, const int *ip_vec)
int vlistFindLevel(int vlistID, int fvarID, int flevelID)
int tableRead(const char *tablefile)
void gridDefMaskGME(int gridID, const int *mask_vec)
int vlistDefVar(int vlistID, int gridID, int zaxisID, int tsteptype)
void gridDefGMEni(int gridID, int ni)
void gridPrint(int gridID, int opt)
int cdiEncodeParam(int pnum, int pcat, int pdis)
void zaxisInqLevels(int zaxisID, double *levels_vec)
void gridInqLcc2(int gridID, double *earth_radius, double *lon_0, double *lat_0, double *lat_1, double *lat_2)
void zaxisName(int zaxistype, char *zaxisname)
char * gridNamePtr(int gridtype)
void cdiPrintVersion(void)
void vlistInqVarName(int vlistID, int varID, char *name)
int taxisInqFtime(int taxisID)
void gridInqYunits(int gridID, char *yunits)
void gridDestroy(int gridID)
double vlistInqVarAddoffset(int vlistID, int varID)
int gridInqSize(int gridID)
void gridDefYbounds(int gridID, const double *ybounds_vec)
void gridDefMask(int gridID, const int *mask_vec)
void gridInqLCC(int gridID, double *originLon, double *originLat, double *lonParY, double *lat1, double *lat2, double *xinc, double *yinc, int *projflag, int *scanflag)
int streamInqHistorySize(int streamID)
void gridDefXunits(int gridID, const char *xunits)
int gridInqGMEni2(int gridID)
void namespaceDelete(int namespaceID)
void zaxisInqName(int zaxisID, char *name)
void cdiReset(void)
void zaxisInqVct(int zaxisID, double *vct_vec)
int modelInq(int instID, int modelgribID, char *name)
void gridInqXunits(int gridID, char *xunits)
void vlistDefVarCompLevel(int vlistID, int varID, int complevel)
int modelInqInstitut(int modelID)
int vlistGrid(int vlistID, int index)
double zaxisInqLevel(int zaxisID, int levelID)
void zaxisPrint(int zaxisID)
void gridDefYname(int gridID, const char *yname)
void gridInqXlongname(int gridID, char *xlongname)
int streamDefTimestep(int streamID, int tsID)
void gridInqYlongname(int gridID, char *ylongname)
const double * zaxisInqLevelsPtr(int zaxisID)
int gridInqMaskGME(int gridID, int *mask_vec)
void vlistChangeVarGrid(int vlistID, int varID, int gridID)
void zaxisInqStdname(int zaxisID, char *stdname)
void zaxisResize(int zaxisID, int size)
void zaxisInqUUID(int zaxisID, char *uuid_cbuf)
int zaxisCreate(int zaxistype, int size)
int zaxisInqLbounds(int zaxisID, double *lbounds_vec)
char * institutInqNamePtr(int instID)
int gridCreate(int gridtype, int size)
int streamOpenAppend(const char *path)
double gridInqXpole(int gridID)
void gridDefNvertex(int gridID, int nvertex)
int vlistInqVarParam(int vlistID, int varID)
char * streamFilename(int streamID)
double vlistInqVarMissval(int vlistID, int varID)
void zaxisDestroy(int zaxisID)
int vlistInqVarTimaccu(int vlistID, int varID)
void gridName(int gridtype, char *gridname)
int taxisInqVtime(int taxisID)
void taxisDefVdateBounds(int taxisID, int vdate_lb, int vdate_ub)
int tableInq(int modelID, int tablenum, const char *tablename)
void gridDefYvals(int gridID, const double *yvals_vec)
int vlistInqVarTypeOfGeneratingProcess(int vlistID, int varID)
void vlistDefVarStdname(int vlistID, int varID, const char *stdname)
int zaxisInqWeights(int zaxisID, double *weights_vec)
int streamInqCompLevel(int streamID)
int vlistInqVarCompLevel(int vlistID, int varID)
void streamWriteVarChunk(int streamID, int varID, const int rect[][2], const double *data_vec, int nmiss)
int vlistGridIndex(int vlistID, int gridID)
int namespaceNew()
double gridInqYpole(int gridID)
int tableInqParUnits(int tableID, int code, char *units)
int vlistInqAtt(int vlistID, int varID, int attrnum, char *name, int *typep, int *lenp)
void zaxisDefUUID(int zaxisID, const char *uuid_cbuf)
void gridInqArea(int gridID, double *area_vec)
int zaxisInqUbounds(int zaxisID, double *ubounds_vec)
void vlistDefNtsteps(int vlistID, int nts)
void taxisDefTunit(int taxisID, int tunit)
void vlistChangeGridIndex(int vlistID, int index, int gridID)
double vlistInqVarDblKey(int vlistID, int varID, const char *name)
double gridInqYinc(int gridID)
char * tunitNamePtr(int tunitID)
void vlistDefVarTimave(int vlistID, int varID, int timave)
void gridInqXstdname(int gridID, char *xstdname)
void taxisDefRdate(int taxisID, int date)
void vlistDefTaxis(int vlistID, int taxisID)
void gridInqYstdname(int gridID, char *ystdname)
int vlistDefAttFlt(int vlistID, int varID, const char *name, int type, int len, const double *dp_vec)
int taxisInqType(int taxisID)
int vlistNrecs(int vlistID)
void zaxisDefPrec(int zaxisID, int prec)
void gridDefXsize(int gridID, int xsize)
char * institutInqLongnamePtr(int instID)
void gridInqYname(int gridID, char *yname)
int cdiEncodeDate(int year, int month, int day)
void taxisDefVtime(int taxisID, int time)
void taxisInqVdateBounds(int taxisID, int *vdate_lb, int *vdate_ub)
void taxisDefFdate(int taxisID, int date)
int vlistInqVarDatatype(int vlistID, int varID)
void vlistMerge(int vlistID2, int vlistID1)
char * cdiLibraryVersion(void)
void gridDefGMEni2(int gridID, int ni2)
void streamSync(int streamID)
void vlistChangeZaxisIndex(int vlistID, int index, int zaxisID)
int institutInqSubcenter(int instID)
int vlistInqTaxis(int vlistID)
char * tableInqNamePtr(int tableID)
void zaxisDefVct(int zaxisID, int size, const double *vct_vec)
void tableInqPar(int tableID, int code, char *name, char *longname, char *units)
int taxisInqTunit(int taxisID)
void vlistInqVarUnits(int vlistID, int varID, char *units)
void vlistDefVarName(int vlistID, int varID, const char *name)
void vlistDefVarDblKey(int vlistID, int varID, const char *name, double value)
int zaxisDuplicate(int zaxisID)
void vlistDefVarEnsemble(int vlistID, int varID, int ensID, int ensCount, int forecast_type)
int vlistGridsizeMax(int vlistID)
int gridInqXsize(int gridID)
int vlistInqVarIntKey(int vlistID, int varID, const char *name)
void gridDefGMEnd(int gridID, int nd)
void vlistDefFlag(int vlistID, int varID, int levID, int flag)
void vlistDefVarAddoffset(int vlistID, int varID, double addoffset)
int streamInqCurTimestepID(int streamID)
void vlistCat(int vlistID2, int vlistID1)
char * tableInqParUnitsPtr(int tableID, int parID)
int vlistInqVarXYZ(int vlistID, int varID)
int zaxisInqVctSize(int zaxisID)
int vlistInqNatts(int vlistID, int varID, int *nattsp)
int streamInqFiletype(int streamID)
double gridInqYval(int gridID, int index)
int vlistNgrids(int vlistID)
char * streamFilesuffix(int filetype)
int vlistDefAttTxt(int vlistID, int varID, const char *name, int len, const char *tp_cbuf)
int vlistNumber(int vlistID)
void cdiClearAdditionalKeys()
void vlistDefModel(int vlistID, int modelID)
int gridInqNvertex(int gridID)
int streamOpenWrite(const char *path, int filetype)
char * cdiStringError(int cdiErrno)
int gridInqGMEni3(int gridID)
int vlistInqVarTsteptype(int vlistID, int varID)
int streamInqByteorder(int streamID)
int gridInqYvals(int gridID, double *yvals_vec)
int gridInqNumber(int gridID)
void streamDefRecord(int streamID, int varID, int levelID)
int cdiHaveFiletype(int filetype)
int vlistInqAttFlt(int vlistID, int varID, const char *name, int mlen, double *dp_vec)
int vlistInqVarInstitut(int vlistID, int varID)
void zaxisChangeType(int zaxisID, int zaxistype)
int gridInqPosition(int gridID)
int institutDef(int center, int subcenter, const char *name, const char *longname)
void streamClose(int streamID)
int zaxisInqSize(int zaxisID)
int gridDuplicate(int gridID)
void cdiDefGlobal(const char *string, int val)
void gridDefYsize(int gridID, int ysize)
char * tableInqParLongnamePtr(int tableID, int parID)
void zaxisDefNumber(int gridID, int number)
void vlistCopyFlag(int vlistID2, int vlistID1)
void vlistDefVarScalefactor(int vlistID, int varID, double scalefactor)
int vlistInqVarCode(int vlistID, int varID)
void streamWriteVarF(int streamID, int varID, const float *data_vec, int nmiss)
void streamWriteRecord(int streamID, const double *data_vec, int nmiss)
double gridInqXinc(int gridID)
void vlistDefVarTimaccu(int vlistID, int varID, int timaccu)
int streamInqNvars(int streamID)
void streamReadVarSlice(int streamID, int varID, int levelID, double *data_vec, int *nmiss)
void gridDefXlongname(int gridID, const char *xlongname)
double cdiInqMissval(void)
void vlistInqVarLongname(int vlistID, int varID, char *longname)
void vlistDefTable(int vlistID, int tableID)
void zaxisDefUnits(int zaxisID, const char *units)
int tableInqNum(int tableID)
void streamDefCompLevel(int streamID, int complevel)
void vlistPrint(int vlistID)
void vlistDefVarDatatype(int vlistID, int varID, int datatype)
void taxisDefVdate(int taxisID, int date)
void streamInqRecord(int streamID, int *varID, int *levelID)
void zaxisDefName(int zaxisID, const char *name)
void gridInqXname(int gridID, char *xname)
void gridDefReference(int gridID, const char *reference)
int modelInqGribID(int modelID)
void taxisDefCalendar(int taxisID, int calendar)
int gridInqYbounds(int gridID, double *ybounds_vec)
void streamDefByteorder(int streamID, int byteorder)
void vlistChangeGrid(int vlistID, int gridID1, int gridID2)
int taxisDuplicate(int taxisID)
void streamDefVlist(int streamID, int vlistID)
void zaxisDefLevel(int zaxisID, int levelID, double levels)
void vlistChangeZaxis(int vlistID, int zaxisID1, int zaxisID2)
int vlistDelAtt(int vlistID, int varID, const char *name)
int zaxisInqLtype(int zaxisID)
void taxisDefType(int taxisID, int type)
void taxisDefRtime(int taxisID, int time)
void gridDefAngle(int gridID, double angle)
int zaxisInqNumber(int gridID)
void vlistDefVarParam(int vlistID, int varID, int param)
int vlistInqVarChunkType(int vlistID, int varID)
int vlistInqVarModel(int vlistID, int varID)
int gridIsRotated(int gridID)
void zaxisDefLongname(int zaxisID, const char *longname)
int gridHasArea(int gridID)
const double * zaxisInqVctPtr(int zaxisID)
int taxisInqCalendar(int taxisID)
void streamCopyRecord(int streamIDdest, int streamIDsrc)
int vlistInqTable(int vlistID)
int vlistInqAttTxt(int vlistID, int varID, const char *name, int mlen, char *tp_cbuf)
void streamDefCompType(int streamID, int comptype)
void gridChangeType(int gridID, int gridtype)
int gridInqGMEnd(int gridID)
int taxisCreate(int timetype)
char * modelInqNamePtr(int modelID)
int zaxisInqType(int zaxisID)
void streamWriteVarSlice(int streamID, int varID, int levelID, const double *data_vec, int nmiss)
int institutInq(int center, int subcenter, const char *name, const char *longname)
void streamWriteRecordF(int streamID, const float *data_vec, int nmiss)
int vlistHasVarKey(int vlistID, int varID, const char *name)
void vlistDefVarCompType(int vlistID, int varID, int comptype)
void streamDefHistory(int streamID, int size, const char *history)
void cdiDefMissval(double missval)
int vlistInqVarEnsemble(int vlistID, int varID, int *ensID, int *ensCount, int *forecast_type)
void taxisDefVtimeBounds(int taxisID, int vtime_lb, int vtime_ub)
void streamReadVar(int streamID, int varID, double *data_vec, int *nmiss)
int zaxisInqPrec(int zaxisID)
void zaxisInqUnits(int zaxisID, char *units)
void cdiDecodeDate(int date, int *year, int *month, int *day)
int vlistInqVarSize(int vlistID, int varID)
int tableInqNumber(void)
void vlistDefIndex(int vlistID, int varID, int levID, int index)
void streamInqGinfo(int streamID, int *intnum, float *fltnum, off_t *bignum)
int vlistInqFlag(int vlistID, int varID, int levID)
int vlistZaxis(int vlistID, int index)
void zaxisDefLtype(int zaxisID, int ltype)