Changeset 913
- Timestamp:
- 02/16/12 16:01:51 (15 months ago)
- Location:
- MGET/Branches/Jason/PythonPackage/src/GeoEco
- Files:
-
- 3 modified
-
DataProducts/Aviso.py (modified) (1 diff)
-
DataProducts/NOAA/OSCAR.py (modified) (6 diffs)
-
Datasets/Virtual.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
MGET/Branches/Jason/PythonPackage/src/GeoEco/DataProducts/Aviso.py
r911 r913 510 510 511 511 if parameter in [u'u', u'v']: 512 AvisoGriddedGeostrophicCurrents(productName, parameter, temporalResolution, username, password, timeout, maxRetryTime, cacheDirectory)512 return AvisoGriddedGeostrophicCurrents(productName, parameter, temporalResolution, username, password, timeout, maxRetryTime, cacheDirectory) 513 513 514 514 # The caller wants something derived from both u and v. First -
MGET/Branches/Jason/PythonPackage/src/GeoEco/DataProducts/NOAA/OSCAR.py
r911 r913 169 169 if name in ['CornerCoords', 'Shape']: 170 170 if self._Grid is None: 171 self._Grid = cls._ConstructGridForParameter(self._Parameter, self._Timeout, self._MaxRetryTime, self._CacheDirectory)171 self._Grid = self._ConstructGridForParameter(self._Parameter, self._Timeout, self._MaxRetryTime, self._CacheDirectory) 172 172 173 173 if name == 'CornerCoords': … … 189 189 190 190 if self._Grid is None: 191 self._Grid = cls._ConstructGridForParameter(self._Parameter, self._Timeout, self._MaxRetryTime, self._CacheDirectory)191 self._Grid = self._ConstructGridForParameter(self._Parameter, self._Timeout, self._MaxRetryTime, self._CacheDirectory) 192 192 193 193 return self._Grid._GetCoords(coord, coordNum, slices, sliceDims, fixedIncrementOffset) … … 205 205 206 206 if self._Grid is None: 207 self._Grid = cls._ConstructGridForParameter(self._Parameter, self._Timeout, self._MaxRetryTime, self._CacheDirectory)207 self._Grid = self._ConstructGridForParameter(self._Parameter, self._Timeout, self._MaxRetryTime, self._CacheDirectory) 208 208 209 209 sliceList = [sliceList[0], slice(0, 1), sliceList[1], sliceList[2]] … … 215 215 216 216 # If the caller just wants u, v, u_anom, or v_anom, construct 217 # and return a OSCAR5DayThirdDegreeCurrentsinstance.217 # and return a _OSCAR5DayThirdDegreeCurrents4D instance. 218 218 219 219 if parameter in [u'u', u'v', u'u_anom', u'v_anom']: 220 OSCAR5DayThirdDegreeCurrents(parameter, timeout, maxRetryTime, cacheDirectory)220 return _OSCAR5DayThirdDegreeCurrents4D(parameter, timeout, maxRetryTime, cacheDirectory) 221 221 222 222 # The caller wants something derived from both u and v. First … … 224 224 225 225 if parameter.endswith('_anom'): 226 uGrid = OSCAR5DayThirdDegreeCurrents(u'u_anom', timeout, maxRetryTime, cacheDirectory)227 vGrid = OSCAR5DayThirdDegreeCurrents(u'v_anom', timeout, maxRetryTime, cacheDirectory)226 uGrid = _OSCAR5DayThirdDegreeCurrents4D(u'u_anom', timeout, maxRetryTime, cacheDirectory) 227 vGrid = _OSCAR5DayThirdDegreeCurrents4D(u'v_anom', timeout, maxRetryTime, cacheDirectory) 228 228 else: 229 uGrid = OSCAR5DayThirdDegreeCurrents(u'u', timeout, maxRetryTime, cacheDirectory)230 vGrid = OSCAR5DayThirdDegreeCurrents(u'v', timeout, maxRetryTime, cacheDirectory)229 uGrid = _OSCAR5DayThirdDegreeCurrents4D(u'u', timeout, maxRetryTime, cacheDirectory) 230 vGrid = _OSCAR5DayThirdDegreeCurrents4D(u'v', timeout, maxRetryTime, cacheDirectory) 231 231 232 232 # Now construct and return the appropriate DerivedGrid … … 512 512 * dir_anom - Direction of water flow (from u_anom and v_anom). 513 513 514 * eke - Eddy kinetic energy, in cm^2/s^2, computed as 0.5*(u^2 + v^2).514 * eke - Eddy kinetic energy, in m^2/s^2, computed as 0.5*(u^2 + v^2). 515 515 516 516 * mag - Absolute magnitude (or modulus) of the water velocity vector, 517 in cm/s.517 in m/s. 518 518 519 519 * mag_anom - Absolute magnitude of water velocity (from u_anom and -
MGET/Branches/Jason/PythonPackage/src/GeoEco/Datasets/Virtual.py
r911 r913 2008 2008 completionMessage=_(u'Aggregation complete: %(elapsed)s elapsed, %(opsCompleted)i grids aggregated, %(perOp)s per grid.'), 2009 2009 abortedMessage=_(u'Aggregation stopped before all grids were aggregated: %(elapsed)s elapsed, %(opsCompleted)i grids aggregated, %(perOp)s per grid, %(opsIncomplete)i not aggregated.'), 2010 loggingChannel=u'GeoEco.Datasets') 2010 loggingChannel=u'GeoEco.Datasets', 2011 arcGISProgressorLabel=_(u'Aggregating %(count)i grids') % {u'count': len(self._Grids)} ) 2011 2012 progressReporter.Start(len(self._Grids)) 2012 2013 else:
