Changeset 1495 for TI02-CSML


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

Changed apicalls.py to reflect new module structure

Location:
TI02-CSML/trunk
Files:
2 edited

Legend:

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

    r1493 r1495  
    33import csml 
    44 
    5 f='test.xml' 
     5f='Examples/parsing/test.xml' 
    66 
    77#Initialise and parse the dataset 
  • TI02-CSML/trunk/csml/API/ops_GridSeriesFeature.py

    r1489 r1495  
    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(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.