cdi.inc 94.5 KB
Newer Older
1
! This file was automatically generated, don't edit!
Uwe Schulzweida's avatar
Uwe Schulzweida committed
2
!
3
! Fortran interface for CDI library version 1.7.0
Uwe Schulzweida's avatar
Uwe Schulzweida committed
4
5
6
!
! Author:
! -------
7
! Uwe Schulzweida, MPI-MET, Hamburg,   August 2015
Uwe Schulzweida's avatar
Uwe Schulzweida committed
8
9
!

Deike Kleberg's avatar
Deike Kleberg committed
10
11
      INTEGER    CDI_MAX_NAME          
      PARAMETER (CDI_MAX_NAME           = 256)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
12
13
      INTEGER    CDI_UNDEFID           
      PARAMETER (CDI_UNDEFID            = -1)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
14
15
      INTEGER    CDI_GLOBAL            
      PARAMETER (CDI_GLOBAL             = -1)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
16
!
17
18
19
20
21
22
!  Byte order
!
      INTEGER    CDI_BIGENDIAN         
      PARAMETER (CDI_BIGENDIAN          =  0)
      INTEGER    CDI_LITTLEENDIAN      
      PARAMETER (CDI_LITTLEENDIAN       =  1)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
23
24
25
26
27
28
      INTEGER    CDI_REAL              
      PARAMETER (CDI_REAL               =  1)
      INTEGER    CDI_COMP              
      PARAMETER (CDI_COMP               =  2)
      INTEGER    CDI_BOTH              
      PARAMETER (CDI_BOTH               =  3)
29
!
Uwe Schulzweida's avatar
Uwe Schulzweida committed
30
31
!  Error identifier
!
Uwe Schulzweida's avatar
Uwe Schulzweida committed
32
33
      INTEGER    CDI_NOERR             
      PARAMETER (CDI_NOERR              =  0)
34
35
      INTEGER    CDI_EEOF              
      PARAMETER (CDI_EEOF               = -1)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
36
37
38
39
40
41
42
43
44
45
      INTEGER    CDI_ESYSTEM           
      PARAMETER (CDI_ESYSTEM            = -10)
      INTEGER    CDI_EINVAL            
      PARAMETER (CDI_EINVAL             = -20)
      INTEGER    CDI_EUFTYPE           
      PARAMETER (CDI_EUFTYPE            = -21)
      INTEGER    CDI_ELIBNAVAIL        
      PARAMETER (CDI_ELIBNAVAIL         = -22)
      INTEGER    CDI_EUFSTRUCT         
      PARAMETER (CDI_EUFSTRUCT          = -23)
46
47
      INTEGER    CDI_EUNC4             
      PARAMETER (CDI_EUNC4              = -24)
48
49
      INTEGER    CDI_ELIMIT            
      PARAMETER (CDI_ELIMIT             = -99)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
50
51
52
!
!  File types
!
53
54
      INTEGER    FILETYPE_UNDEF        
      PARAMETER (FILETYPE_UNDEF         = -1)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
55
56
      INTEGER    FILETYPE_GRB          
      PARAMETER (FILETYPE_GRB           =  1)
57
58
      INTEGER    FILETYPE_GRB2         
      PARAMETER (FILETYPE_GRB2          =  2)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
59
60
61
62
      INTEGER    FILETYPE_NC           
      PARAMETER (FILETYPE_NC            =  3)
      INTEGER    FILETYPE_NC2          
      PARAMETER (FILETYPE_NC2           =  4)
63
64
      INTEGER    FILETYPE_NC4          
      PARAMETER (FILETYPE_NC4           =  5)
Deike Kleberg's avatar
Deike Kleberg committed
65
66
      INTEGER    FILETYPE_NC4C         
      PARAMETER (FILETYPE_NC4C          =  6)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
67
      INTEGER    FILETYPE_SRV          
Deike Kleberg's avatar
Deike Kleberg committed
68
      PARAMETER (FILETYPE_SRV           =  7)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
69
      INTEGER    FILETYPE_EXT          
Deike Kleberg's avatar
Deike Kleberg committed
70
      PARAMETER (FILETYPE_EXT           =  8)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
71
      INTEGER    FILETYPE_IEG          
Deike Kleberg's avatar
Deike Kleberg committed
72
      PARAMETER (FILETYPE_IEG           =  9)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
73
!
74
75
!  Compress types
!
76
77
      INTEGER    COMPRESS_NONE         
      PARAMETER (COMPRESS_NONE          =  0)
78
79
80
81
      INTEGER    COMPRESS_SZIP         
      PARAMETER (COMPRESS_SZIP          =  1)
      INTEGER    COMPRESS_GZIP         
      PARAMETER (COMPRESS_GZIP          =  2)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
82
83
      INTEGER    COMPRESS_BZIP2        
      PARAMETER (COMPRESS_BZIP2         =  3)
84
85
      INTEGER    COMPRESS_ZIP          
      PARAMETER (COMPRESS_ZIP           =  4)
86
87
      INTEGER    COMPRESS_JPEG         
      PARAMETER (COMPRESS_JPEG          =  5)
88
!
Uwe Schulzweida's avatar
Uwe Schulzweida committed
89
!  external data types
Uwe Schulzweida's avatar
Uwe Schulzweida committed
90
91
92
93
94
95
96
97
98
!
      INTEGER    DATATYPE_PACK         
      PARAMETER (DATATYPE_PACK          =  0)
      INTEGER    DATATYPE_PACK1        
      PARAMETER (DATATYPE_PACK1         =  1)
      INTEGER    DATATYPE_PACK2        
      PARAMETER (DATATYPE_PACK2         =  2)
      INTEGER    DATATYPE_PACK3        
      PARAMETER (DATATYPE_PACK3         =  3)
99
100
101
102
103
104
105
106
107
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
      INTEGER    DATATYPE_PACK4        
      PARAMETER (DATATYPE_PACK4         =  4)
      INTEGER    DATATYPE_PACK5        
      PARAMETER (DATATYPE_PACK5         =  5)
      INTEGER    DATATYPE_PACK6        
      PARAMETER (DATATYPE_PACK6         =  6)
      INTEGER    DATATYPE_PACK7        
      PARAMETER (DATATYPE_PACK7         =  7)
      INTEGER    DATATYPE_PACK8        
      PARAMETER (DATATYPE_PACK8         =  8)
      INTEGER    DATATYPE_PACK9        
      PARAMETER (DATATYPE_PACK9         =  9)
      INTEGER    DATATYPE_PACK10       
      PARAMETER (DATATYPE_PACK10        = 10)
      INTEGER    DATATYPE_PACK11       
      PARAMETER (DATATYPE_PACK11        = 11)
      INTEGER    DATATYPE_PACK12       
      PARAMETER (DATATYPE_PACK12        = 12)
      INTEGER    DATATYPE_PACK13       
      PARAMETER (DATATYPE_PACK13        = 13)
      INTEGER    DATATYPE_PACK14       
      PARAMETER (DATATYPE_PACK14        = 14)
      INTEGER    DATATYPE_PACK15       
      PARAMETER (DATATYPE_PACK15        = 15)
      INTEGER    DATATYPE_PACK16       
      PARAMETER (DATATYPE_PACK16        = 16)
      INTEGER    DATATYPE_PACK17       
      PARAMETER (DATATYPE_PACK17        = 17)
      INTEGER    DATATYPE_PACK18       
      PARAMETER (DATATYPE_PACK18        = 18)
      INTEGER    DATATYPE_PACK19       
      PARAMETER (DATATYPE_PACK19        = 19)
      INTEGER    DATATYPE_PACK20       
      PARAMETER (DATATYPE_PACK20        = 20)
      INTEGER    DATATYPE_PACK21       
      PARAMETER (DATATYPE_PACK21        = 21)
      INTEGER    DATATYPE_PACK22       
      PARAMETER (DATATYPE_PACK22        = 22)
      INTEGER    DATATYPE_PACK23       
      PARAMETER (DATATYPE_PACK23        = 23)
      INTEGER    DATATYPE_PACK24       
      PARAMETER (DATATYPE_PACK24        = 24)
      INTEGER    DATATYPE_PACK25       
      PARAMETER (DATATYPE_PACK25        = 25)
      INTEGER    DATATYPE_PACK26       
      PARAMETER (DATATYPE_PACK26        = 26)
      INTEGER    DATATYPE_PACK27       
      PARAMETER (DATATYPE_PACK27        = 27)
      INTEGER    DATATYPE_PACK28       
      PARAMETER (DATATYPE_PACK28        = 28)
      INTEGER    DATATYPE_PACK29       
      PARAMETER (DATATYPE_PACK29        = 29)
      INTEGER    DATATYPE_PACK30       
      PARAMETER (DATATYPE_PACK30        = 30)
      INTEGER    DATATYPE_PACK31       
      PARAMETER (DATATYPE_PACK31        = 31)
      INTEGER    DATATYPE_PACK32       
      PARAMETER (DATATYPE_PACK32        = 32)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
157
158
159
160
      INTEGER    DATATYPE_CPX32        
      PARAMETER (DATATYPE_CPX32         = 64)
      INTEGER    DATATYPE_CPX64        
      PARAMETER (DATATYPE_CPX64         = 128)
161
162
163
164
165
166
167
168
169
170
      INTEGER    DATATYPE_FLT32        
      PARAMETER (DATATYPE_FLT32         = 132)
      INTEGER    DATATYPE_FLT64        
      PARAMETER (DATATYPE_FLT64         = 164)
      INTEGER    DATATYPE_INT8         
      PARAMETER (DATATYPE_INT8          = 208)
      INTEGER    DATATYPE_INT16        
      PARAMETER (DATATYPE_INT16         = 216)
      INTEGER    DATATYPE_INT32        
      PARAMETER (DATATYPE_INT32         = 232)
171
172
173
174
175
176
      INTEGER    DATATYPE_UINT8        
      PARAMETER (DATATYPE_UINT8         = 308)
      INTEGER    DATATYPE_UINT16       
      PARAMETER (DATATYPE_UINT16        = 316)
      INTEGER    DATATYPE_UINT32       
      PARAMETER (DATATYPE_UINT32        = 332)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
177
!
Uwe Schulzweida's avatar
Uwe Schulzweida committed
178
179
180
181
182
183
184
185
!  internal data types
!
      INTEGER    DATATYPE_INT          
      PARAMETER (DATATYPE_INT           = 251)
      INTEGER    DATATYPE_FLT          
      PARAMETER (DATATYPE_FLT           = 252)
      INTEGER    DATATYPE_TXT          
      PARAMETER (DATATYPE_TXT           = 253)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
186
187
      INTEGER    DATATYPE_CPX          
      PARAMETER (DATATYPE_CPX           = 254)
188
189
      INTEGER    DATATYPE_UCHAR        
      PARAMETER (DATATYPE_UCHAR         = 255)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
190
191
      INTEGER    DATATYPE_LONG         
      PARAMETER (DATATYPE_LONG          = 256)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
192
!
193
194
195
196
197
198
199
200
201
!  Chunks
!
      INTEGER    CHUNK_AUTO            
      PARAMETER (CHUNK_AUTO             =  1)
      INTEGER    CHUNK_GRID            
      PARAMETER (CHUNK_GRID             =  2)
      INTEGER    CHUNK_LINES           
      PARAMETER (CHUNK_LINES            =  3)
!
Uwe Schulzweida's avatar
Uwe Schulzweida committed
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
!  GRID types
!
      INTEGER    GRID_GENERIC          
      PARAMETER (GRID_GENERIC           =  1)
      INTEGER    GRID_GAUSSIAN         
      PARAMETER (GRID_GAUSSIAN          =  2)
      INTEGER    GRID_GAUSSIAN_REDUCED 
      PARAMETER (GRID_GAUSSIAN_REDUCED  =  3)
      INTEGER    GRID_LONLAT           
      PARAMETER (GRID_LONLAT            =  4)
      INTEGER    GRID_SPECTRAL         
      PARAMETER (GRID_SPECTRAL          =  5)
      INTEGER    GRID_FOURIER          
      PARAMETER (GRID_FOURIER           =  6)
      INTEGER    GRID_GME              
      PARAMETER (GRID_GME               =  7)
      INTEGER    GRID_TRAJECTORY       
      PARAMETER (GRID_TRAJECTORY        =  8)
220
221
      INTEGER    GRID_UNSTRUCTURED     
      PARAMETER (GRID_UNSTRUCTURED      =  9)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
222
223
      INTEGER    GRID_CURVILINEAR      
      PARAMETER (GRID_CURVILINEAR       = 10)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
224
225
      INTEGER    GRID_LCC              
      PARAMETER (GRID_LCC               = 11)
226
227
      INTEGER    GRID_LCC2             
      PARAMETER (GRID_LCC2              = 12)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
228
      INTEGER    GRID_LAEA             
229
      PARAMETER (GRID_LAEA              = 13)
230
      INTEGER    GRID_SINUSOIDAL       
231
      PARAMETER (GRID_SINUSOIDAL        = 14)
Deike Kleberg's avatar
Deike Kleberg committed
232
      INTEGER    GRID_PROJECTION       
233
      PARAMETER (GRID_PROJECTION        = 15)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
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
!
!  ZAXIS types
!
      INTEGER    ZAXIS_SURFACE         
      PARAMETER (ZAXIS_SURFACE          =  0)
      INTEGER    ZAXIS_GENERIC         
      PARAMETER (ZAXIS_GENERIC          =  1)
      INTEGER    ZAXIS_HYBRID          
      PARAMETER (ZAXIS_HYBRID           =  2)
      INTEGER    ZAXIS_HYBRID_HALF     
      PARAMETER (ZAXIS_HYBRID_HALF      =  3)
      INTEGER    ZAXIS_PRESSURE        
      PARAMETER (ZAXIS_PRESSURE         =  4)
      INTEGER    ZAXIS_HEIGHT          
      PARAMETER (ZAXIS_HEIGHT           =  5)
      INTEGER    ZAXIS_DEPTH_BELOW_SEA 
      PARAMETER (ZAXIS_DEPTH_BELOW_SEA  =  6)
      INTEGER    ZAXIS_DEPTH_BELOW_LAND
      PARAMETER (ZAXIS_DEPTH_BELOW_LAND =  7)
      INTEGER    ZAXIS_ISENTROPIC      
      PARAMETER (ZAXIS_ISENTROPIC       =  8)
      INTEGER    ZAXIS_TRAJECTORY      
      PARAMETER (ZAXIS_TRAJECTORY       =  9)
      INTEGER    ZAXIS_ALTITUDE        
      PARAMETER (ZAXIS_ALTITUDE         = 10)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
259
260
      INTEGER    ZAXIS_SIGMA           
      PARAMETER (ZAXIS_SIGMA            = 11)
261
262
      INTEGER    ZAXIS_MEANSEA         
      PARAMETER (ZAXIS_MEANSEA          = 12)
Deike Kleberg's avatar
Deike Kleberg committed
263
264
265
266
267
268
      INTEGER    ZAXIS_TOA             
      PARAMETER (ZAXIS_TOA              = 13)
      INTEGER    ZAXIS_SEA_BOTTOM      
      PARAMETER (ZAXIS_SEA_BOTTOM       = 14)
      INTEGER    ZAXIS_ATMOSPHERE      
      PARAMETER (ZAXIS_ATMOSPHERE       = 15)
269
270
271
272
273
274
      INTEGER    ZAXIS_CLOUD_BASE      
      PARAMETER (ZAXIS_CLOUD_BASE       = 16)
      INTEGER    ZAXIS_CLOUD_TOP       
      PARAMETER (ZAXIS_CLOUD_TOP        = 17)
      INTEGER    ZAXIS_ISOTHERM_ZERO   
      PARAMETER (ZAXIS_ISOTHERM_ZERO    = 18)
275
276
      INTEGER    ZAXIS_SNOW            
      PARAMETER (ZAXIS_SNOW             = 19)
277
278
279
280
281
282
283
284
285
286
      INTEGER    ZAXIS_LAKE_BOTTOM     
      PARAMETER (ZAXIS_LAKE_BOTTOM      = 20)
      INTEGER    ZAXIS_SEDIMENT_BOTTOM 
      PARAMETER (ZAXIS_SEDIMENT_BOTTOM  = 21)
      INTEGER    ZAXIS_SEDIMENT_BOTTOM_TA
      PARAMETER (ZAXIS_SEDIMENT_BOTTOM_TA = 22)
      INTEGER    ZAXIS_SEDIMENT_BOTTOM_TW
      PARAMETER (ZAXIS_SEDIMENT_BOTTOM_TW = 23)
      INTEGER    ZAXIS_MIX_LAYER       
      PARAMETER (ZAXIS_MIX_LAYER        = 24)
Deike Kleberg's avatar
Deike Kleberg committed
287
      INTEGER    ZAXIS_REFERENCE       
288
      PARAMETER (ZAXIS_REFERENCE        = 25)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
289
!
290
291
292
293
294
295
!  SUBTYPE types
!
      INTEGER    MAX_KV_PAIRS_MATCH    
      PARAMETER (MAX_KV_PAIRS_MATCH     = 10)
!
!  Data structure defining a key-value search, possibly with multiple
296
!  key-value pairs in combination.
297
298
299
300
!  
!  Currently, only multiple pairs combined by AND are supported.
!
!
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
!  TIME types
!
      INTEGER    TIME_CONSTANT         
      PARAMETER (TIME_CONSTANT          =  0)
      INTEGER    TIME_VARIABLE         
      PARAMETER (TIME_VARIABLE          =  1)
!
!  TSTEP types
!
      INTEGER    TSTEP_CONSTANT        
      PARAMETER (TSTEP_CONSTANT         =  0)
      INTEGER    TSTEP_INSTANT         
      PARAMETER (TSTEP_INSTANT          =  1)
      INTEGER    TSTEP_AVG             
      PARAMETER (TSTEP_AVG              =  2)
      INTEGER    TSTEP_ACCUM           
      PARAMETER (TSTEP_ACCUM            =  3)
      INTEGER    TSTEP_MAX             
      PARAMETER (TSTEP_MAX              =  4)
      INTEGER    TSTEP_MIN             
      PARAMETER (TSTEP_MIN              =  5)
      INTEGER    TSTEP_DIFF            
      PARAMETER (TSTEP_DIFF             =  6)
      INTEGER    TSTEP_RMS             
      PARAMETER (TSTEP_RMS              =  7)
      INTEGER    TSTEP_SD              
      PARAMETER (TSTEP_SD               =  8)
      INTEGER    TSTEP_COV             
      PARAMETER (TSTEP_COV              =  9)
      INTEGER    TSTEP_RATIO           
      PARAMETER (TSTEP_RATIO            = 10)
      INTEGER    TSTEP_RANGE           
      PARAMETER (TSTEP_RANGE            = 11)
      INTEGER    TSTEP_INSTANT2        
      PARAMETER (TSTEP_INSTANT2         = 12)
      INTEGER    TSTEP_INSTANT3        
      PARAMETER (TSTEP_INSTANT3         = 13)
!
Uwe Schulzweida's avatar
Uwe Schulzweida committed
339
340
341
342
343
344
!  TAXIS types
!
      INTEGER    TAXIS_ABSOLUTE        
      PARAMETER (TAXIS_ABSOLUTE         =  1)
      INTEGER    TAXIS_RELATIVE        
      PARAMETER (TAXIS_RELATIVE         =  2)
345
346
      INTEGER    TAXIS_FORECAST        
      PARAMETER (TAXIS_FORECAST         =  3)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
347
348
349
350
351
352
353
!
!  TUNIT types
!
      INTEGER    TUNIT_SECOND          
      PARAMETER (TUNIT_SECOND           =  1)
      INTEGER    TUNIT_MINUTE          
      PARAMETER (TUNIT_MINUTE           =  2)
354
      INTEGER    TUNIT_QUARTER         
355
356
357
358
359
      PARAMETER (TUNIT_QUARTER          =  3)
      INTEGER    TUNIT_30MINUTES       
      PARAMETER (TUNIT_30MINUTES        =  4)
      INTEGER    TUNIT_HOUR            
      PARAMETER (TUNIT_HOUR             =  5)
360
      INTEGER    TUNIT_3HOURS          
361
      PARAMETER (TUNIT_3HOURS           =  6)
362
      INTEGER    TUNIT_6HOURS          
363
      PARAMETER (TUNIT_6HOURS           =  7)
364
      INTEGER    TUNIT_12HOURS         
365
366
367
368
369
370
371
      PARAMETER (TUNIT_12HOURS          =  8)
      INTEGER    TUNIT_DAY             
      PARAMETER (TUNIT_DAY              =  9)
      INTEGER    TUNIT_MONTH           
      PARAMETER (TUNIT_MONTH            = 10)
      INTEGER    TUNIT_YEAR            
      PARAMETER (TUNIT_YEAR             = 11)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
372
373
374
375
376
!
!  CALENDAR types
!
      INTEGER    CALENDAR_STANDARD     
      PARAMETER (CALENDAR_STANDARD      =  0)
377
378
      INTEGER    CALENDAR_PROLEPTIC    
      PARAMETER (CALENDAR_PROLEPTIC     =  1)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
379
380
381
382
383
384
      INTEGER    CALENDAR_360DAYS      
      PARAMETER (CALENDAR_360DAYS       =  2)
      INTEGER    CALENDAR_365DAYS      
      PARAMETER (CALENDAR_365DAYS       =  3)
      INTEGER    CALENDAR_366DAYS      
      PARAMETER (CALENDAR_366DAYS       =  4)
385
386
      INTEGER    CALENDAR_NONE         
      PARAMETER (CALENDAR_NONE          =  5)
387
!
388
389
390
391
392
!  number of unsigned char needed to store UUID
!
      INTEGER    CDI_UUID_SIZE         
      PARAMETER (CDI_UUID_SIZE          = 16)
!
393
394
395
396
397
398
!  Structs that are used to return data to the user
!
!
!  Opaque types
!
!
399
400
!  CDI control routines
!
401
402
403
404
!                     cdiReset
      EXTERNAL        cdiReset

      CHARACTER(80)   cdiStringError
Uwe Schulzweida's avatar
Uwe Schulzweida committed
405
406
407
!                                    (INTEGER         cdiErrno)
      EXTERNAL        cdiStringError

Uwe Schulzweida's avatar
Uwe Schulzweida committed
408
409
410
411
!                     cdiDebug
!                                    (INTEGER         debug)
      EXTERNAL        cdiDebug

412
      CHARACTER(80)   cdiLibraryVersion
Uwe Schulzweida's avatar
Uwe Schulzweida committed
413
414
      EXTERNAL        cdiLibraryVersion

Uwe Schulzweida's avatar
Uwe Schulzweida committed
415
416
417
!                     cdiPrintVersion
      EXTERNAL        cdiPrintVersion

418
419
420
421
      INTEGER         cdiHaveFiletype
!                                    (INTEGER         filetype)
      EXTERNAL        cdiHaveFiletype

Uwe Schulzweida's avatar
Uwe Schulzweida committed
422
423
424
425
426
427
428
!                     cdiDefMissval
!                                    (DOUBLEPRECISION missval)
      EXTERNAL        cdiDefMissval

      DOUBLEPRECISION cdiInqMissval
      EXTERNAL        cdiInqMissval

429
!                     cdiDefGlobal
Uwe Schulzweida's avatar
Uwe Schulzweida committed
430
431
432
!                                    (CHARACTER*(*)   string,
!                                     INTEGER         val)
      EXTERNAL        cdiDefGlobal
433
434
435
436
437
438
439
440
441
442
443

      INTEGER         namespaceNew
      EXTERNAL        namespaceNew

!                     namespaceSetActive
!                                    (INTEGER         namespaceID)
      EXTERNAL        namespaceSetActive

!                     namespaceDelete
!                                    (INTEGER         namespaceID)
      EXTERNAL        namespaceDelete
Uwe Schulzweida's avatar
Uwe Schulzweida committed
444

Uwe Schulzweida's avatar
Uwe Schulzweida committed
445
446
447
!
!  CDI converter routines
!
Uwe Schulzweida's avatar
Uwe Schulzweida committed
448
449
450
451
452
453
454
455
456
!
!  parameter
!
!                     cdiParamToString
!                                    (INTEGER         param,
!                                     CHARACTER*(*)   paramstr,
!                                     INTEGER         maxlen)
      EXTERNAL        cdiParamToString

Uwe Schulzweida's avatar
Uwe Schulzweida committed
457
458
!                     cdiDecodeParam
!                                    (INTEGER         param,
Uwe Schulzweida's avatar
Uwe Schulzweida committed
459
460
461
!                                     INTEGER         pnum,
!                                     INTEGER         pcat,
!                                     INTEGER         pdis)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
462
463
464
      EXTERNAL        cdiDecodeParam

      INTEGER         cdiEncodeParam
Uwe Schulzweida's avatar
Uwe Schulzweida committed
465
466
467
!                                    (INTEGER         pnum,
!                                     INTEGER         pcat,
!                                     INTEGER         pdis)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
468
469
      EXTERNAL        cdiEncodeParam

470
471
472
473
474
475
!
!  date format:  YYYYMMDD
!
!
!  time format:    hhmmss
!
Uwe Schulzweida's avatar
Uwe Schulzweida committed
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
!                     cdiDecodeDate
!                                    (INTEGER         date,
!                                     INTEGER         year,
!                                     INTEGER         month,
!                                     INTEGER         day)
      EXTERNAL        cdiDecodeDate

      INTEGER         cdiEncodeDate
!                                    (INTEGER         year,
!                                     INTEGER         month,
!                                     INTEGER         day)
      EXTERNAL        cdiEncodeDate

!                     cdiDecodeTime
!                                    (INTEGER         time,
!                                     INTEGER         hour,
!                                     INTEGER         minute,
!                                     INTEGER         second)
      EXTERNAL        cdiDecodeTime

      INTEGER         cdiEncodeTime
!                                    (INTEGER         hour,
!                                     INTEGER         minute,
!                                     INTEGER         second)
      EXTERNAL        cdiEncodeTime

Uwe Schulzweida's avatar
Uwe Schulzweida committed
502
503
504
!
!  STREAM control routines
!
Uwe Schulzweida's avatar
Uwe Schulzweida committed
505
506
507
508
509
      INTEGER         cdiGetFiletype
!                                    (CHARACTER*(*)   path,
!                                     INTEGER         byteorder)
      EXTERNAL        cdiGetFiletype

Uwe Schulzweida's avatar
Uwe Schulzweida committed
510
      INTEGER         streamOpenRead
511
!                                    (CHARACTER*(*)   path)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
512
513
514
      EXTERNAL        streamOpenRead

      INTEGER         streamOpenWrite
515
!                                    (CHARACTER*(*)   path,
Uwe Schulzweida's avatar
Uwe Schulzweida committed
516
517
518
519
!                                     INTEGER         filetype)
      EXTERNAL        streamOpenWrite

      INTEGER         streamOpenAppend
520
!                                    (CHARACTER*(*)   path)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
521
522
523
524
525
526
      EXTERNAL        streamOpenAppend

!                     streamClose
!                                    (INTEGER         streamID)
      EXTERNAL        streamClose

Uwe Schulzweida's avatar
Uwe Schulzweida committed
527
528
529
530
!                     streamSync
!                                    (INTEGER         streamID)
      EXTERNAL        streamSync

Uwe Schulzweida's avatar
Uwe Schulzweida committed
531
532
533
534
535
536
537
538
539
!                     streamDefVlist
!                                    (INTEGER         streamID,
!                                     INTEGER         vlistID)
      EXTERNAL        streamDefVlist

      INTEGER         streamInqVlist
!                                    (INTEGER         streamID)
      EXTERNAL        streamInqVlist

540
541
542
!
!  PIO:
!
543
544
545
546
      INTEGER         streamInqVlistIDorig
!                                    (INTEGER         streamID)
      EXTERNAL        streamInqVlistIDorig

Uwe Schulzweida's avatar
Uwe Schulzweida committed
547
548
549
550
551
552
553
554
555
556
557
558
559
      INTEGER         streamInqFiletype
!                                    (INTEGER         streamID)
      EXTERNAL        streamInqFiletype

!                     streamDefByteorder
!                                    (INTEGER         streamID,
!                                     INTEGER         byteorder)
      EXTERNAL        streamDefByteorder

      INTEGER         streamInqByteorder
!                                    (INTEGER         streamID)
      EXTERNAL        streamInqByteorder

Deike Kleberg's avatar
Deike Kleberg committed
560
!                     streamDefCompType
561
!                                    (INTEGER         streamID,
Deike Kleberg's avatar
Deike Kleberg committed
562
563
!                                     INTEGER         comptype)
      EXTERNAL        streamDefCompType
564

565
566
567
568
      INTEGER         streamInqCompType
!                                    (INTEGER         streamID)
      EXTERNAL        streamInqCompType

Deike Kleberg's avatar
Deike Kleberg committed
569
!                     streamDefCompLevel
570
!                                    (INTEGER         streamID,
Deike Kleberg's avatar
Deike Kleberg committed
571
572
!                                     INTEGER         complevel)
      EXTERNAL        streamDefCompLevel
573

Deike Kleberg's avatar
Deike Kleberg committed
574
      INTEGER         streamInqCompLevel
575
!                                    (INTEGER         streamID)
Deike Kleberg's avatar
Deike Kleberg committed
576
      EXTERNAL        streamInqCompLevel
577

Uwe Schulzweida's avatar
Uwe Schulzweida committed
578
579
580
581
582
583
584
585
586
587
      INTEGER         streamDefTimestep
!                                    (INTEGER         streamID,
!                                     INTEGER         tsID)
      EXTERNAL        streamDefTimestep

      INTEGER         streamInqTimestep
!                                    (INTEGER         streamID,
!                                     INTEGER         tsID)
      EXTERNAL        streamInqTimestep

588
589
590
591
      INTEGER         streamInqCurTimestepID
!                                    (INTEGER         streamID)
      EXTERNAL        streamInqCurTimestepID

592
593
594
595
596
597
598
599
      CHARACTER(80)   streamFilename
!                                    (INTEGER         streamID)
      EXTERNAL        streamFilename

      CHARACTER(80)   streamFilesuffix
!                                    (INTEGER         filetype)
      EXTERNAL        streamFilesuffix

600
601
602
603
      INTEGER         streamInqNvars
!                                    (INTEGER         streamID)
      EXTERNAL        streamInqNvars

Uwe Schulzweida's avatar
Uwe Schulzweida committed
604
605
606
607
608
609
!
!  STREAM var I/O routines
!
!                     streamWriteVar
!                                    (INTEGER         streamID,
!                                     INTEGER         varID,
610
!                                     DOUBLEPRECISION data,
Uwe Schulzweida's avatar
Uwe Schulzweida committed
611
612
613
!                                     INTEGER         nmiss)
      EXTERNAL        streamWriteVar

614
615
616
!                     streamWriteVarF
!                                    (INTEGER         streamID,
!                                     INTEGER         varID,
617
!                                     REAL            data,
618
619
620
!                                     INTEGER         nmiss)
      EXTERNAL        streamWriteVarF

621
!                     streamReadVar
Uwe Schulzweida's avatar
Uwe Schulzweida committed
622
623
!                                    (INTEGER         streamID,
!                                     INTEGER         varID,
624
!                                     DOUBLEPRECISION data,
Uwe Schulzweida's avatar
Uwe Schulzweida committed
625
!                                     INTEGER         nmiss)
626
627
628
629
630
      EXTERNAL        streamReadVar

!                     streamReadVarF
!                                    (INTEGER         streamID,
!                                     INTEGER         varID,
631
!                                     REAL            data,
632
633
!                                     INTEGER         nmiss)
      EXTERNAL        streamReadVarF
Uwe Schulzweida's avatar
Uwe Schulzweida committed
634
635
636
637
638

!                     streamWriteVarSlice
!                                    (INTEGER         streamID,
!                                     INTEGER         varID,
!                                     INTEGER         levelID,
639
!                                     DOUBLEPRECISION data,
Uwe Schulzweida's avatar
Uwe Schulzweida committed
640
641
642
!                                     INTEGER         nmiss)
      EXTERNAL        streamWriteVarSlice

643
644
645
646
!                     streamWriteVarSliceF
!                                    (INTEGER         streamID,
!                                     INTEGER         varID,
!                                     INTEGER         levelID,
647
!                                     REAL            data,
648
649
650
!                                     INTEGER         nmiss)
      EXTERNAL        streamWriteVarSliceF

651
652
653
654
!                     streamReadVarSlice
!                                    (INTEGER         streamID,
!                                     INTEGER         varID,
!                                     INTEGER         levelID,
655
!                                     DOUBLEPRECISION data,
656
657
658
659
660
661
662
!                                     INTEGER         nmiss)
      EXTERNAL        streamReadVarSlice

!                     streamReadVarSliceF
!                                    (INTEGER         streamID,
!                                     INTEGER         varID,
!                                     INTEGER         levelID,
663
!                                     REAL            data,
664
665
666
!                                     INTEGER         nmiss)
      EXTERNAL        streamReadVarSliceF

667
668
669
670
!                     streamWriteVarChunk
!                                    (INTEGER         streamID,
!                                     INTEGER         varID,
!                                     INTEGER         rect,
671
!                                     DOUBLEPRECISION data,
672
673
674
!                                     INTEGER         nmiss)
      EXTERNAL        streamWriteVarChunk

Uwe Schulzweida's avatar
Uwe Schulzweida committed
675
676
677
678
679
680
681
682
683
!
!  STREAM record I/O routines
!
!                     streamDefRecord
!                                    (INTEGER         streamID,
!                                     INTEGER         varID,
!                                     INTEGER         levelID)
      EXTERNAL        streamDefRecord

684
!                     streamInqRecord
Uwe Schulzweida's avatar
Uwe Schulzweida committed
685
!                                    (INTEGER         streamID,
686
687
688
!                                     INTEGER         varID,
!                                     INTEGER         levelID)
      EXTERNAL        streamInqRecord
Uwe Schulzweida's avatar
Uwe Schulzweida committed
689
690
691

!                     streamWriteRecord
!                                    (INTEGER         streamID,
692
!                                     DOUBLEPRECISION data,
Uwe Schulzweida's avatar
Uwe Schulzweida committed
693
694
695
!                                     INTEGER         nmiss)
      EXTERNAL        streamWriteRecord

696
697
!                     streamWriteRecordF
!                                    (INTEGER         streamID,
698
!                                     REAL            data,
699
700
701
!                                     INTEGER         nmiss)
      EXTERNAL        streamWriteRecordF

702
703
!                     streamReadRecord
!                                    (INTEGER         streamID,
704
!                                     DOUBLEPRECISION data,
705
706
707
!                                     INTEGER         nmiss)
      EXTERNAL        streamReadRecord

Uwe Schulzweida's avatar
Uwe Schulzweida committed
708
709
710
711
712
!                     streamCopyRecord
!                                    (INTEGER         streamIDdest,
!                                     INTEGER         streamIDsrc)
      EXTERNAL        streamCopyRecord

713
714
715
!
!  File driven I/O (may yield better performance than using the streamXXX functions)
!
Uwe Schulzweida's avatar
Uwe Schulzweida committed
716
717
718
!
!  VLIST routines
!
719
720
      INTEGER         vlistCreate
      EXTERNAL        vlistCreate
Uwe Schulzweida's avatar
Uwe Schulzweida committed
721

722
!                     vlistDestroy
Uwe Schulzweida's avatar
Uwe Schulzweida committed
723
!                                    (INTEGER         vlistID)
724
      EXTERNAL        vlistDestroy
Uwe Schulzweida's avatar
Uwe Schulzweida committed
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757

      INTEGER         vlistDuplicate
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistDuplicate

!                     vlistCopy
!                                    (INTEGER         vlistID2,
!                                     INTEGER         vlistID1)
      EXTERNAL        vlistCopy

!                     vlistCopyFlag
!                                    (INTEGER         vlistID2,
!                                     INTEGER         vlistID1)
      EXTERNAL        vlistCopyFlag

!                     vlistClearFlag
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistClearFlag

!                     vlistCat
!                                    (INTEGER         vlistID2,
!                                     INTEGER         vlistID1)
      EXTERNAL        vlistCat

!                     vlistMerge
!                                    (INTEGER         vlistID2,
!                                     INTEGER         vlistID1)
      EXTERNAL        vlistMerge

!                     vlistPrint
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistPrint

Uwe Schulzweida's avatar
Uwe Schulzweida committed
758
759
760
761
      INTEGER         vlistNumber
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistNumber

Uwe Schulzweida's avatar
Uwe Schulzweida committed
762
763
764
765
766
767
768
769
770
771
772
773
      INTEGER         vlistNvars
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistNvars

      INTEGER         vlistNgrids
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistNgrids

      INTEGER         vlistNzaxis
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistNzaxis

774
775
776
777
      INTEGER         vlistNsubtypes
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistNsubtypes

Uwe Schulzweida's avatar
Uwe Schulzweida committed
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
!                     vlistDefNtsteps
!                                    (INTEGER         vlistID,
!                                     INTEGER         nts)
      EXTERNAL        vlistDefNtsteps

      INTEGER         vlistNtsteps
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistNtsteps

      INTEGER         vlistGridsizeMax
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistGridsizeMax

      INTEGER         vlistGrid
!                                    (INTEGER         vlistID,
!                                     INTEGER         index)
      EXTERNAL        vlistGrid

      INTEGER         vlistGridIndex
!                                    (INTEGER         vlistID,
!                                     INTEGER         gridID)
      EXTERNAL        vlistGridIndex

!                     vlistChangeGridIndex
!                                    (INTEGER         vlistID,
!                                     INTEGER         index,
!                                     INTEGER         gridID)
      EXTERNAL        vlistChangeGridIndex

!                     vlistChangeGrid
!                                    (INTEGER         vlistID,
!                                     INTEGER         gridID1,
!                                     INTEGER         gridID2)
      EXTERNAL        vlistChangeGrid

      INTEGER         vlistZaxis
!                                    (INTEGER         vlistID,
!                                     INTEGER         index)
      EXTERNAL        vlistZaxis

      INTEGER         vlistZaxisIndex
!                                    (INTEGER         vlistID,
!                                     INTEGER         zaxisID)
      EXTERNAL        vlistZaxisIndex

!                     vlistChangeZaxisIndex
!                                    (INTEGER         vlistID,
!                                     INTEGER         index,
!                                     INTEGER         zaxisID)
      EXTERNAL        vlistChangeZaxisIndex

!                     vlistChangeZaxis
!                                    (INTEGER         vlistID,
!                                     INTEGER         zaxisID1,
!                                     INTEGER         zaxisID2)
      EXTERNAL        vlistChangeZaxis

      INTEGER         vlistNrecs
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistNrecs

839
840
841
842
843
844
845
846
847
848
      INTEGER         vlistSubtype
!                                    (INTEGER         vlistID,
!                                     INTEGER         index)
      EXTERNAL        vlistSubtype

      INTEGER         vlistSubtypeIndex
!                                    (INTEGER         vlistID,
!                                     INTEGER         subtypeID)
      EXTERNAL        vlistSubtypeIndex

Uwe Schulzweida's avatar
Uwe Schulzweida committed
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
!                     vlistDefTaxis
!                                    (INTEGER         vlistID,
!                                     INTEGER         taxisID)
      EXTERNAL        vlistDefTaxis

      INTEGER         vlistInqTaxis
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistInqTaxis

!                     vlistDefTable
!                                    (INTEGER         vlistID,
!                                     INTEGER         tableID)
      EXTERNAL        vlistDefTable

      INTEGER         vlistInqTable
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistInqTable

!                     vlistDefInstitut
!                                    (INTEGER         vlistID,
!                                     INTEGER         instID)
      EXTERNAL        vlistDefInstitut

      INTEGER         vlistInqInstitut
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistInqInstitut

!                     vlistDefModel
!                                    (INTEGER         vlistID,
!                                     INTEGER         modelID)
      EXTERNAL        vlistDefModel

      INTEGER         vlistInqModel
!                                    (INTEGER         vlistID)
      EXTERNAL        vlistInqModel

!
!  VLIST VAR routines
!
888
889
890
891
892
893
894
895
      INTEGER         vlistDefVarTiles
!                                    (INTEGER         vlistID,
!                                     INTEGER         gridID,
!                                     INTEGER         zaxisID,
!                                     INTEGER         tsteptype,
!                                     INTEGER         tilesetID)
      EXTERNAL        vlistDefVarTiles

Uwe Schulzweida's avatar
Uwe Schulzweida committed
896
897
898
899
      INTEGER         vlistDefVar
!                                    (INTEGER         vlistID,
!                                     INTEGER         gridID,
!                                     INTEGER         zaxisID,
900
!                                     INTEGER         tsteptype)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
901
902
      EXTERNAL        vlistDefVar

903
904
905
906
907
908
!                     vlistChangeVarGrid
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         gridID)
      EXTERNAL        vlistChangeVarGrid

Uwe Schulzweida's avatar
Uwe Schulzweida committed
909
910
911
912
913
914
915
916
917
918
919
!                     vlistChangeVarZaxis
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         zaxisID)
      EXTERNAL        vlistChangeVarZaxis

!                     vlistInqVar
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         gridID,
!                                     INTEGER         zaxisID,
920
!                                     INTEGER         tsteptype)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
921
922
923
924
925
926
927
928
929
930
931
932
      EXTERNAL        vlistInqVar

      INTEGER         vlistInqVarGrid
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarGrid

      INTEGER         vlistInqVarZaxis
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarZaxis

933
934
935
936
937
938
939
940
941
942
943
944
945
!
!  used in MPIOM
!
      INTEGER         vlistInqVarID
!                                    (INTEGER         vlistID,
!                                     INTEGER         code)
      EXTERNAL        vlistInqVarID

!                     vlistDefVarTsteptype
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         tsteptype)
      EXTERNAL        vlistDefVarTsteptype
Uwe Schulzweida's avatar
Uwe Schulzweida committed
946

947
948
949
950
951
      INTEGER         vlistInqVarTsteptype
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarTsteptype

Deike Kleberg's avatar
Deike Kleberg committed
952
!                     vlistDefVarCompType
Uwe Schulzweida's avatar
Uwe Schulzweida committed
953
954
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
Deike Kleberg's avatar
Deike Kleberg committed
955
956
!                                     INTEGER         comptype)
      EXTERNAL        vlistDefVarCompType
957

Deike Kleberg's avatar
Deike Kleberg committed
958
      INTEGER         vlistInqVarCompType
959
960
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
Deike Kleberg's avatar
Deike Kleberg committed
961
      EXTERNAL        vlistInqVarCompType
962

Deike Kleberg's avatar
Deike Kleberg committed
963
!                     vlistDefVarCompLevel
964
965
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
Deike Kleberg's avatar
Deike Kleberg committed
966
967
!                                     INTEGER         complevel)
      EXTERNAL        vlistDefVarCompLevel
Uwe Schulzweida's avatar
Uwe Schulzweida committed
968

Deike Kleberg's avatar
Deike Kleberg committed
969
      INTEGER         vlistInqVarCompLevel
Uwe Schulzweida's avatar
Uwe Schulzweida committed
970
971
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
Deike Kleberg's avatar
Deike Kleberg committed
972
      EXTERNAL        vlistInqVarCompLevel
Uwe Schulzweida's avatar
Uwe Schulzweida committed
973

Uwe Schulzweida's avatar
Uwe Schulzweida committed
974
975
976
977
978
979
980
981
982
983
984
!                     vlistDefVarParam
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         param)
      EXTERNAL        vlistDefVarParam

      INTEGER         vlistInqVarParam
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarParam

Uwe Schulzweida's avatar
Uwe Schulzweida committed
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
!                     vlistDefVarCode
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         code)
      EXTERNAL        vlistDefVarCode

      INTEGER         vlistInqVarCode
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarCode

!                     vlistDefVarDatatype
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         datatype)
      EXTERNAL        vlistDefVarDatatype

      INTEGER         vlistInqVarDatatype
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarDatatype

1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
!                     vlistDefVarChunkType
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         chunktype)
      EXTERNAL        vlistDefVarChunkType

      INTEGER         vlistInqVarChunkType
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarChunkType

1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
!                     vlistDefVarXYZ
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         xyz)
      EXTERNAL        vlistDefVarXYZ

      INTEGER         vlistInqVarXYZ
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarXYZ

Uwe Schulzweida's avatar
Uwe Schulzweida committed
1029
1030
1031
1032
1033
      INTEGER         vlistInqVarNumber
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarNumber

Uwe Schulzweida's avatar
Uwe Schulzweida committed
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
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
!                     vlistDefVarInstitut
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         instID)
      EXTERNAL        vlistDefVarInstitut

      INTEGER         vlistInqVarInstitut
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarInstitut

!                     vlistDefVarModel
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         modelID)
      EXTERNAL        vlistDefVarModel

      INTEGER         vlistInqVarModel
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarModel

!                     vlistDefVarTable
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         tableID)
      EXTERNAL        vlistDefVarTable

      INTEGER         vlistInqVarTable
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarTable

!                     vlistDefVarName
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   name)
      EXTERNAL        vlistDefVarName

!                     vlistInqVarName
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   name)
      EXTERNAL        vlistInqVarName

1079
1080
1081
1082
1083
      CHARACTER(80)   vlistCopyVarName
!                                    (INTEGER         vlistId,
!                                     INTEGER         varId)
      EXTERNAL        vlistCopyVarName

1084
!                     vlistDefVarStdname
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1085
1086
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
1087
1088
!                                     CHARACTER*(*)   stdname)
      EXTERNAL        vlistDefVarStdname
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1089

1090
!                     vlistInqVarStdname
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1091
1092
1093
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   stdname)
1094
      EXTERNAL        vlistInqVarStdname
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1095

1096
!                     vlistDefVarLongname
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1097
1098
1099
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   longname)
1100
      EXTERNAL        vlistDefVarLongname
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1101

1102
!                     vlistInqVarLongname
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1103
1104
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
1105
1106
!                                     CHARACTER*(*)   longname)
      EXTERNAL        vlistInqVarLongname
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130

!                     vlistDefVarUnits
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   units)
      EXTERNAL        vlistDefVarUnits

!                     vlistInqVarUnits
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   units)
      EXTERNAL        vlistInqVarUnits

!                     vlistDefVarMissval
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     DOUBLEPRECISION missval)
      EXTERNAL        vlistDefVarMissval

      DOUBLEPRECISION vlistInqVarMissval
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarMissval

1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
!                     vlistDefVarExtra
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   extra)
      EXTERNAL        vlistDefVarExtra

!                     vlistInqVarExtra
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   extra)
      EXTERNAL        vlistInqVarExtra

Uwe Schulzweida's avatar
Uwe Schulzweida committed
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
!                     vlistDefVarScalefactor
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     DOUBLEPRECISION scalefactor)
      EXTERNAL        vlistDefVarScalefactor

      DOUBLEPRECISION vlistInqVarScalefactor
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarScalefactor

!                     vlistDefVarAddoffset
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     DOUBLEPRECISION addoffset)
      EXTERNAL        vlistDefVarAddoffset

      DOUBLEPRECISION vlistInqVarAddoffset
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarAddoffset

1165
!                     vlistDefVarTimave
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1166
1167
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
1168
1169
!                                     INTEGER         timave)
      EXTERNAL        vlistDefVarTimave
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1170

1171
      INTEGER         vlistInqVarTimave
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1172
1173
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
      EXTERNAL        vlistInqVarTimave

!                     vlistDefVarTimaccu
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         timaccu)
      EXTERNAL        vlistDefVarTimaccu

      INTEGER         vlistInqVarTimaccu
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarTimaccu
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1186

1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
!                     vlistDefVarTypeOfGeneratingProcess
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         typeOfGeneratingProcess)
      EXTERNAL        vlistDefVarTypeOfGeneratingProcess

      INTEGER         vlistInqVarTypeOfGeneratingProcess
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarTypeOfGeneratingProcess

1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
!                     vlistDefVarProductDefinitionTemplate
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         productDefinitionTemplate)
      EXTERNAL        vlistDefVarProductDefinitionTemplate

      INTEGER         vlistInqVarProductDefinitionTemplate
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarProductDefinitionTemplate

Uwe Schulzweida's avatar
Uwe Schulzweida committed
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
      INTEGER         vlistInqVarSize
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistInqVarSize

!                     vlistDefIndex
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         levID,
!                                     INTEGER         index)
      EXTERNAL        vlistDefIndex

      INTEGER         vlistInqIndex
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         levID)
      EXTERNAL        vlistInqIndex

!                     vlistDefFlag
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         levID,
!                                     INTEGER         flag)
      EXTERNAL        vlistDefFlag

      INTEGER         vlistInqFlag
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         levID)
      EXTERNAL        vlistInqFlag

      INTEGER         vlistFindVar
!                                    (INTEGER         vlistID,
!                                     INTEGER         fvarID)
      EXTERNAL        vlistFindVar

      INTEGER         vlistFindLevel
!                                    (INTEGER         vlistID,
!                                     INTEGER         fvarID,
!                                     INTEGER         flevelID)
      EXTERNAL        vlistFindLevel

Uwe Schulzweida's avatar
Uwe Schulzweida committed
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
      INTEGER         vlistMergedVar
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID)
      EXTERNAL        vlistMergedVar

      INTEGER         vlistMergedLevel
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         levelID)
      EXTERNAL        vlistMergedLevel

1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
!
!  Ensemble info routines
!
!                     vlistDefVarEnsemble
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         ensID,
!                                     INTEGER         ensCount,
!                                     INTEGER         forecast_type)
      EXTERNAL        vlistDefVarEnsemble

      INTEGER         vlistInqVarEnsemble
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         ensID,
!                                     INTEGER         ensCount,
!                                     INTEGER         forecast_type)
      EXTERNAL        vlistInqVarEnsemble

Uwe Schulzweida's avatar
Uwe Schulzweida committed
1281
1282
1283
!                     cdiClearAdditionalKeys
      EXTERNAL        cdiClearAdditionalKeys

1284
1285
1286
1287
!                     cdiDefAdditionalKey
!                                    (CHARACTER*(*)   string)
      EXTERNAL        cdiDefAdditionalKey

1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301
!                     vlistDefVarIntKey
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   name,
!                                     INTEGER         value)
      EXTERNAL        vlistDefVarIntKey

!                     vlistDefVarDblKey
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   name,
!                                     DOUBLEPRECISION value)
      EXTERNAL        vlistDefVarDblKey

1302
1303
1304
1305
1306
1307
      INTEGER         vlistHasVarKey
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   name)
      EXTERNAL        vlistHasVarKey

Thomas Jahns's avatar
Thomas Jahns committed
1308
      DOUBLEPRECISION vlistInqVarDblKey
1309
1310
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
Thomas Jahns's avatar
Thomas Jahns committed
1311
1312
1313
1314
!                                     CHARACTER*(*)   name)
      EXTERNAL        vlistInqVarDblKey

      INTEGER         vlistInqVarIntKey
1315
1316
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
Thomas Jahns's avatar
Thomas Jahns committed
1317
1318
1319
!                                     CHARACTER*(*)   name)
      EXTERNAL        vlistInqVarIntKey

Uwe Schulzweida's avatar
Uwe Schulzweida committed
1320
1321
1322
1323
1324
1325
1326
1327
1328
!
!  VLIST attributes
!
      INTEGER         vlistInqNatts
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         nattsp)
      EXTERNAL        vlistInqNatts

1329
      INTEGER         vlistInqAtt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1330
1331
1332
1333
1334
1335
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     INTEGER         attrnum,
!                                     CHARACTER*(*)   name,
!                                     INTEGER         typep,
!                                     INTEGER         lenp)
1336
      EXTERNAL        vlistInqAtt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1337

1338
      INTEGER         vlistDelAtt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1339
1340
1341
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   name)
1342
      EXTERNAL        vlistDelAtt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1343

1344
      INTEGER         vlistDefAttInt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1345
1346
1347
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   name,
1348
!                                     INTEGER         type,
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1349
!                                     INTEGER         len,
1350
!                                     INTEGER         ip)
1351
      EXTERNAL        vlistDefAttInt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1352

1353
      INTEGER         vlistDefAttFlt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1354
1355
1356
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   name,
1357
!                                     INTEGER         type,
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1358
!                                     INTEGER         len,
1359
!                                     DOUBLEPRECISION dp)
1360
      EXTERNAL        vlistDefAttFlt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1361

1362
      INTEGER         vlistDefAttTxt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1363
1364
1365
1366
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   name,
!                                     INTEGER         len,
1367
!                                     CHARACTER*(*)   tp_cbuf)
1368
      EXTERNAL        vlistDefAttTxt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1369

1370
      INTEGER         vlistInqAttInt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1371
1372
1373
1374
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   name,
!                                     INTEGER         mlen,
1375
!                                     INTEGER         ip)
1376
      EXTERNAL        vlistInqAttInt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1377

1378
      INTEGER         vlistInqAttFlt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1379
1380
1381
1382
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   name,
!                                     INTEGER         mlen,
1383
!                                     DOUBLEPRECISION dp)
1384
      EXTERNAL        vlistInqAttFlt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1385

1386
      INTEGER         vlistInqAttTxt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1387
1388
1389
1390
!                                    (INTEGER         vlistID,
!                                     INTEGER         varID,
!                                     CHARACTER*(*)   name,
!                                     INTEGER         mlen,
1391
!                                     CHARACTER*(*)   tp_cbuf)
1392
      EXTERNAL        vlistInqAttTxt
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1393

Uwe Schulzweida's avatar
Uwe Schulzweida committed
1394
1395
1396
1397
1398
1399
1400
1401
!
!  GRID routines
!
!                     gridName
!                                    (INTEGER         gridtype,
!                                     CHARACTER*(*)   gridname)
      EXTERNAL        gridName

1402
      CHARACTER(80)   gridNamePtr
1403
1404
1405
!                                    (INTEGER         gridtype)
      EXTERNAL        gridNamePtr

1406
!                     gridCompress
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1407
!                                    (INTEGER         gridID)
1408
      EXTERNAL        gridCompress
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1409

1410
1411
!                     gridDefMaskGME
!                                    (INTEGER         gridID,
1412
!                                     INTEGER         mask)
1413
1414
1415
1416
      EXTERNAL        gridDefMaskGME

      INTEGER         gridInqMaskGME
!                                    (INTEGER         gridID,
1417
!                                     INTEGER         mask)
1418
1419
      EXTERNAL        gridInqMaskGME

1420
1421
!                     gridDefMask
!                                    (INTEGER         gridID,
1422
!                                     INTEGER         mask)
1423
1424
1425
1426
      EXTERNAL        gridDefMask

      INTEGER         gridInqMask
!                                    (INTEGER         gridID,
1427
!                                     INTEGER         mask)
1428
1429
1430
      EXTERNAL        gridInqMask

!                     gridPrint
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1431
!                                    (INTEGER         gridID,
1432
!                                     INTEGER         index,
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1433
!                                     INTEGER         opt)
1434
1435
1436
1437
1438
1439
      EXTERNAL        gridPrint

      INTEGER         gridCreate
!                                    (INTEGER         gridtype,
!                                     INTEGER         size)
      EXTERNAL        gridCreate
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1440

Uwe Schulzweida's avatar
Uwe Schulzweida committed
1441
1442
1443
1444
!                     gridDestroy
!                                    (INTEGER         gridID)
      EXTERNAL        gridDestroy

Uwe Schulzweida's avatar
Uwe Schulzweida committed
1445
1446
1447
1448
      INTEGER         gridDuplicate
!                                    (INTEGER         gridID)
      EXTERNAL        gridDuplicate

1449
      INTEGER         gridInqType
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1450
!                                    (INTEGER         gridID)
1451
      EXTERNAL        gridInqType
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1452

1453
      INTEGER         gridInqSize
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1454
!                                    (INTEGER         gridID)
1455
      EXTERNAL        gridInqSize
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1456
1457
1458
1459
1460
1461
1462
1463
1464
1465
1466
1467
1468
1469
1470
1471
1472
1473
1474

!                     gridDefXsize
!                                    (INTEGER         gridID,
!                                     INTEGER         xsize)
      EXTERNAL        gridDefXsize

      INTEGER         gridInqXsize
!                                    (INTEGER         gridID)
      EXTERNAL        gridInqXsize

!                     gridDefYsize
!                                    (INTEGER         gridID,
!                                     INTEGER         ysize)
      EXTERNAL        gridDefYsize

      INTEGER         gridInqYsize
!                                    (INTEGER         gridID)
      EXTERNAL        gridInqYsize

1475
1476
1477
1478
1479
1480
1481
1482
1483
!                     gridDefNP
!                                    (INTEGER         gridID,
!                                     INTEGER         np)
      EXTERNAL        gridDefNP

      INTEGER         gridInqNP
!                                    (INTEGER         gridID)
      EXTERNAL        gridInqNP

Uwe Schulzweida's avatar
Uwe Schulzweida committed
1484
1485
!                     gridDefXvals
!                                    (INTEGER         gridID,
1486
!                                     DOUBLEPRECISION xvals)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1487
1488
1489
1490
      EXTERNAL        gridDefXvals

      INTEGER         gridInqXvals
!                                    (INTEGER         gridID,
1491
!                                     DOUBLEPRECISION xvals)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1492
1493
1494
1495
      EXTERNAL        gridInqXvals

!                     gridDefYvals
!                                    (INTEGER         gridID,
1496
!                                     DOUBLEPRECISION yvals)
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1497
1498
1499