Ignore:
Timestamp:
08/02/07 16:22:22 (13 years ago)
Author:
domlowe
Message:

fixed problems with longitude subsetting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • TI02-CSML/trunk/csml/DDC/model/is92/cccmasubset.py

    r2126 r2128  
    1818#print flist 
    1919 
     20for f in flist: 
     21    feature=csmldoc.getFeature(f) 
     22    print feature.id 
     23    print feature.description.CONTENT 
     24 
     25 
    2026#select a feature by name (gml:id) 
    2127#print '\n Selecting feature with gml:id = %s' %flist[3] 
    22 feature=csmldoc.getFeature(flist[3]) 
     28feature=csmldoc.getFeature(flist[0]) 
    2329 
    2430#feature 'bestname' 
    25 #print feature.id 
    26 #print feature.description 
     31print feature.id 
     32print feature.description 
    2733 
    2834#get the domain of the feature 
     
    3844#define a selection (based on the domain) 
    3945subsetDictionary={} 
    40 subsetDictionary['time']=('2010-1-15T0:0:0.0','2010-4-15T0:0:0.0') 
    41 subsetDictionary['latitude']=(40, 41) 
    42 subsetDictionary['longitude']=(0,4) 
     46subsetDictionary['time']=('2024-1-15T0:0:0.0','2024-8-15T0:0:0.0') 
     47subsetDictionary['latitude']=(0, 20) 
     48subsetDictionary['longitude']=(-10,10) 
    4349#request subsetted data from features (can set paths here) and add to container 
    4450#subset a feature 
    4551csmlContainer.add(feature.subsetToGridSeries(ncpath='DDC/model/is92/subsClim10_1.nc',**subsetDictionary)) 
    46 subsetDictionary['longitude']=(-1,4) 
    47 csmlContainer.add(feature.subsetToGridSeries(ncpath='DDC/model/is92/subsClim10_2.nc',**subsetDictionary)) 
     52#subsetDictionary['longitude']=(-5,6) 
     53#csmlContainer.add(feature.subsetToGridSeries(ncpath='DDC/model/is92/subsClim10_2.nc',**subsetDictionary)) 
    4854 
    4955 
Note: See TracChangeset for help on using the changeset viewer.