Changeset 2500 for TI02-CSML


Ignore:
Timestamp:
21/05/07 14:51:40 (12 years ago)
Author:
domlowe
Message:

fix to CRS catalogue and to ops_gridseriesfeature

Location:
TI02-CSML/trunk/csml
Files:
3 edited

Legend:

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

    r2498 r2500  
    2424    selLower=[] 
    2525    selUpper=[] 
     26      
     27    #create artificial range for single selections so that (60) becomes (60,60) 
     28    for sel in selection: 
     29        if type(selection[sel]) in [int,float]:  #ie. single value as opposed to a list containing a range 
     30            tmp=selection[sel] 
     31            selection[sel]=[tmp,tmp]  
     32         
    2633    for sel in selection: 
    2734        for item in enumerate(self.domain[sel]): 
     
    3239                limit1=index 
    3340                #selLower.append(item[0]) 
    34             elif value==selection[sel][1]: 
     41            if value==selection[sel][1]: 
    3542                #selUpper.append(self.domain[sel].index(item)) 
    3643                limit2=index 
  • TI02-CSML/trunk/csml/csmllibs/csmlcrs.py

    r2473 r2500  
    2727        crs.timeAxis=0 
    2828        self.systems['WGS84']=crs 
     29         
     30         
     31         #time only crs 
     32        crs=CRSystem(srsName='ndg:crs:t', axes =['time']) 
     33        crs.timeAxis=0 
     34        self.systems['ndg:crs:t']=crs 
    2935         
    3036        # define lon lat pressure time CRS:         
  • TI02-CSML/trunk/csml/testfiles/gridseries/subset.py

    r2492 r2500  
    33import csml,sys 
    44 
    5 f='testout.xml'                  
     5f='../gridseries/testout.xml' 
    66 
    77#Initialise the CSML container 
Note: See TracChangeset for help on using the changeset viewer.