Ignore:
Timestamp:
30/03/07 12:44:11 (13 years ago)
Author:
domlowe
Message:

fixing SpatialOrTemporalList?

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/API/genSubset.py

    r2320 r2356  
    8585    for gridOrd in ords: 
    8686        if gridOrd.coordAxisLabel.CONTENT==timeName: 
     87             
    8788            try: 
    88                 caltype=gridOrd.coordAxisValues.frame.split(':',1)[0] 
    89                 calunits=gridOrd.coordAxisValues.frame.split(':',1)[1] 
     89                caltype=gridOrd.coordAxisValues.timePositionList.frame.split(':',1)[0] 
     90                calunits=gridOrd.coordAxisValues.timePositionList.frame.split(':',1)[1] 
    9091                csml.csmllibs.csmltime.setcdtimeCalendar(caltype) 
    9192                calset=True 
     
    9495        csml.csmllibs.csmltime.setcdtimeCalendar(csml.csmllibs.csmltime.cdtime.DefaultCalendar)     
    9596    try: 
    96         caltype=gridOrd.coordAxisValues.frame.split(':',1)[0] 
    97         calunits=gridOrd.coordAxisValues.frame.split(':',1)[1] 
     97        caltype=gridOrd.timePositionList.frame.split(':',1)[0] 
     98        calunits=gridOrd.timePositionList.frame.split(':',1)[1] 
    9899        csml.csmllibs.csmltime.setcdtimeCalendar(caltype) 
    99100    except: 
Note: See TracChangeset for help on using the changeset viewer.