Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
- From: Jason Roberts <>
- To: Adam Jehu <>
- Cc: "" <>
- Subject: RE: [mget-help] HYCOM dates out of range
- Date: Tue, 3 Jan 2017 17:12:21 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Hi Adam,
Thanks for bringing this to our attention. The problem is that HYCOM switched to a new model on 19 April 2016. They do this every year or two as they make improvements. When they do, we have to update MGET to recognize a new “experiment number” assigned by the HYCOM team. Attached is a patch that does this. To apply it:
1. Close all ArcGIS programs. 2. Save the attached file to C:\Python27\ArcGIS10.4\Lib\site-packages\GeoEco\DataProducts, overwriting the file that is there. 3. Try the tool again.
Please let me know if that works.
This problem affects MGET tools that access the HYCOM GLBu0.08 (equirectangular grid) products. It should not affect tools that access the GLBa0.08 (Mercator grid) products; the HYCOM team aggregates these in a way that does not require us to recognize a new experiment number.
Best,
Jason From: [mailto:]
On Behalf Of Adam Jehu
Hello,
I am unable to download any HYCOM data, from either GLBa0.08 or GLBu0.08 Equatorial 4D Variable. I keep getting an error stating my time range must be before 18/04/2016. When I use this date it works fine, however for other dates I have tried (including today) which are after 18/04/2016 i get the error below. I have used MGET recently for similar HYCOM requests, but this is the first time I am getting this.
Regards, -Adam
Executing: HYCOMGLBu0084DCreateArcGISRasters water_u 1day X:\OC\temp Add %%Y;%(VariableName)s_%%Y%%j_%(Depth)04.0fm.img # # "-89.988661 -9.966068 -30.019331 29.982384" 0 0 19/04/2016 19/04/2016 60 600 # true false Start Time: Tue Jan 03 09:36:05 2017 Running script HYCOMGLBu0084DCreateArcGISRasters... Failed script HYCOMGLBu0084DCreateArcGISRasters...
Traceback (most recent call last): File "C:\Program Files\GeoEco\ArcGISToolbox\Scripts\HYCOMGLBu0084DCreateArcGISRasters.py", line 5, in <module> ExecuteMethodFromCommandLineAsArcGISTool('GeoEco.DataProducts.HYCOM', 'HYCOMGLBu0084D', 'CreateArcGISRasters') File "C:\Python27\ArcGIS10.4\lib\site-packages\GeoEco\ArcGISScripts.py", line 210, in ExecuteMethodFromCommandLineAsArcGISTool exec sourceCode in globals(), locals() File "<string>", line 1, in <module> File "C:\Python27\ArcGIS10.4\lib\site-packages\GeoEco\DataProducts\HYCOM.py", line 2855, in CreateArcGISRasters clippedGrid = cls._RotateAndClip(grid, rotationOffset, spatialExtent, minDepth, maxDepth, startDate, endDate, timeStep == '1day') File "C:\Python27\ArcGIS10.4\lib\site-packages\GeoEco\DataProducts\HYCOM.py", line 2834, in _RotateAndClip grid = ClippedGrid(grid, u'Map coordinates', xMin=xMin, xMax=xMax, yMin=yMin, yMax=yMax, zMin=minDepth, zMax=maxDepth, tMin=startDate, tMax=endDate) File "C:\Python27\ArcGIS10.4\lib\site-packages\GeoEco\Datasets\Virtual.py", line 831, in __init__ sliceList = [self._GetSlicesForClippedExtent(grid, 't', clipBy, tMin, tMax)] + sliceList File "C:\Python27\ArcGIS10.4\lib\site-packages\GeoEco\Datasets\Virtual.py", line 926, in _GetSlicesForClippedExtent raise IndexError(_(u'%(dim)sMin (%(value)s) is out of range. It must be less than or equal to %(max)s, the %(dim)s coordinate of the center of the right-most cell.') % {u'dim': dim, u'value': repr(start), u'max': repr(grid.CenterCoords[dim, -1])}) IndexError: tMin (datetime.datetime(2016, 4, 19, 0, 0)) is out of range. It must be less than or equal to datetime.datetime(2016, 4, 18, 0, 0), the t coordinate of the center of the right-most cell.
Failed to execute (HYCOMGLBu0084DCreateArcGISRasters). Failed at Tue Jan 03 09:36:23 2017 (Elapsed Time: 17.40 seconds)
|
Attachment:
HYCOM.PY
Description: HYCOM.PY
- [mget-help] HYCOM dates out of range, Adam Jehu, 01/03/2017
- RE: [mget-help] HYCOM dates out of range, Jason Roberts, 01/03/2017
- Re: [mget-help] HYCOM dates out of range, Adam Jehu, 01/04/2017
- RE: [mget-help] HYCOM dates out of range, Jason Roberts, 01/04/2017
- RE: [mget-help] HYCOM dates out of range, Jason Roberts, 01/04/2017
- RE: [mget-help] HYCOM dates out of range, Jason Roberts, 01/04/2017
- Re: [mget-help] HYCOM dates out of range, Adam Jehu, 01/04/2017
- RE: [mget-help] HYCOM dates out of range, Jason Roberts, 01/03/2017
Archive powered by MHonArc 2.6.19.