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

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/nappy/trunk/test/testRead1020.py@339
Revision 339, 522 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.NAFile1020(r"../data_files/1020a.na")
6f.readData()
7
8print f.DX
9print f.VNAME[2]
10#print f.V[2]
11#print f.V[1][0]
12
13print f.NAUXV
14if f.NAUXV>1:
15    print f.ANAME[1], f.ASCAL[1]
16    print f.A[1]
17
18f=naFile.NAFile1020(r"../data_files/1020b.na")
19f.readData()
20
21print f.DX
22print f.VNAME[2]
23#print f.V[2]
24#print f.V[1][0]
25
26print f.NAUXV
27if f.NAUXV>1:
28    print f.ANAME[1], f.ASCAL[1]
29    print f.A[1]
Note: See TracBrowser for help on using the repository browser.