Changeset 2141 for TI02-CSML/trunk/csml


Ignore:
Timestamp:
12/02/07 10:03:47 (13 years ago)
Author:
domlowe
Message:

can select zero, single or range of times

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

Legend:

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

    r2128 r2141  
    7878    #currently supporting domain subsetting only by CRS name  
    7979    #(but should be easy to extend later) 
    80     times=timeSelection 
     80    times=csml.csmllibs.csmlextra.listify(timeSelection) 
    8181 
    8282    tone=csml.csmllibs.csmltime.getCDtime(times[0]) 
  • TI02-CSML/trunk/csml/DDC/obs/clim10.cfg

    r2126 r2141  
    44 
    55[files] 
    6 root: /home/users/domlowe/SVN/csml/DDC/obs/clim_10 
     6root: /home/dom/Desktop/SVN/trunk/csml/DDC/obs/clim_10 
    77mapping: onetoseveral 
    8 output: /home/users/domlowe/SVN/csml/DDC/obs/clim_10.xml 
     8output: /home/dom/Desktop/SVN/trunk/csml/DDC/obs/clim_10.xml 
    99printscreen:1 
    1010 
  • TI02-CSML/trunk/csml/DDC/obs/clim10subset.py

    r2126 r2141  
    2020#select a feature by name (gml:id) 
    2121#print '\n Selecting feature with gml:id = %s' %flist[3] 
    22 feature=csmldoc.getFeature(flist[3]) 
     22feature=csmldoc.getFeature(flist[0]) 
    2323 
    2424#feature 'bestname' 
     
    3838#define a selection (based on the domain) 
    3939subsetDictionary={} 
    40 subsetDictionary['time']=('1985-1-15T0:0:0.0','1985-4-15T0:0:0.0') 
     40#subsetDictionary['time']=('1985-1-15T0:0:0.0','1985-4-15T0:0:0.0') 
     41#subsetDictionary['time']=('1985-1-15T0:0:0.0') 
     42#subsetDictionary['time']=('1985-1-15T0:0:0.0') 
    4143subsetDictionary['latitude']=(40, 41) 
    4244subsetDictionary['longitude']=(0,4) 
Note: See TracChangeset for help on using the changeset viewer.