Changeset 2587 for TI02-CSML/trunk
- Timestamp:
- 14/06/07 14:09:37 (14 years ago)
- Location:
- TI02-CSML/trunk/csml/API
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TI02-CSML/trunk/csml/API/csmlutils.py
r2495 r2587 26 26 if _anyitemlessthanzero(request[key]): 27 27 pass #no need to convert request if data is also -ve to +ve 28 else: 29 for val in request[key]: 28 else: 29 for val in request[key]: 30 30 if val < 0: 31 31 pass 32 else: 32 else: 33 33 if kwargs[key][0] < 0: 34 34 kwargs[key]=(kwargs[key][0]+360,kwargs[key][1]) -
TI02-CSML/trunk/csml/API/genSubset.py
r2585 r2587 7 7 import Numeric 8 8 9 def checkNeighbours(domain, gridnames,**kwargs):9 def checkNeighbours(domain, **kwargs): 10 10 #for any non-range requests, get nearest neighbour 11 11 #e.g if 'latitude': (11) requested, latitude=12 may be the nearest value 12 13 12 for key in kwargs: 14 13 #need to skip time axis … … 242 241 #if the request is in -ve,+ve eg (-30,30) but the data is in (0,360) need to handle this by changing the args. 243 242 kwargs=csmlutils.fixLongitude(domain,kwargs) 244 243 244 #if request doesn't match domain points find nearest neighbours 245 kwargs=csml.API.genSubset.checkNeighbours(domain, **kwargs) 246 247 245 248 #get the name of the time axis in the coordinate reference system 246 249 cat=csml.csmllibs.csmlcrs.CRSCatalogue() -
TI02-CSML/trunk/csml/API/ops_GridSeriesFeature.py
r2584 r2587 127 127 self.getDomain() 128 128 129 #if request doesn't match domain points find nearest neighbours130 kwargs=csml.API.genSubset.checkNeighbours(self.domain, self.gridnames, **kwargs)131 129 #get the CRS from a the catalogue 132 130 cat=csml.csmllibs.csmlcrs.CRSCatalogue()
Note: See TracChangeset
for help on using the changeset viewer.