Changeset 1496


Ignore:
Timestamp:
07/09/06 14:08:26 (13 years ago)
Author:
domlowe
Message:

Change ncTest.py (used to test the netCDFWriter module) to use the new structure

Location:
TI02-CSML/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/Examples/parsing/ncTest.py

    r1494 r1496  
    1 from API import NetCDFWriter 
     1import csml.csmllibs.netCDFWriter as NetCDFWriter 
    22 
    3 #tests NetCDFWriter 
     3#tests netCDFWriter 
    44 
    55def main(): 
  • TI02-CSML/trunk/csml/API/ops_GridSeriesFeature.py

    r1495 r1496  
    122122        axisorder = data.getAxisIds()  #will need later! 
    123123        print 'filesFetched %s'%filesFetched 
    124  #   try: 
    125     caltype=self.domain.domainReference.frame.split(':',1)[0] 
    126     calunits=self.domain.domainReference.frame.split(':',1)[1] 
    127     csml.csmllibs.csmltime.setcdtimeCalendar(caltype) 
    128     #except: 
    129     #    csml.csmllibs.csmltime.setcdtimeCalendar(csml.csmllibs.csmltime.cdtime.DefaultCalendar) 
     124    try: 
     125        caltype=self.domain.domainReference.frame.split(':',1)[0] 
     126        calunits=self.domain.domainReference.frame.split(':',1)[1] 
     127        csml.csmllibs.csmltime.setcdtimeCalendar(caltype) 
     128    except: 
     129        csml.csmllibs.csmltime.setcdtimeCalendar(csml.csmllibs.csmltime.cdtime.DefaultCalendar) 
    130130    ### define domain and rangeSet to use for feature in csml document#### 
    131131    domain=csml.parser.GridSeriesDomain() 
Note: See TracChangeset for help on using the changeset viewer.