mo_cdi.f90 249 KB
Newer Older
1
2
! >>> Warning: This is a generated file. If you modify it, you get what you deserve. <<<
!
Uwe Schulzweida's avatar
Uwe Schulzweida committed
3
! Generated by "../interfaces/f2003/bindGen.rb" from input file "../src/cdi.h".
Uwe Schulzweida's avatar
Uwe Schulzweida committed
4
5

module mo_cdi
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
  use iso_c_binding
  implicit none
  private

  public ctrim
  public c_len

  interface
    integer(c_size_t) function lib_strlen(charPtr) bind(c, name = "strlen")
      import c_size_t, c_ptr
      type(c_ptr), value :: charPtr
    end function lib_strlen

    subroutine lib_free(pointer) bind(c, name = "free")
      import c_ptr
      type(c_ptr), value :: pointer
    end subroutine lib_free
  end interface

  integer(c_int), public, parameter :: CDI_MAX_NAME = 256
  integer(c_int), public, parameter :: CDI_UNDEFID = -1
  integer(c_int), public, parameter :: CDI_GLOBAL = -1
  integer(c_int), public, parameter :: CDI_BIGENDIAN = 0
  integer(c_int), public, parameter :: CDI_LITTLEENDIAN = 1
30
  integer(c_int), public, parameter :: CDI_PDPENDIAN = 2
31
32
33
34
35
36
37
38
39
40
41
42
  integer(c_int), public, parameter :: CDI_REAL = 1
  integer(c_int), public, parameter :: CDI_COMP = 2
  integer(c_int), public, parameter :: CDI_BOTH = 3
  integer(c_int), public, parameter :: CDI_NOERR = 0
  integer(c_int), public, parameter :: CDI_EEOF = -1
  integer(c_int), public, parameter :: CDI_ESYSTEM = -10
  integer(c_int), public, parameter :: CDI_EINVAL = -20
  integer(c_int), public, parameter :: CDI_EUFTYPE = -21
  integer(c_int), public, parameter :: CDI_ELIBNAVAIL = -22
  integer(c_int), public, parameter :: CDI_EUFSTRUCT = -23
  integer(c_int), public, parameter :: CDI_EUNC4 = -24
  integer(c_int), public, parameter :: CDI_ELIMIT = -99
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
  integer(c_int), public, parameter :: CDI_FILETYPE_UNDEF = -1
  integer(c_int), public, parameter :: CDI_FILETYPE_GRB = 1
  integer(c_int), public, parameter :: CDI_FILETYPE_GRB2 = 2
  integer(c_int), public, parameter :: CDI_FILETYPE_NC = 3
  integer(c_int), public, parameter :: CDI_FILETYPE_NC2 = 4
  integer(c_int), public, parameter :: CDI_FILETYPE_NC4 = 5
  integer(c_int), public, parameter :: CDI_FILETYPE_NC4C = 6
  integer(c_int), public, parameter :: CDI_FILETYPE_SRV = 7
  integer(c_int), public, parameter :: CDI_FILETYPE_EXT = 8
  integer(c_int), public, parameter :: CDI_FILETYPE_IEG = 9
  integer(c_int), public, parameter :: CDI_COMPRESS_NONE = 0
  integer(c_int), public, parameter :: CDI_COMPRESS_SZIP = 1
  integer(c_int), public, parameter :: CDI_COMPRESS_GZIP = 2
  integer(c_int), public, parameter :: CDI_COMPRESS_BZIP2 = 3
  integer(c_int), public, parameter :: CDI_COMPRESS_ZIP = 4
  integer(c_int), public, parameter :: CDI_COMPRESS_JPEG = 5
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK = 0
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK1 = 1
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK2 = 2
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK3 = 3
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK4 = 4
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK5 = 5
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK6 = 6
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK7 = 7
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK8 = 8
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK9 = 9
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK10 = 10
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK11 = 11
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK12 = 12
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK13 = 13
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK14 = 14
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK15 = 15
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK16 = 16
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK17 = 17
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK18 = 18
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK19 = 19
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK20 = 20
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK21 = 21
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK22 = 22
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK23 = 23
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK24 = 24
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK25 = 25
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK26 = 26
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK27 = 27
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK28 = 28
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK29 = 29
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK30 = 30
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK31 = 31
  integer(c_int), public, parameter :: CDI_DATATYPE_PACK32 = 32
  integer(c_int), public, parameter :: CDI_DATATYPE_CPX32 = 64
  integer(c_int), public, parameter :: CDI_DATATYPE_CPX64 = 128
  integer(c_int), public, parameter :: CDI_DATATYPE_FLT32 = 132
  integer(c_int), public, parameter :: CDI_DATATYPE_FLT64 = 164
  integer(c_int), public, parameter :: CDI_DATATYPE_INT8 = 208
  integer(c_int), public, parameter :: CDI_DATATYPE_INT16 = 216
  integer(c_int), public, parameter :: CDI_DATATYPE_INT32 = 232
  integer(c_int), public, parameter :: CDI_DATATYPE_UINT8 = 308
  integer(c_int), public, parameter :: CDI_DATATYPE_UINT16 = 316
  integer(c_int), public, parameter :: CDI_DATATYPE_UINT32 = 332
  integer(c_int), public, parameter :: CDI_DATATYPE_INT = 251
  integer(c_int), public, parameter :: CDI_DATATYPE_FLT = 252
  integer(c_int), public, parameter :: CDI_DATATYPE_TXT = 253
  integer(c_int), public, parameter :: CDI_DATATYPE_CPX = 254
  integer(c_int), public, parameter :: CDI_DATATYPE_UCHAR = 255
  integer(c_int), public, parameter :: CDI_DATATYPE_LONG = 256
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
  integer(c_int), public, parameter :: CHUNK_AUTO = 1
  integer(c_int), public, parameter :: CHUNK_GRID = 2
  integer(c_int), public, parameter :: CHUNK_LINES = 3
  integer(c_int), public, parameter :: GRID_GENERIC = 1
  integer(c_int), public, parameter :: GRID_GAUSSIAN = 2
  integer(c_int), public, parameter :: GRID_GAUSSIAN_REDUCED = 3
  integer(c_int), public, parameter :: GRID_LONLAT = 4
  integer(c_int), public, parameter :: GRID_SPECTRAL = 5
  integer(c_int), public, parameter :: GRID_FOURIER = 6
  integer(c_int), public, parameter :: GRID_GME = 7
  integer(c_int), public, parameter :: GRID_TRAJECTORY = 8
  integer(c_int), public, parameter :: GRID_UNSTRUCTURED = 9
  integer(c_int), public, parameter :: GRID_CURVILINEAR = 10
  integer(c_int), public, parameter :: GRID_LCC = 11
  integer(c_int), public, parameter :: GRID_LCC2 = 12
  integer(c_int), public, parameter :: GRID_LAEA = 13
  integer(c_int), public, parameter :: GRID_SINUSOIDAL = 14
  integer(c_int), public, parameter :: GRID_PROJECTION = 15
  integer(c_int), public, parameter :: ZAXIS_SURFACE = 0
  integer(c_int), public, parameter :: ZAXIS_GENERIC = 1
  integer(c_int), public, parameter :: ZAXIS_HYBRID = 2
  integer(c_int), public, parameter :: ZAXIS_HYBRID_HALF = 3
  integer(c_int), public, parameter :: ZAXIS_PRESSURE = 4
  integer(c_int), public, parameter :: ZAXIS_HEIGHT = 5
  integer(c_int), public, parameter :: ZAXIS_DEPTH_BELOW_SEA = 6
  integer(c_int), public, parameter :: ZAXIS_DEPTH_BELOW_LAND = 7
  integer(c_int), public, parameter :: ZAXIS_ISENTROPIC = 8
  integer(c_int), public, parameter :: ZAXIS_TRAJECTORY = 9
  integer(c_int), public, parameter :: ZAXIS_ALTITUDE = 10
  integer(c_int), public, parameter :: ZAXIS_SIGMA = 11
  integer(c_int), public, parameter :: ZAXIS_MEANSEA = 12
  integer(c_int), public, parameter :: ZAXIS_TOA = 13
  integer(c_int), public, parameter :: ZAXIS_SEA_BOTTOM = 14
  integer(c_int), public, parameter :: ZAXIS_ATMOSPHERE = 15
  integer(c_int), public, parameter :: ZAXIS_CLOUD_BASE = 16
  integer(c_int), public, parameter :: ZAXIS_CLOUD_TOP = 17
  integer(c_int), public, parameter :: ZAXIS_ISOTHERM_ZERO = 18
  integer(c_int), public, parameter :: ZAXIS_SNOW = 19
  integer(c_int), public, parameter :: ZAXIS_LAKE_BOTTOM = 20
  integer(c_int), public, parameter :: ZAXIS_SEDIMENT_BOTTOM = 21
  integer(c_int), public, parameter :: ZAXIS_SEDIMENT_BOTTOM_TA = 22
  integer(c_int), public, parameter :: ZAXIS_SEDIMENT_BOTTOM_TW = 23
  integer(c_int), public, parameter :: ZAXIS_MIX_LAYER = 24
  integer(c_int), public, parameter :: ZAXIS_REFERENCE = 25
  integer(c_int), public, parameter :: MAX_KV_PAIRS_MATCH = 10
  integer(c_int), public, parameter :: TIME_CONSTANT = 0
  integer(c_int), public, parameter :: TIME_VARIABLE = 1
  integer(c_int), public, parameter :: TSTEP_CONSTANT = 0
  integer(c_int), public, parameter :: TSTEP_INSTANT = 1
  integer(c_int), public, parameter :: TSTEP_AVG = 2
  integer(c_int), public, parameter :: TSTEP_ACCUM = 3
  integer(c_int), public, parameter :: TSTEP_MAX = 4
  integer(c_int), public, parameter :: TSTEP_MIN = 5
  integer(c_int), public, parameter :: TSTEP_DIFF = 6
  integer(c_int), public, parameter :: TSTEP_RMS = 7
  integer(c_int), public, parameter :: TSTEP_SD = 8
  integer(c_int), public, parameter :: TSTEP_COV = 9
  integer(c_int), public, parameter :: TSTEP_RATIO = 10
  integer(c_int), public, parameter :: TSTEP_RANGE = 11
  integer(c_int), public, parameter :: TSTEP_INSTANT2 = 12
  integer(c_int), public, parameter :: TSTEP_INSTANT3 = 13
  integer(c_int), public, parameter :: TAXIS_ABSOLUTE = 1
  integer(c_int), public, parameter :: TAXIS_RELATIVE = 2
  integer(c_int), public, parameter :: TAXIS_FORECAST = 3
  integer(c_int), public, parameter :: TUNIT_SECOND = 1
  integer(c_int), public, parameter :: TUNIT_MINUTE = 2
  integer(c_int), public, parameter :: TUNIT_QUARTER = 3
  integer(c_int), public, parameter :: TUNIT_30MINUTES = 4
  integer(c_int), public, parameter :: TUNIT_HOUR = 5
  integer(c_int), public, parameter :: TUNIT_3HOURS = 6
  integer(c_int), public, parameter :: TUNIT_6HOURS = 7
  integer(c_int), public, parameter :: TUNIT_12HOURS = 8
  integer(c_int), public, parameter :: TUNIT_DAY = 9
  integer(c_int), public, parameter :: TUNIT_MONTH = 10
  integer(c_int), public, parameter :: TUNIT_YEAR = 11
  integer(c_int), public, parameter :: CALENDAR_STANDARD = 0
  integer(c_int), public, parameter :: CALENDAR_PROLEPTIC = 1
  integer(c_int), public, parameter :: CALENDAR_360DAYS = 2
  integer(c_int), public, parameter :: CALENDAR_365DAYS = 3
  integer(c_int), public, parameter :: CALENDAR_366DAYS = 4
  integer(c_int), public, parameter :: CALENDAR_NONE = 5
  integer(c_int), public, parameter :: CDI_UUID_SIZE = 16

  public t_CdiParam
  type, bind(c) :: t_CdiParam
    integer(c_int) :: discipline
    integer(c_int) :: category
    integer(c_int) :: number
  end type t_CdiParam

198
199
  public :: t_CdiIterator
  type :: t_CdiIterator
200
201
202
    type(c_ptr) :: ptr
  end type t_CdiIterator

203
204
  public :: t_CdiGribIterator
  type :: t_CdiGribIterator
205
206
    type(c_ptr) :: ptr
  end type t_CdiGribIterator
Thomas Jahns's avatar
Thomas Jahns committed
207
208
209
210
211
212
213
214
215
216
217
  public :: cdiReset
  public :: cdiStringError
  public :: cdiDebug
  public :: cdiLibraryVersion
  public :: cdiPrintVersion
  public :: cdiHaveFiletype
  public :: cdiDefMissval
  public :: cdiInqMissval
  public :: cdiDefGlobal
  public :: namespaceNew
  public :: namespaceSetActive
218
  public :: namespaceGetActive
Thomas Jahns's avatar
Thomas Jahns committed
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
  public :: namespaceDelete
  public :: cdiParamToString
  public :: cdiDecodeParam
  public :: cdiEncodeParam
  public :: cdiDecodeDate
  public :: cdiEncodeDate
  public :: cdiDecodeTime
  public :: cdiEncodeTime
  public :: cdiGetFiletype
  public :: streamOpenRead
  public :: streamOpenWrite
  public :: streamOpenAppend
  public :: streamClose
  public :: streamSync
  public :: streamDefVlist
  public :: streamInqVlist
  public :: streamInqFiletype
  public :: streamDefByteorder
  public :: streamInqByteorder
  public :: streamDefCompType
  public :: streamInqCompType
  public :: streamDefCompLevel
  public :: streamInqCompLevel
  public :: streamDefTimestep
  public :: streamInqTimestep
  public :: streamInqCurTimestepID
  public :: streamFilename
  public :: streamFilesuffix
  public :: streamInqNvars
  public :: streamWriteVar
  public :: streamWriteVarF
  public :: streamReadVar
  public :: streamReadVarF
  public :: streamWriteVarSlice
  public :: streamWriteVarSliceF
  public :: streamReadVarSlice
  public :: streamReadVarSliceF
  public :: streamWriteVarChunk
  public :: streamDefRecord
  public :: streamInqRecord
  public :: streamWriteRecord
  public :: streamWriteRecordF
  public :: streamReadRecord
262
  public :: streamReadRecordF
Thomas Jahns's avatar
Thomas Jahns committed
263
264
265
266
267
268
269
270
271
  public :: streamCopyRecord
  public :: cdiIterator_new
  public :: cdiIterator_clone
  public :: cdiIterator_serialize
  public :: cdiIterator_deserialize
  public :: cdiIterator_delete
  public :: cdiIterator_nextField
  public :: cdiIterator_inqStartTime
  public :: cdiIterator_inqEndTime
272
  public :: cdiIterator_inqRTime
Thomas Jahns's avatar
Thomas Jahns committed
273
274
275
276
  public :: cdiIterator_inqVTime
  public :: cdiIterator_inqLevelType
  public :: cdiIterator_inqLevel
  public :: cdiIterator_inqLevelUuid
277
278
  public :: cdiIterator_inqTile
  public :: cdiIterator_inqTileCount
Thomas Jahns's avatar
Thomas Jahns committed
279
  public :: cdiIterator_inqParam
280
  public :: cdiIterator_inqParamParts
Thomas Jahns's avatar
Thomas Jahns committed
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
  public :: cdiIterator_inqDatatype
  public :: cdiIterator_inqTsteptype
  public :: cdiIterator_inqVariableName
  public :: cdiIterator_inqGridId
  public :: cdiIterator_readField
  public :: cdiIterator_readFieldF
  public :: cdiGribIterator_clone
  public :: cdiGribIterator_delete
  public :: cdiGribIterator_getLong
  public :: cdiGribIterator_getDouble
  public :: cdiGribIterator_getLength
  public :: cdiGribIterator_getString
  public :: cdiGribIterator_getSize
  public :: cdiGribIterator_getLongArray
  public :: cdiGribIterator_getDoubleArray
  public :: cdiGribIterator_inqEdition
  public :: cdiGribIterator_inqLongValue
  public :: cdiGribIterator_inqLongDefaultValue
  public :: cdiGribIterator_inqDoubleValue
  public :: cdiGribIterator_inqDoubleDefaultValue
  public :: cdiGribIterator_inqStringValue
  public :: vlistCreate
  public :: vlistDestroy
  public :: vlistDuplicate
  public :: vlistCopy
  public :: vlistCopyFlag
  public :: vlistClearFlag
  public :: vlistCat
  public :: vlistMerge
  public :: vlistPrint
  public :: vlistNumber
  public :: vlistNvars
  public :: vlistNgrids
  public :: vlistNzaxis
  public :: vlistNsubtypes
  public :: vlistDefNtsteps
  public :: vlistNtsteps
  public :: vlistGridsizeMax
  public :: vlistGrid
  public :: vlistGridIndex
  public :: vlistChangeGridIndex
  public :: vlistChangeGrid
  public :: vlistZaxis
  public :: vlistZaxisIndex
  public :: vlistChangeZaxisIndex
  public :: vlistChangeZaxis
  public :: vlistNrecs
  public :: vlistSubtype
  public :: vlistSubtypeIndex
  public :: vlistDefTaxis
  public :: vlistInqTaxis
  public :: vlistDefTable
  public :: vlistInqTable
  public :: vlistDefInstitut
  public :: vlistInqInstitut
  public :: vlistDefModel
  public :: vlistInqModel
  public :: vlistDefVarTiles
  public :: vlistDefVar
  public :: vlistChangeVarGrid
  public :: vlistChangeVarZaxis
  public :: vlistInqVar
  public :: vlistInqVarGrid
  public :: vlistInqVarZaxis
  public :: vlistInqVarID
  public :: vlistDefVarTsteptype
  public :: vlistInqVarTsteptype
  public :: vlistDefVarCompType
  public :: vlistInqVarCompType
  public :: vlistDefVarCompLevel
  public :: vlistInqVarCompLevel
  public :: vlistDefVarParam
  public :: vlistInqVarParam
  public :: vlistDefVarCode
  public :: vlistInqVarCode
  public :: vlistDefVarDatatype
  public :: vlistInqVarDatatype
  public :: vlistDefVarChunkType
  public :: vlistInqVarChunkType
  public :: vlistDefVarXYZ
  public :: vlistInqVarXYZ
  public :: vlistInqVarNumber
  public :: vlistDefVarInstitut
  public :: vlistInqVarInstitut
  public :: vlistDefVarModel
  public :: vlistInqVarModel
  public :: vlistDefVarTable
  public :: vlistInqVarTable
  public :: vlistDefVarName
  public :: vlistInqVarName
  public :: vlistCopyVarName
  public :: vlistDefVarStdname
  public :: vlistInqVarStdname
  public :: vlistDefVarLongname
  public :: vlistInqVarLongname
  public :: vlistDefVarUnits
  public :: vlistInqVarUnits
  public :: vlistDefVarMissval
  public :: vlistInqVarMissval
  public :: vlistDefVarExtra
  public :: vlistInqVarExtra
  public :: vlistDefVarScalefactor
  public :: vlistInqVarScalefactor
  public :: vlistDefVarAddoffset
  public :: vlistInqVarAddoffset
  public :: vlistDefVarTimave
  public :: vlistInqVarTimave
  public :: vlistDefVarTimaccu
  public :: vlistInqVarTimaccu
  public :: vlistDefVarTypeOfGeneratingProcess
  public :: vlistInqVarTypeOfGeneratingProcess
  public :: vlistDefVarProductDefinitionTemplate
  public :: vlistInqVarProductDefinitionTemplate
  public :: vlistInqVarSize
  public :: vlistDefIndex
  public :: vlistInqIndex
  public :: vlistDefFlag
  public :: vlistInqFlag
  public :: vlistFindVar
  public :: vlistFindLevel
  public :: vlistMergedVar
  public :: vlistMergedLevel
  public :: vlistDefVarEnsemble
  public :: vlistInqVarEnsemble
  public :: cdiClearAdditionalKeys
  public :: cdiDefAdditionalKey
  public :: vlistDefVarIntKey
  public :: vlistDefVarDblKey
  public :: vlistHasVarKey
  public :: vlistInqVarDblKey
  public :: vlistInqVarIntKey
412
413
414
  public :: vlistInqVarNamePtr
  public :: vlistInqVarLongnamePtr
  public :: vlistInqVarUnitsPtr
Thomas Jahns's avatar
Thomas Jahns committed
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
  public :: vlistInqNatts
  public :: vlistInqAtt
  public :: vlistDelAtt
  public :: vlistDefAttInt
  public :: vlistDefAttFlt
  public :: vlistDefAttTxt
  public :: vlistInqAttInt
  public :: vlistInqAttFlt
  public :: vlistInqAttTxt
  public :: gridName
  public :: gridNamePtr
  public :: gridCompress
  public :: gridDefMaskGME
  public :: gridInqMaskGME
  public :: gridDefMask
  public :: gridInqMask
  public :: gridPrint
  public :: gridCreate
  public :: gridDestroy
  public :: gridDuplicate
  public :: gridInqType
  public :: gridInqSize
  public :: gridDefXsize
  public :: gridInqXsize
  public :: gridDefYsize
  public :: gridInqYsize
  public :: gridDefNP
  public :: gridInqNP
  public :: gridDefXvals
  public :: gridInqXvals
  public :: gridDefYvals
  public :: gridInqYvals
447
448
449
450
  integer(c_int), public, parameter :: CDI_GRID_XNAME = 901
  integer(c_int), public, parameter :: CDI_GRID_YNAME = 902
  integer(c_int), public, parameter :: CDI_GRID_XDIMNAME = 903
  integer(c_int), public, parameter :: CDI_GRID_YDIMNAME = 904
451
452
453
454
455
  integer(c_int), public, parameter :: CDI_GRID_VDIMNAME = 905
  integer(c_int), public, parameter :: CDI_GRID_XLONGNAME = 906
  integer(c_int), public, parameter :: CDI_GRID_YLONGNAME = 907
  integer(c_int), public, parameter :: CDI_GRID_XUNITS = 908
  integer(c_int), public, parameter :: CDI_GRID_YUNITS = 909
456
457
  public :: cdiGridDefString
  public :: cdiGridInqString
Thomas Jahns's avatar
Thomas Jahns committed
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
  public :: gridDefXname
  public :: gridInqXname
  public :: gridDefXlongname
  public :: gridInqXlongname
  public :: gridDefXunits
  public :: gridInqXunits
  public :: gridDefYname
  public :: gridInqYname
  public :: gridDefYlongname
  public :: gridInqYlongname
  public :: gridDefYunits
  public :: gridInqYunits
  public :: gridInqXstdname
  public :: gridInqYstdname
  public :: gridDefPrec
  public :: gridInqPrec
  public :: gridInqXval
  public :: gridInqYval
  public :: gridInqXinc
  public :: gridInqYinc
  public :: gridIsCircular
  public :: gridIsRotated
  public :: gridDefXpole
  public :: gridInqXpole
  public :: gridDefYpole
  public :: gridInqYpole
  public :: gridDefAngle
  public :: gridInqAngle
  public :: gridInqTrunc
  public :: gridDefTrunc
  public :: gridDefGMEnd
  public :: gridInqGMEnd
  public :: gridDefGMEni
  public :: gridInqGMEni
  public :: gridDefGMEni2
  public :: gridInqGMEni2
  public :: gridDefGMEni3
  public :: gridInqGMEni3
  public :: gridDefNumber
  public :: gridInqNumber
  public :: gridDefPosition
  public :: gridInqPosition
  public :: gridDefReference
  public :: gridInqReference
  public :: gridDefUUID
  public :: gridInqUUID
  public :: gridDefLCC
  public :: gridInqLCC
  public :: gridDefLcc2
  public :: gridInqLcc2
  public :: gridDefLaea
  public :: gridInqLaea
  public :: gridDefArea
  public :: gridInqArea
  public :: gridHasArea
  public :: gridDefNvertex
  public :: gridInqNvertex
  public :: gridDefXbounds
  public :: gridInqXbounds
  public :: gridDefYbounds
  public :: gridInqYbounds
  public :: gridDefRowlon
  public :: gridInqRowlon
  public :: gridChangeType
  public :: gridDefComplexPacking
  public :: gridInqComplexPacking
  public :: zaxisName
  public :: zaxisCreate
  public :: zaxisDestroy
  public :: zaxisInqType
  public :: zaxisInqSize
  public :: zaxisDuplicate
  public :: zaxisResize
  public :: zaxisPrint
  public :: zaxisDefLevels
  public :: zaxisInqLevels
  public :: zaxisDefLevel
  public :: zaxisInqLevel
  public :: zaxisDefNlevRef
  public :: zaxisInqNlevRef
  public :: zaxisDefNumber
  public :: zaxisInqNumber
  public :: zaxisDefUUID
  public :: zaxisInqUUID
542
543
544
545
546
547
548
  integer(c_int), public, parameter :: CDI_ZAXIS_NAME = 801
  integer(c_int), public, parameter :: CDI_ZAXIS_DIMNAME = 802
  integer(c_int), public, parameter :: CDI_ZAXIS_VDIMNAME = 803
  integer(c_int), public, parameter :: CDI_ZAXIS_LONGNAME = 804
  integer(c_int), public, parameter :: CDI_ZAXIS_UNITS = 805
  public :: cdiZaxisDefString
  public :: cdiZaxisInqString
Thomas Jahns's avatar
Thomas Jahns committed
549
550
551
552
553
554
555
  public :: zaxisDefName
  public :: zaxisInqName
  public :: zaxisDefLongname
  public :: zaxisInqLongname
  public :: zaxisDefUnits
  public :: zaxisInqUnits
  public :: zaxisInqStdname
Uwe Schulzweida's avatar
Uwe Schulzweida committed
556
557
  public :: zaxisDefPsName
  public :: zaxisInqPsName
Thomas Jahns's avatar
Thomas Jahns committed
558
559
560
561
  public :: zaxisDefPrec
  public :: zaxisInqPrec
  public :: zaxisDefPositive
  public :: zaxisInqPositive
Uwe Schulzweida's avatar
Uwe Schulzweida committed
562
563
  public :: zaxisDefScalar
  public :: zaxisInqScalar
Thomas Jahns's avatar
Thomas Jahns committed
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
  public :: zaxisDefLtype
  public :: zaxisInqLtype
  public :: zaxisInqLevelsPtr
  public :: zaxisDefVct
  public :: zaxisInqVct
  public :: zaxisInqVctSize
  public :: zaxisInqVctPtr
  public :: zaxisDefLbounds
  public :: zaxisInqLbounds
  public :: zaxisInqLbound
  public :: zaxisDefUbounds
  public :: zaxisInqUbounds
  public :: zaxisInqUbound
  public :: zaxisDefWeights
  public :: zaxisInqWeights
  public :: zaxisChangeType
  public :: taxisCreate
  public :: taxisDestroy
  public :: taxisDuplicate
  public :: taxisCopyTimestep
  public :: taxisDefType
  public :: taxisDefVdate
  public :: taxisDefVtime
  public :: taxisInqVdate
  public :: taxisInqVtime
  public :: taxisDefRdate
  public :: taxisDefRtime
  public :: taxisInqRdate
  public :: taxisInqRtime
  public :: taxisDefFdate
  public :: taxisDefFtime
  public :: taxisInqFdate
  public :: taxisInqFtime
  public :: taxisHasBounds
  public :: taxisDeleteBounds
  public :: taxisDefVdateBounds
  public :: taxisDefVtimeBounds
  public :: taxisInqVdateBounds
  public :: taxisInqVtimeBounds
  public :: taxisDefCalendar
  public :: taxisInqCalendar
  public :: taxisDefTunit
  public :: taxisInqTunit
  public :: taxisDefForecastTunit
  public :: taxisInqForecastTunit
  public :: taxisDefForecastPeriod
  public :: taxisInqForecastPeriod
  public :: taxisDefNumavg
  public :: taxisInqType
  public :: taxisInqNumavg
  public :: tunitNamePtr
  public :: institutDef
  public :: institutInq
  public :: institutInqNumber
  public :: institutInqCenter
  public :: institutInqSubcenter
  public :: institutInqNamePtr
  public :: institutInqLongnamePtr
  public :: modelDef
  public :: modelInq
  public :: modelInqInstitut
  public :: modelInqGribID
  public :: modelInqNamePtr
  public :: tableWriteC
  public :: tableWrite
  public :: tableRead
  public :: tableDef
  public :: tableInqNamePtr
  public :: tableDefEntry
  public :: tableInq
  public :: tableInqNumber
  public :: tableInqNum
  public :: tableInqModel
  public :: tableInqPar
  public :: tableInqParCode
  public :: tableInqParName
  public :: tableInqParLongname
  public :: tableInqParUnits
  public :: tableInqParNamePtr
  public :: tableInqParLongnamePtr
  public :: tableInqParUnitsPtr
  public :: streamDefHistory
  public :: streamInqHistorySize
  public :: streamInqHistoryString
  public :: subtypeCreate
  public :: subtypePrint
  public :: subtypeCompare
  public :: subtypeInqSize
  public :: subtypeInqActiveIndex
  public :: subtypeDefActiveIndex
  public :: subtypeInqTile
655
  public :: subtypeInqAttribute
Thomas Jahns's avatar
Thomas Jahns committed
656
657
  public :: vlistInqVarSubtype
  public :: gribapiLibraryVersion
Uwe Schulzweida's avatar
Uwe Schulzweida committed
658

659
660
661
662
663
664
665
666
667
668
669
670
671
  interface
    subroutine cdiReset() bind(c, name = 'cdiReset')
    end subroutine cdiReset

    subroutine cdiDebug(debug_dummy) bind(c, name = 'cdiDebug')
      import c_int
      integer(c_int), value :: debug_dummy
    end subroutine cdiDebug

    subroutine cdiPrintVersion() bind(c, name = 'cdiPrintVersion')
    end subroutine cdiPrintVersion

    function cdiHaveFiletype(filetype_dummy) bind(c, name = 'cdiHaveFiletype')&
Thomas Jahns's avatar
Thomas Jahns committed
672
    & result(f_result)
673
674
      import c_int
      integer(c_int), value :: filetype_dummy
Thomas Jahns's avatar
Thomas Jahns committed
675
      integer(c_int) :: f_result
676
677
678
679
680
681
682
    end function cdiHaveFiletype

    subroutine cdiDefMissval(missval_dummy) bind(c, name = 'cdiDefMissval')
      import c_double
      real(c_double), value :: missval_dummy
    end subroutine cdiDefMissval

Thomas Jahns's avatar
Thomas Jahns committed
683
    function cdiInqMissval() bind(c, name = 'cdiInqMissval') result(f_result)
684
      import c_double
Thomas Jahns's avatar
Thomas Jahns committed
685
      real(c_double) :: f_result
686
687
    end function cdiInqMissval

Thomas Jahns's avatar
Thomas Jahns committed
688
    function namespaceNew() bind(c, name = 'namespaceNew') result(f_result)
689
      import c_int
Thomas Jahns's avatar
Thomas Jahns committed
690
      integer(c_int) :: f_result
691
692
693
694
695
696
697
698
    end function namespaceNew

    subroutine namespaceSetActive(namespaceID_dummy) bind(c, name =&
    & 'namespaceSetActive')
      import c_int
      integer(c_int), value :: namespaceID_dummy
    end subroutine namespaceSetActive

699
700
701
702
703
704
    function namespaceGetActive() bind(c, name = 'namespaceGetActive')&
    & result(f_result)
      import c_int
      integer(c_int) :: f_result
    end function namespaceGetActive

705
706
707
708
709
710
    subroutine namespaceDelete(namespaceID_dummy) bind(c, name =&
    & 'namespaceDelete')
      import c_int
      integer(c_int), value :: namespaceID_dummy
    end subroutine namespaceDelete

711
712
713
714
715
716
717
718
719
    subroutine cdiDecodeParam(param_dummy, pnum_dummy, pcat_dummy, pdis_dummy)&
    & bind(c, name = 'cdiDecodeParam')
      import c_int
      integer(c_int), value :: param_dummy
      integer(c_int), intent(inout) :: pnum_dummy
      integer(c_int), intent(inout) :: pcat_dummy
      integer(c_int), intent(inout) :: pdis_dummy
    end subroutine cdiDecodeParam

720
    function cdiEncodeParam(pnum_dummy, pcat_dummy, pdis_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
721
    & 'cdiEncodeParam') result(f_result)
722
723
724
725
      import c_int
      integer(c_int), value :: pnum_dummy
      integer(c_int), value :: pcat_dummy
      integer(c_int), value :: pdis_dummy
Thomas Jahns's avatar
Thomas Jahns committed
726
      integer(c_int) :: f_result
727
728
    end function cdiEncodeParam

729
730
731
732
733
734
735
736
737
    subroutine cdiDecodeDate(date_dummy, year_dummy, month_dummy, day_dummy)&
    & bind(c, name = 'cdiDecodeDate')
      import c_int
      integer(c_int), value :: date_dummy
      integer(c_int), intent(inout) :: year_dummy
      integer(c_int), intent(inout) :: month_dummy
      integer(c_int), intent(inout) :: day_dummy
    end subroutine cdiDecodeDate

738
    function cdiEncodeDate(year_dummy, month_dummy, day_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
739
    & 'cdiEncodeDate') result(f_result)
740
741
742
743
      import c_int
      integer(c_int), value :: year_dummy
      integer(c_int), value :: month_dummy
      integer(c_int), value :: day_dummy
Thomas Jahns's avatar
Thomas Jahns committed
744
      integer(c_int) :: f_result
745
746
    end function cdiEncodeDate

747
748
749
750
751
752
753
754
755
    subroutine cdiDecodeTime(time_dummy, hour_dummy, minute_dummy,&
    & second_dummy) bind(c, name = 'cdiDecodeTime')
      import c_int
      integer(c_int), value :: time_dummy
      integer(c_int), intent(inout) :: hour_dummy
      integer(c_int), intent(inout) :: minute_dummy
      integer(c_int), intent(inout) :: second_dummy
    end subroutine cdiDecodeTime

756
    function cdiEncodeTime(hour_dummy, minute_dummy, second_dummy) bind(c, name&
Thomas Jahns's avatar
Thomas Jahns committed
757
    & = 'cdiEncodeTime') result(f_result)
758
759
760
761
      import c_int
      integer(c_int), value :: hour_dummy
      integer(c_int), value :: minute_dummy
      integer(c_int), value :: second_dummy
Thomas Jahns's avatar
Thomas Jahns committed
762
      integer(c_int) :: f_result
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
    end function cdiEncodeTime

    subroutine streamClose(streamID_dummy) bind(c, name = 'streamClose')
      import c_int
      integer(c_int), value :: streamID_dummy
    end subroutine streamClose

    subroutine streamSync(streamID_dummy) bind(c, name = 'streamSync')
      import c_int
      integer(c_int), value :: streamID_dummy
    end subroutine streamSync

    subroutine streamDefVlist(streamID_dummy, vlistID_dummy) bind(c, name =&
    & 'streamDefVlist')
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: vlistID_dummy
    end subroutine streamDefVlist

    function streamInqVlist(streamID_dummy) bind(c, name = 'streamInqVlist')&
Thomas Jahns's avatar
Thomas Jahns committed
783
    & result(f_result)
784
785
      import c_int
      integer(c_int), value :: streamID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
786
      integer(c_int) :: f_result
787
788
789
    end function streamInqVlist

    function streamInqFiletype(streamID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
790
    & 'streamInqFiletype') result(f_result)
791
792
      import c_int
      integer(c_int), value :: streamID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
793
      integer(c_int) :: f_result
794
795
796
797
798
799
800
801
802
803
    end function streamInqFiletype

    subroutine streamDefByteorder(streamID_dummy, byteorder_dummy) bind(c, name&
    & = 'streamDefByteorder')
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: byteorder_dummy
    end subroutine streamDefByteorder

    function streamInqByteorder(streamID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
804
    & 'streamInqByteorder') result(f_result)
805
806
      import c_int
      integer(c_int), value :: streamID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
807
      integer(c_int) :: f_result
808
809
810
811
812
813
814
815
816
817
    end function streamInqByteorder

    subroutine streamDefCompType(streamID_dummy, comptype_dummy) bind(c, name =&
    & 'streamDefCompType')
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: comptype_dummy
    end subroutine streamDefCompType

    function streamInqCompType(streamID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
818
    & 'streamInqCompType') result(f_result)
819
820
      import c_int
      integer(c_int), value :: streamID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
821
      integer(c_int) :: f_result
822
823
824
825
826
827
828
829
830
831
    end function streamInqCompType

    subroutine streamDefCompLevel(streamID_dummy, complevel_dummy) bind(c, name&
    & = 'streamDefCompLevel')
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: complevel_dummy
    end subroutine streamDefCompLevel

    function streamInqCompLevel(streamID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
832
    & 'streamInqCompLevel') result(f_result)
833
834
      import c_int
      integer(c_int), value :: streamID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
835
      integer(c_int) :: f_result
836
837
838
    end function streamInqCompLevel

    function streamDefTimestep(streamID_dummy, tsID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
839
    & 'streamDefTimestep') result(f_result)
840
841
842
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: tsID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
843
      integer(c_int) :: f_result
844
845
846
    end function streamDefTimestep

    function streamInqTimestep(streamID_dummy, tsID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
847
    & 'streamInqTimestep') result(f_result)
848
849
850
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: tsID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
851
      integer(c_int) :: f_result
852
853
854
    end function streamInqTimestep

    function streamInqCurTimestepID(streamID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
855
    & 'streamInqCurTimestepID') result(f_result)
856
857
      import c_int
      integer(c_int), value :: streamID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
858
      integer(c_int) :: f_result
859
860
861
    end function streamInqCurTimestepID

    function streamInqNvars(streamID_dummy) bind(c, name = 'streamInqNvars')&
Thomas Jahns's avatar
Thomas Jahns committed
862
    & result(f_result)
863
864
      import c_int
      integer(c_int), value :: streamID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
865
      integer(c_int) :: f_result
866
867
    end function streamInqNvars

868
    subroutine streamWriteVar(streamID_dummy, varID_dummy, data_dummy,&
869
870
871
872
    & nmiss_dummy) bind(c, name = 'streamWriteVar')
      import c_double, c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
873
      real(c_double), intent(in) :: data_dummy(*)
874
875
876
      integer(c_int), value :: nmiss_dummy
    end subroutine streamWriteVar

877
    subroutine streamWriteVarF(streamID_dummy, varID_dummy, data_dummy,&
878
879
880
881
    & nmiss_dummy) bind(c, name = 'streamWriteVarF')
      import c_float, c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
882
      real(c_float), intent(in) :: data_dummy(*)
883
884
885
      integer(c_int), value :: nmiss_dummy
    end subroutine streamWriteVarF

886
    subroutine streamReadVar(streamID_dummy, varID_dummy, data_dummy,&
887
888
889
890
    & nmiss_dummy) bind(c, name = 'streamReadVar')
      import c_double, c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
891
      real(c_double), intent(inout) :: data_dummy(*)
892
893
894
      integer(c_int), intent(inout) :: nmiss_dummy
    end subroutine streamReadVar

895
    subroutine streamReadVarF(streamID_dummy, varID_dummy, data_dummy,&
896
897
898
899
    & nmiss_dummy) bind(c, name = 'streamReadVarF')
      import c_float, c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
900
      real(c_float), intent(inout) :: data_dummy(*)
901
902
903
      integer(c_int), intent(inout) :: nmiss_dummy
    end subroutine streamReadVarF

904
    subroutine streamWriteVarSlice(streamID_dummy, varID_dummy, levelID_dummy,&
905
    & data_dummy, nmiss_dummy) bind(c, name = 'streamWriteVarSlice')
906
907
908
909
      import c_double, c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), value :: levelID_dummy
910
      real(c_double), intent(in) :: data_dummy(*)
911
912
913
914
      integer(c_int), value :: nmiss_dummy
    end subroutine streamWriteVarSlice

    subroutine streamWriteVarSliceF(streamID_dummy, varID_dummy, levelID_dummy,&
915
    & data_dummy, nmiss_dummy) bind(c, name = 'streamWriteVarSliceF')
916
917
918
919
      import c_float, c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), value :: levelID_dummy
920
      real(c_float), intent(in) :: data_dummy(*)
921
922
923
      integer(c_int), value :: nmiss_dummy
    end subroutine streamWriteVarSliceF

924
    subroutine streamReadVarSlice(streamID_dummy, varID_dummy, levelID_dummy,&
925
    & data_dummy, nmiss_dummy) bind(c, name = 'streamReadVarSlice')
926
927
928
929
      import c_double, c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), value :: levelID_dummy
930
      real(c_double), intent(inout) :: data_dummy(*)
931
932
933
934
      integer(c_int), intent(inout) :: nmiss_dummy
    end subroutine streamReadVarSlice

    subroutine streamReadVarSliceF(streamID_dummy, varID_dummy, levelID_dummy,&
935
    & data_dummy, nmiss_dummy) bind(c, name = 'streamReadVarSliceF')
936
937
938
939
      import c_float, c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), value :: levelID_dummy
940
      real(c_float), intent(inout) :: data_dummy(*)
941
942
943
      integer(c_int), intent(inout) :: nmiss_dummy
    end subroutine streamReadVarSliceF

944
    subroutine streamWriteVarChunk(streamID_dummy, varID_dummy, rect_dummy,&
945
    & data_dummy, nmiss_dummy) bind(c, name = 'streamWriteVarChunk')
946
947
948
949
      import c_double, c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), intent(in) :: rect_dummy(2, 3)
950
      real(c_double), intent(in) :: data_dummy(*)
951
952
953
954
955
956
957
958
959
960
961
      integer(c_int), value :: nmiss_dummy
    end subroutine streamWriteVarChunk

    subroutine streamDefRecord(streamID_dummy, varID_dummy, levelID_dummy)&
    & bind(c, name = 'streamDefRecord')
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), value :: levelID_dummy
    end subroutine streamDefRecord

962
963
964
965
966
967
968
969
    subroutine streamInqRecord(streamID_dummy, varID_dummy, levelID_dummy)&
    & bind(c, name = 'streamInqRecord')
      import c_int
      integer(c_int), value :: streamID_dummy
      integer(c_int), intent(inout) :: varID_dummy
      integer(c_int), intent(inout) :: levelID_dummy
    end subroutine streamInqRecord

970
    subroutine streamWriteRecord(streamID_dummy, data_dummy, nmiss_dummy)&
971
972
973
    & bind(c, name = 'streamWriteRecord')
      import c_double, c_int
      integer(c_int), value :: streamID_dummy
974
      real(c_double), intent(in) :: data_dummy(*)
975
976
977
      integer(c_int), value :: nmiss_dummy
    end subroutine streamWriteRecord

978
    subroutine streamWriteRecordF(streamID_dummy, data_dummy, nmiss_dummy)&
979
980
981
    & bind(c, name = 'streamWriteRecordF')
      import c_float, c_int
      integer(c_int), value :: streamID_dummy
982
      real(c_float), intent(in) :: data_dummy(*)
983
984
985
      integer(c_int), value :: nmiss_dummy
    end subroutine streamWriteRecordF

986
    subroutine streamReadRecord(streamID_dummy, data_dummy, nmiss_dummy)&
987
988
989
    & bind(c, name = 'streamReadRecord')
      import c_double, c_int
      integer(c_int), value :: streamID_dummy
990
      real(c_double), intent(inout) :: data_dummy(*)
991
992
993
      integer(c_int), intent(inout) :: nmiss_dummy
    end subroutine streamReadRecord

994
995
996
997
998
999
1000
1001
    subroutine streamReadRecordF(streamID_dummy, data_dummy, nmiss_dummy)&
    & bind(c, name = 'streamReadRecordF')
      import c_float, c_int
      integer(c_int), value :: streamID_dummy
      real(c_float), intent(inout) :: data_dummy(*)
      integer(c_int), intent(inout) :: nmiss_dummy
    end subroutine streamReadRecordF

1002
1003
1004
1005
1006
1007
1008
    subroutine streamCopyRecord(streamIDdest_dummy, streamIDsrc_dummy) bind(c,&
    & name = 'streamCopyRecord')
      import c_int
      integer(c_int), value :: streamIDdest_dummy
      integer(c_int), value :: streamIDsrc_dummy
    end subroutine streamCopyRecord

Thomas Jahns's avatar
Thomas Jahns committed
1009
    function vlistCreate() bind(c, name = 'vlistCreate') result(f_result)
1010
      import c_int
Thomas Jahns's avatar
Thomas Jahns committed
1011
      integer(c_int) :: f_result
1012
1013
1014
1015
1016
1017
1018
1019
    end function vlistCreate

    subroutine vlistDestroy(vlistID_dummy) bind(c, name = 'vlistDestroy')
      import c_int
      integer(c_int), value :: vlistID_dummy
    end subroutine vlistDestroy

    function vlistDuplicate(vlistID_dummy) bind(c, name = 'vlistDuplicate')&
Thomas Jahns's avatar
Thomas Jahns committed
1020
    & result(f_result)
1021
1022
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1023
      integer(c_int) :: f_result
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
    end function vlistDuplicate

    subroutine vlistCopy(vlistID2_dummy, vlistID1_dummy) bind(c, name =&
    & 'vlistCopy')
      import c_int
      integer(c_int), value :: vlistID2_dummy
      integer(c_int), value :: vlistID1_dummy
    end subroutine vlistCopy

    subroutine vlistCopyFlag(vlistID2_dummy, vlistID1_dummy) bind(c, name =&
    & 'vlistCopyFlag')
      import c_int
      integer(c_int), value :: vlistID2_dummy
      integer(c_int), value :: vlistID1_dummy
    end subroutine vlistCopyFlag

    subroutine vlistClearFlag(vlistID_dummy) bind(c, name = 'vlistClearFlag')
      import c_int
      integer(c_int), value :: vlistID_dummy
    end subroutine vlistClearFlag

    subroutine vlistCat(vlistID2_dummy, vlistID1_dummy) bind(c, name =&
    & 'vlistCat')
      import c_int
      integer(c_int), value :: vlistID2_dummy
      integer(c_int), value :: vlistID1_dummy
    end subroutine vlistCat

    subroutine vlistMerge(vlistID2_dummy, vlistID1_dummy) bind(c, name =&
    & 'vlistMerge')
      import c_int
      integer(c_int), value :: vlistID2_dummy
      integer(c_int), value :: vlistID1_dummy
    end subroutine vlistMerge

    subroutine vlistPrint(vlistID_dummy) bind(c, name = 'vlistPrint')
      import c_int
      integer(c_int), value :: vlistID_dummy
    end subroutine vlistPrint

    function vlistNumber(vlistID_dummy) bind(c, name = 'vlistNumber')&
Thomas Jahns's avatar
Thomas Jahns committed
1065
    & result(f_result)
1066
1067
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1068
      integer(c_int) :: f_result
1069
1070
1071
    end function vlistNumber

    function vlistNvars(vlistID_dummy) bind(c, name = 'vlistNvars')&
Thomas Jahns's avatar
Thomas Jahns committed
1072
    & result(f_result)
1073
1074
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1075
      integer(c_int) :: f_result
1076
1077
1078
    end function vlistNvars

    function vlistNgrids(vlistID_dummy) bind(c, name = 'vlistNgrids')&
Thomas Jahns's avatar
Thomas Jahns committed
1079
    & result(f_result)
1080
1081
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1082
      integer(c_int) :: f_result
1083
1084
1085
    end function vlistNgrids

    function vlistNzaxis(vlistID_dummy) bind(c, name = 'vlistNzaxis')&
Thomas Jahns's avatar
Thomas Jahns committed
1086
    & result(f_result)
1087
1088
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1089
      integer(c_int) :: f_result
1090
1091
1092
    end function vlistNzaxis

    function vlistNsubtypes(vlistID_dummy) bind(c, name = 'vlistNsubtypes')&
Thomas Jahns's avatar
Thomas Jahns committed
1093
    & result(f_result)
1094
1095
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1096
      integer(c_int) :: f_result
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
    end function vlistNsubtypes

    subroutine vlistDefNtsteps(vlistID_dummy, nts_dummy) bind(c, name =&
    & 'vlistDefNtsteps')
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: nts_dummy
    end subroutine vlistDefNtsteps

    function vlistNtsteps(vlistID_dummy) bind(c, name = 'vlistNtsteps')&
Thomas Jahns's avatar
Thomas Jahns committed
1107
    & result(f_result)
1108
1109
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1110
      integer(c_int) :: f_result
1111
1112
1113
    end function vlistNtsteps

    function vlistGridsizeMax(vlistID_dummy) bind(c, name = 'vlistGridsizeMax')&
Thomas Jahns's avatar
Thomas Jahns committed
1114
    & result(f_result)
1115
1116
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1117
      integer(c_int) :: f_result
1118
1119
1120
    end function vlistGridsizeMax

    function vlistGrid(vlistID_dummy, index_dummy) bind(c, name = 'vlistGrid')&
Thomas Jahns's avatar
Thomas Jahns committed
1121
    & result(f_result)
1122
1123
1124
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: index_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1125
      integer(c_int) :: f_result
1126
1127
1128
    end function vlistGrid

    function vlistGridIndex(vlistID_dummy, gridID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
1129
    & 'vlistGridIndex') result(f_result)
1130
1131
1132
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: gridID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1133
      integer(c_int) :: f_result
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
    end function vlistGridIndex

    subroutine vlistChangeGridIndex(vlistID_dummy, index_dummy, gridID_dummy)&
    & bind(c, name = 'vlistChangeGridIndex')
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: index_dummy
      integer(c_int), value :: gridID_dummy
    end subroutine vlistChangeGridIndex

    subroutine vlistChangeGrid(vlistID_dummy, gridID1_dummy, gridID2_dummy)&
    & bind(c, name = 'vlistChangeGrid')
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: gridID1_dummy
      integer(c_int), value :: gridID2_dummy
    end subroutine vlistChangeGrid

    function vlistZaxis(vlistID_dummy, index_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
1153
    & 'vlistZaxis') result(f_result)
1154
1155
1156
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: index_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1157
      integer(c_int) :: f_result
1158
1159
1160
    end function vlistZaxis

    function vlistZaxisIndex(vlistID_dummy, zaxisID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
1161
    & 'vlistZaxisIndex') result(f_result)
1162
1163
1164
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: zaxisID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1165
      integer(c_int) :: f_result
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
    end function vlistZaxisIndex

    subroutine vlistChangeZaxisIndex(vlistID_dummy, index_dummy, zaxisID_dummy)&
    & bind(c, name = 'vlistChangeZaxisIndex')
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: index_dummy
      integer(c_int), value :: zaxisID_dummy
    end subroutine vlistChangeZaxisIndex

    subroutine vlistChangeZaxis(vlistID_dummy, zaxisID1_dummy, zaxisID2_dummy)&
    & bind(c, name = 'vlistChangeZaxis')
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: zaxisID1_dummy
      integer(c_int), value :: zaxisID2_dummy
    end subroutine vlistChangeZaxis

    function vlistNrecs(vlistID_dummy) bind(c, name = 'vlistNrecs')&
Thomas Jahns's avatar
Thomas Jahns committed
1185
    & result(f_result)
1186
1187
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1188
      integer(c_int) :: f_result
1189
1190
1191
    end function vlistNrecs

    function vlistSubtype(vlistID_dummy, index_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
1192
    & 'vlistSubtype') result(f_result)
1193
1194
1195
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: index_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1196
      integer(c_int) :: f_result
1197
1198
1199
    end function vlistSubtype

    function vlistSubtypeIndex(vlistID_dummy, subtypeID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
1200
    & 'vlistSubtypeIndex') result(f_result)
1201
1202
1203
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: subtypeID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1204
      integer(c_int) :: f_result
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
    end function vlistSubtypeIndex

    subroutine vlistDefTaxis(vlistID_dummy, taxisID_dummy) bind(c, name =&
    & 'vlistDefTaxis')
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: taxisID_dummy
    end subroutine vlistDefTaxis

    function vlistInqTaxis(vlistID_dummy) bind(c, name = 'vlistInqTaxis')&
Thomas Jahns's avatar
Thomas Jahns committed
1215
    & result(f_result)
1216
1217
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1218
      integer(c_int) :: f_result
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
    end function vlistInqTaxis

    subroutine vlistDefTable(vlistID_dummy, tableID_dummy) bind(c, name =&
    & 'vlistDefTable')
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: tableID_dummy
    end subroutine vlistDefTable

    function vlistInqTable(vlistID_dummy) bind(c, name = 'vlistInqTable')&
Thomas Jahns's avatar
Thomas Jahns committed
1229
    & result(f_result)
1230
1231
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1232
      integer(c_int) :: f_result
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
    end function vlistInqTable

    subroutine vlistDefInstitut(vlistID_dummy, instID_dummy) bind(c, name =&
    & 'vlistDefInstitut')
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: instID_dummy
    end subroutine vlistDefInstitut

    function vlistInqInstitut(vlistID_dummy) bind(c, name = 'vlistInqInstitut')&
Thomas Jahns's avatar
Thomas Jahns committed
1243
    & result(f_result)
1244
1245
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1246
      integer(c_int) :: f_result
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
    end function vlistInqInstitut

    subroutine vlistDefModel(vlistID_dummy, modelID_dummy) bind(c, name =&
    & 'vlistDefModel')
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: modelID_dummy
    end subroutine vlistDefModel

    function vlistInqModel(vlistID_dummy) bind(c, name = 'vlistInqModel')&
Thomas Jahns's avatar
Thomas Jahns committed
1257
    & result(f_result)
1258
1259
      import c_int
      integer(c_int), value :: vlistID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1260
      integer(c_int) :: f_result
1261
1262
1263
1264
    end function vlistInqModel

    function vlistDefVarTiles(vlistID_dummy, gridID_dummy, zaxisID_dummy,&
    & tsteptype_dummy, tilesetID_dummy) bind(c, name = 'vlistDefVarTiles')&
Thomas Jahns's avatar
Thomas Jahns committed
1265
    & result(f_result)
1266
1267
1268
1269
1270
1271
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: gridID_dummy
      integer(c_int), value :: zaxisID_dummy
      integer(c_int), value :: tsteptype_dummy
      integer(c_int), value :: tilesetID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1272
      integer(c_int) :: f_result
1273
1274
1275
    end function vlistDefVarTiles

    function vlistDefVar(vlistID_dummy, gridID_dummy, zaxisID_dummy,&
Thomas Jahns's avatar
Thomas Jahns committed
1276
    & tsteptype_dummy) bind(c, name = 'vlistDefVar') result(f_result)
1277
1278
1279
1280
1281
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: gridID_dummy
      integer(c_int), value :: zaxisID_dummy
      integer(c_int), value :: tsteptype_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1282
      integer(c_int) :: f_result
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
    end function vlistDefVar

    subroutine vlistChangeVarGrid(vlistID_dummy, varID_dummy, gridID_dummy)&
    & bind(c, name = 'vlistChangeVarGrid')
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), value :: gridID_dummy
    end subroutine vlistChangeVarGrid

    subroutine vlistChangeVarZaxis(vlistID_dummy, varID_dummy, zaxisID_dummy)&
    & bind(c, name = 'vlistChangeVarZaxis')
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), value :: zaxisID_dummy
    end subroutine vlistChangeVarZaxis

1301
1302
1303
1304
1305
1306
1307
1308
1309
1310
    subroutine vlistInqVar(vlistID_dummy, varID_dummy, gridID_dummy,&
    & zaxisID_dummy, tsteptype_dummy) bind(c, name = 'vlistInqVar')
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: varID_dummy
      integer(c_int), intent(inout) :: gridID_dummy
      integer(c_int), intent(inout) :: zaxisID_dummy
      integer(c_int), intent(inout) :: tsteptype_dummy
    end subroutine vlistInqVar

1311
    function vlistInqVarGrid(vlistID_dummy, varID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
1312
    & 'vlistInqVarGrid') result(f_result)
1313
1314
1315
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: varID_dummy
Thomas Jahns's avatar
Thomas Jahns committed
1316
      integer(c_int) :: f_result
1317
1318
1319
    end function vlistInqVarGrid

    function vlistInqVarZaxis(vlistID_dummy, varID_dummy) bind(c, name =&
Thomas Jahns's avatar
Thomas Jahns committed
1320
    & 'vlistInqVarZaxis') result(f_result)
1321
1322
1323
      import c_int
      integer(c_int), value :: vlistID_dummy
      integer(c_int), value :: varID_dummy