Skip to Content.

mget-help - Re: [mget-help] HYCOM dates out of range

Please Wait...

Subject: Marine Geospatial Ecology Tools (MGET) help

Text archives


Re: [mget-help] HYCOM dates out of range


Chronological Thread 
  • From: Adam Jehu <>
  • To: Jason Roberts <>
  • Cc: "" <>
  • Subject: Re: [mget-help] HYCOM dates out of range
  • Date: Wed, 4 Jan 2017 11:48:32 +0000
  • Accept-language: en-US
  • Authentication-results: nicholas.duke.edu; dkim=none (message not signed) header.d=none;nicholas.duke.edu; dmarc=none action=none header.from=hotmail.com;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:99

Hello Jason,


Thank you for the quick response. GLBu0.08 is working, thank you very much for the updated script. For GLBa0.08 products however, I get a similar error - it tells me that the date needs to be before 31/12/2016 when I tried to get today's u and v velocities. It works fine for last year's data but not 2017. I have attached the response below.


-Adam



Executing: HYCOMGLBa008Equatorial4DCreateArcGISRasters u X:\OC\temp Replace %%Y;%(VariableName)s_%%Y%%j_%(Depth)04.0fm.img # # false "-89 -5 -60 20" Degrees 0 0 04/01/2017 04/01/2017 60 600 # true false
Start Time: Wed Jan 04 07:25:21 2017
Running script HYCOMGLBa008Equatorial4DCreateArcGISRasters...
Failed script HYCOMGLBa008Equatorial4DCreateArcGISRasters...

Traceback (most recent call last):
  File "C:\Program Files\GeoEco\ArcGISToolbox\Scripts\HYCOMGLBa008Equatorial4DCreateArcGISRasters.py", line 5, in <module>
    ExecuteMethodFromCommandLineAsArcGISTool('GeoEco.DataProducts.HYCOM', 'HYCOMGLBa008Equatorial4D', '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 1865, in CreateArcGISRasters
    clippedGrid = cls._RotateAndClip(grid, rotationOffset, spatialExtent, linearUnit, minDepth, maxDepth, startDate, endDate)
  File "C:\Python27\ArcGIS10.4\lib\site-packages\GeoEco\DataProducts\HYCOM.py", line 1842, 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(2017, 1, 4, 0, 0)) is out of range. It must be less than or equal to datetime.datetime(2016, 12, 31, 0, 0), the t coordinate of the center of the right-most cell.

Failed to execute (HYCOMGLBa008Equatorial4DCreateArcGISRasters).
Failed at Wed Jan 04 07:25:25 2017 (Elapsed Time: 4.21 seconds)





From: Jason Roberts <>
Sent: Tuesday, January 3, 2017 1:12 PM
To: Adam Jehu
Cc:
Subject: RE: HYCOM dates out of range
 

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
Sent: Tuesday, January 3, 2017 8:48 AM
To:
Subject: [mget-help] HYCOM dates out of range

 

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)

 

 




Archive powered by MHonArc 2.6.19.

Top of Page