Changeset 2084
- Timestamp:
- 31/01/07 15:34:45 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TI02-CSML/trunk/csml/API/ops_GridSeriesFeature.py
r2083 r2084 39 39 self.getDomain() 40 40 41 #non-feature specific setup code: 41 #get the CRS from a the catalogue 42 cat=csml.csmllibs.csmlcrs.CRSCatalogue() 43 crs=cat.getCRS(self.value.gridSeriesDomain.srsName) 44 45 #non-feature specific setup code, mainly handles the time dimension/calendar 42 46 pathToSubsetNetCDF, kwargs, timeName, calunits, caltype, times=csml.API.genSubset._genericSubset(self, csmlpath, ncpath, self.domain, kwargs) 43 47 … … 49 53 print 'crs not supported' 50 54 55 56 #get the ratio of times to files 57 timeToFileRatio = csml.API.genSubset._getTimeToFileRatio(self, self.domain, timeName) 58 59 60 #list to keep track of files that have already been fetched. eg. if multiple times are in a single file only need to get data from that file once... 61 filesFetched=[] 62 63 ##Get names of variables in file and relate them to the subset selection 64 selection={} 65 for gridOrd in self.value.gridSeriesDomain.coordTransformTable.gridOrdinates: 66 selection[gridOrd.gridAxesSpanned.CONTENT]=kwargs[gridOrd.coordAxisLabel.CONTENT] 51 67 52 53 68 54 69 self.files=[] 55 70 strTimes='' 56 71 fulldata=[] 57 58 timeToFileRatio = csml.API.genSubset._getTimeToFileRatio(self, self.domain, timeName)59 60 72 61 62 #to keep track of files that have already been fetched. eg. if multiple times are in a single file only need to get data from that file once...63 filesFetched=[]64 #get data:65 selection={}66 73 67 #Get names of variables in file68 cat=csml.csmllibs.csmlcrs.CRSCatalogue()69 crs=cat.getCRS(self.value.gridSeriesDomain.srsName)70 71 for gridOrd in self.value.gridSeriesDomain.coordTransformTable.gridOrdinates:72 selection[gridOrd.gridAxesSpanned.CONTENT]=kwargs[gridOrd.coordAxisLabel.CONTENT]73 74 75 74 for time in times: 76 75 listPosition=self.domain[timeName].index(time)
Note: See TracChangeset
for help on using the changeset viewer.