Skip to Content.

mget-help - RE: [mget-help] Error loading HYCOM into larval dispersal simulation

Please Wait...

Subject: Marine Geospatial Ecology Tools (MGET) help

Text archives


RE: [mget-help] Error loading HYCOM into larval dispersal simulation


Chronological Thread 
  • From: Jason Roberts <>
  • To: Stephen Ban <>, "" <>
  • Subject: RE: [mget-help] Error loading HYCOM into larval dispersal simulation
  • Date: Mon, 25 Apr 2016 21:41:25 +0000
  • Accept-language: en-US
  • Authentication-results: cpawsbc.org; dkim=none (message not signed) header.d=none;cpawsbc.org; dmarc=none action=none header.from=duke.edu;
  • Spamdiagnosticmetadata: NSPM
  • Spamdiagnosticoutput: 1:23

Hi Stephen,

 

That is a strange problem. Can you please send me the complete output of the tool, rather than just the last part that includes the traceback? In this case, the failure occurred in the ArcGIS Single Output Map Algebra tool. Although this tool no longer appears in the ArcToolbox window—Esri replaced it with the Raster Calculator tool a few releases ago—it is still accessible programmatically for backward compatibility and various MGET tools utilize it. This and other ArcGIS tools often output interesting messages prior to the traceback being issued when the script completes. Sometimes those messages are the clue we need.

 

I also suggest, if you have not done it already, that you use the Cache Directory parameter, at least while we’re debugging, so that if you have to rerun the tool multiple times it can skip the step of downloading from the HYCOM server. When you try to repro the problem, feel free to download just one day of data. The kind of failure we’re seeing here looks like it will repro regardless of how much data you download.

 

Please do send me that output, but here are a few other things to check:

 

1.    You have the Spatial Analyst licensed and enabled. (You probably do, because the tool checks this and would have failed immediately if you did not.)

2.    You have read access to the G:\GIS\bclarval directory. (I’m sure you do; you probably just created it.)

3.    You have write access to C:\Temp. (I’m guessing you do, or MGET probably would have failed earlier.)

4.    The C: drive is not full (this might be the problem).

 

Best,

Jason

 

From: [mailto:] On Behalf Of Stephen Ban
Sent: Monday, April 25, 2016 4:56 PM
To:
Subject: [mget-help] Error loading HYCOM into larval dispersal simulation

 

Hi all,

 

I’m trying to run some larval dispersal simulations for the first time, and I’m getting a rather cryptic error when I try to run the Load HYCOM GLBa0.08 Currents into Larval Dispersal Simulation tool. It gets all the way through downloading and importing the datasets (I used a 90-day period from 2015), but then throws the following error(s) right after that:

 

ERROR 000582: Error occurred during execution.

Failed script LarvalDispersalLoadHYCOMGLBa0084DEquatorialCurrentsIntoSimulation...

 

Traceback (most recent call last):

  File "C:\Program Files\GeoEco\ArcGISToolbox\Scripts\LarvalDispersalLoadHYCOMGLBa0084DEquatorialCurrentsIntoSimulation.py", line 5, in <module>

    ExecuteMethodFromCommandLineAsArcGISTool('GeoEco.Connectivity.LarvalDispersal', 'LarvalDispersal', 'LoadHYCOMGLBa0084DEquatorialCurrentsIntoSimulation')

  File "C:\Python27\ArcGIS10.3\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.3\lib\site-packages\GeoEco\Connectivity\LarvalDispersal.py", line 311, in LoadHYCOMGLBa0084DEquatorialCurrentsIntoSimulation

    cls._FinishLoadingCurrents(simulationDirectory, scp, thisCurrentsProduct, u'Center', 86400, hycomCurrentsDirectory, resamplingTechnique, interpolationMethod)

  File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Connectivity\LarvalDispersal.py", line 384, in _FinishLoadingCurrents

    gp.SingleOutputMapAlgebra_sa('setnull(%s == 0, %s)' % (waterMask, waterMask), newWaterMask)

  File "<string>", line 2, in SingleOutputMapAlgebra_sa

  File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\ArcGIS.py", line 1312, in _InvokeMethod

    raise ArcGISError(_(u'The ArcGIS %(tool)s geoprocessing tool failed when given the parameters %(params)s and reported %(error)s: %(msg)s') % {u'tool': methodName, u'params': inspect.formatargvalues(_args, _varargs, _varkw, _locals), u'error': e.__class__.__name__, u'msg': unicode(e)})

ArcGISError: The ArcGIS SingleOutputMapAlgebra_sa geoprocessing tool failed when given the parameters (*args=('setnull(G:\\GIS\\bclarval\\PatchData\\water_mask.img == 0, G:\\GIS\\bclarval\\PatchData\\water_mask.img)', 'C:\\Temp\\GeoEcoTemp_Stephen\\tmpwco3ef\\water_mask.img')) and reported ExecuteError: ERROR 000582: Error occurred during execution.

 

Failed to execute (LarvalDispersalLoadHYCOMGLBa0084DEquatorialCurrentsIntoSimulation).

 

Any pointers?

 

Thanks,

Stephen Ban

 

Stephen Ban, Ph.D., RPBio.

National Ocean Spatial Analysis Manager

Canadian Parks and Wilderness Society

#410-698 Seymour Street, Vancouver, B.C. V6B 3K6

Tel: 604 685-7445 ext. 30            

Fax: 604 629-8532 

Email: 

 




Archive powered by MHonArc 2.6.19.

Top of Page