source: nappy/trunk/test/testRead1001.py @ 339

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/nappy/trunk/test/testRead1001.py@339
Revision 339, 363 bytes checked in by astephen, 15 years ago (diff)

Initial revision

  • Property svn:eol-style set to native
  • Property svn:executable set to *
  • Property svn:keywords set to Author Date Id Revision
Line 
1import sys ; sys.path.append("..")
2import naCore, textParser, naFile
3reload(naCore) ; reload(textParser) ; reload(naFile)
4
5f=naFile.NAFile1001(r"../data_files/1001.na")
6f.readData()
7
8print f.DX
9print f.VNAME[0]
10print f.VMISS[0], f.VSCAL[0]
11
12# Print first three time steps of variable 0
13print f.V[0][0], f.V[1][0], f.V[2][0]
14print "X:",f["X"],f["DX"],f["XNAME"]
15
16
Note: See TracBrowser for help on using the repository browser.