Changeset 2282 for TI02-CSML


Ignore:
Timestamp:
15/03/07 12:53:28 (13 years ago)
Author:
domlowe
Message:

resolved problem with mismatched axis/grid names

Location:
TI02-CSML/trunk/csml/API
Files:
2 edited

Legend:

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

    r2275 r2282  
    1010    #for any non-range requests, get nearest neighbour 
    1111    #e.g if 'latitude': (11) requested, latitude=12 may be the nearest value 
    12     print 'DOMAIN' 
    13     print domain 
    14     print 'GRIDNAMES' 
    15     print gridnames 
    16     print 'KWARGS' 
    17     print kwargs 
    18     #think this has got muddled..  
    19      
     12      
    2013    for key in kwargs: 
    2114    #need to skip time axis 
    2215        #handle single values 
    2316        if type(kwargs[key]) is not tuple: 
    24             if type(domain[Key]) is not list: 
    25                 axeslist=domain[Key].tolist() 
     17            if type(domain[key]) is not list: 
     18                axeslist=domain[key].tolist() 
    2619            else: 
    2720                axeslist = domain[key] 
  • TI02-CSML/trunk/csml/API/ops_GridSeriesFeature.py

    r2220 r2282  
    6767        except KeyError: 
    6868            allValues=tuple(self.domain[gridOrd.coordAxisLabel.CONTENT]) 
     69    del selection[timeAxis] #NOTE: Haven't resolved the single CRS issue so cannot subset by time within an individual file for now 
    6970    strTimes, axisorder, units, fulldata, fillvalue =csml.API.genSubset.getTheData(self, selection, times, timeName) 
    7071    return pathToSubsetNetCDF, crs, timeName, times, strTimes, calunits, caltype, axisorder,units, fulldata, fillvalue, kwargs 
Note: See TracChangeset for help on using the changeset viewer.