Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI02-CSML/trunk/Examples/ScanningStuff/iotest.py@1460
Revision 1460,
733 bytes
checked in by domlowe, 15 years ago
(diff) |
Moving various non-core scripts etc out of scanner directory
|
-
Property svn:eol-style set to
native
-
Property svn:keywords set to
Author Date Id Revision
|
Line | |
---|
1 | #!/usr/bin/env python |
---|
2 | |
---|
3 | import csmllibs |
---|
4 | |
---|
5 | testnetcdf = '/home/users/domlowe/CSML/Coapec/testfiles/xaaqda@pxt09c1.nc' |
---|
6 | #testnasa ='/home/users/domlowe/CSML/Ascoe/eae-96/challenger/ca960608.rc1' |
---|
7 | testnasa ='/home/users/domlowe/CSML/Ascoe/testfiles/FFI-4010.prn' |
---|
8 | |
---|
9 | |
---|
10 | #NETCDF/PP |
---|
11 | f1 = csmllibs.csmldataiface.DataInterface() |
---|
12 | f1=f1.setInterfaceType('cdunif') |
---|
13 | |
---|
14 | f1.openFile(testnetcdf) |
---|
15 | axeslist=f1.getListOfAxes() |
---|
16 | print f1.getSizeOfAxis('latitude') |
---|
17 | f1.setAxis('latitude') |
---|
18 | print f1.getDataForAxis() |
---|
19 | |
---|
20 | f1.closeFile() |
---|
21 | |
---|
22 | |
---|
23 | #NASA Ames |
---|
24 | f2=csmllibs.csmldataiface.DataInterface() |
---|
25 | f2=f2.setInterfaceType('nappy') |
---|
26 | f2.openFile(testnasa) |
---|
27 | axeslist=f2.getListOfAxes() |
---|
28 | #print axeslist |
---|
29 | #print f2.getSizeOfAxis('Latitude') |
---|
30 | print f2.getListofVariables() |
---|
31 | |
---|
32 | f2.closeFile() |
---|
Note: See
TracBrowser
for help on using the repository browser.