testLib.py 266 Bytes
Newer Older
Uwe Schulzweida's avatar
Uwe Schulzweida committed
1
2
3
4
5
6
import CdiLib
ifile = "../testdata/mulval.nc"
streamID = CdiLib.streamOpenRead(ifile)
vlistID  = CdiLib.streamInqVlist(streamID)
nvars    = CdiLib.vlistNvars(vlistID)
for i in range(0,nvars):
Ralf Mueller's avatar
Ralf Mueller committed
7
  print(CdiLib.vlistInqVarCode(vlistID, i))
Uwe Schulzweida's avatar
Uwe Schulzweida committed
8
9

CdiLib.streamClose(streamID)