source: TI02-CSML/trunk/Examples/scanning/iotest.py @ 1494

Subversion URL: http://proj.badc.rl.ac.uk/svn/ndg/TI02-CSML/trunk/Examples/scanning/iotest.py@1494
Revision 1494, 733 bytes checked in by domlowe, 14 years ago (diff)

reorganised scanning examples

  • Property svn:eol-style set to native
  • Property svn:keywords set to Author Date Id Revision
Line 
1#!/usr/bin/env python
2
3import csmllibs
4
5testnetcdf = '/home/users/domlowe/CSML/Coapec/testfiles/xaaqda@pxt09c1.nc'
6#testnasa ='/home/users/domlowe/CSML/Ascoe/eae-96/challenger/ca960608.rc1'
7testnasa ='/home/users/domlowe/CSML/Ascoe/testfiles/FFI-4010.prn'
8
9
10#NETCDF/PP
11f1 = csmllibs.csmldataiface.DataInterface()
12f1=f1.setInterfaceType('cdunif')
13
14f1.openFile(testnetcdf)
15axeslist=f1.getListOfAxes()
16print f1.getSizeOfAxis('latitude')
17f1.setAxis('latitude')
18print f1.getDataForAxis()
19
20f1.closeFile()
21
22
23#NASA Ames
24f2=csmllibs.csmldataiface.DataInterface()
25f2=f2.setInterfaceType('nappy')
26f2.openFile(testnasa)
27axeslist=f2.getListOfAxes()
28#print axeslist
29#print f2.getSizeOfAxis('Latitude')
30print f2.getListofVariables()
31
32f2.closeFile()
Note: See TracBrowser for help on using the repository browser.