Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
- From: Jason Roberts <>
- To: Virginie Marques <>
- Cc: "" <>
- Subject: RE: [mget-help] Error loading current data - larval dispersal simulation
- Date: Wed, 25 Jan 2017 12:23:35 +0000
- Accept-language: en-US
- Authentication-results: spf=none (sender IP is ) ;
- Spamdiagnosticmetadata: NSPM
- Spamdiagnosticoutput: 1:99
Dear Virginie,
I’m sorry for your trouble here. The root problem may relate to how ArcGIS 10.1 handles the Extent environment variable of the ArcGIS geoprocessor, relative to later versions. I tried to write the code to handle all versions of ArcGIS but it is very tricky. I have three suggestions:
1. Did you set the Extent environment variable yourself before running this? If you did, please unset it and try again. If you did not, or you don’t know if you did, then don’t worry about this, as it is probably not the problem.
2. Are you running the latest version of MGET, 0.8a66? It looks like not. If not, could you please uninstall your current version and then install 0.8a66? Download here. I made a change to this code last month specifically for ArcGIS 10.1. It might fix the problem, although I’m not 100% confident. Try again after installing 0.8a66.
3. If that doesn’t work, please enable verbose logging (instructions here) and send me the complete output of the tool.
Best, Jason From: [mailto:]
On Behalf Of Virginie Marques
Hi MGET,
I am currently working on reef fish connectivity and I encounter a problem while loading the current data from HYCOM GLBa 0.08. At the moment, I only ran the simulation not on my own data but on the subset from the data you provided on your website for a trial, from Schill et al 2015.
Here is the entire error code I got and I don't know how to fix it, if the problem is from my arcgis software (10.1) or a step I do wrong.
Executing: LarvalDispersalLoadHYCOMGLBa0084DEquatorialCurrentsIntoSimulation C:\Users\David\Documents\Virginie\MGET_Simu\Simu1\test1 20/09/2013 21/09/2013 0 false CUBIC Del2a 60 120 # Start Time: Tue Jan 24 15:55:07 2017 Running script LarvalDispersalLoadHYCOMGLBa0084DEquatorialCurrentsIntoSimulation... Querying time and depth slices of u grid of the equatorial region of the HYCOM + NCODA Global 1/12 degree Analysis (GLBa0.08), clipped to indices tMin = 1828, tMax = 1829, zMax = 0. Query complete: 0:00:00 elapsed, 2 datasets found, 0:00:00.001500 per dataset. Importing 2 datasets into ArcGIS Folder or Workspace C:\Users\David\Documents\Virginie\MGET_Simu\Simu1\test1\OriginalHYCOMCurrents with mode "add". Checking for existing destination datasets. Finished checking: 0:00:00 elapsed, 2 datasets checked, 0:00:00.000500 per dataset. 0 destination datasets already exist. Importing 2 datasets. Import in progress: 0:02:56 elapsed, 1 datasets imported, 0:02:56.483287 per dataset, 1 remaining, estimated completion time: unknown; more progress needed. Import complete: 0:05:20 elapsed, 2 datasets imported, 0:02:40.076500 per dataset. Querying time and depth slices of v grid of the equatorial region of the HYCOM + NCODA Global 1/12 degree Analysis (GLBa0.08), clipped to indices tMin = 1828, tMax = 1829, zMax = 0. Query complete: 0:00:00 elapsed, 2 datasets found, 0:00:00.001000 per dataset. Importing 2 datasets into ArcGIS Folder C:\Users\David\Documents\Virginie\MGET_Simu\Simu1\test1\OriginalHYCOMCurrents with mode "add". Checking for existing destination datasets. Finished checking: 0:00:00 elapsed, 2 datasets checked, 0:00:00 per dataset. 0 destination datasets already exist. Importing 2 datasets. Import in progress: 0:03:11 elapsed, 1 datasets imported, 0:03:11.967623 per dataset, 1 remaining, estimated completion time: unknown; more progress needed. Import complete: 0:06:56 elapsed, 2 datasets imported, 0:03:28.457500 per dataset. Finding ArcGIS rasters and inserting rows into table "work": workspace="C:\Users\David\Documents\Virginie\MGET_Simu\Simu1\test1\OriginalHYCOMCurrents", wildcard="*.img", searchTree=True, rasterType="None" Finished inserting rows: 0:00:00 elapsed, 4 rows inserted, 0:00:00.065000 per row. Updating field "outputRaster" in table "work"... Update complete: 0:00:00 elapsed, 4 rows updated, 0 deleted, 0 unchanged, 0:00:00.000250 per row. Querying the table "work" to build lists of inputs and outputs... Query complete: 0:00:00 elapsed, 4 rows retrieved, 0:00:00 per row. Checking for existing outputs for each input... Finished checking for existing outputs: 0:00:00 elapsed, 4 inputs checked, 0:00:00.026000 per input. Processing 4 inputs... ERROR 010092: Invalid output extent. Failed to execute (ExtractByMask).
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.1\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.1\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.1\lib\site-packages\GeoEco\Connectivity\LarvalDispersal.py", line 402, in _FinishLoadingCurrents skipExisting=True) File "<string>", line 7, in FindAndProjectRastersToTemplate File "C:\Python27\ArcGIS10.1\lib\site-packages\GeoEco\BatchProcessing.py", line 2161, in ExecuteFindAndProcessMethod boundProcessTableMethod(*tuple(argList)) File "<string>", line 5, in ProjectToTemplateTable File "C:\Python27\ArcGIS10.1\lib\site-packages\GeoEco\BatchProcessing.py", line 1295, in ExecuteProcessTableMethod results = boundProcessListMethod(*tuple(argList)) File "<string>", line 5, in ProjectToTemplateList File "C:\Python27\ArcGIS10.1\lib\site-packages\GeoEco\BatchProcessing.py", line 912, in ExecuteProcessListMethod result = boundMethod(*tuple(argList)) File "C:\Python27\ArcGIS10.1\lib\site-packages\GeoEco\DataManagement\ArcGISRasters.py", line 1910, in ProjectToTemplate gp.ExtractByMask_sa(projectedRaster, maskRaster, outputRaster) File "<string>", line 2, in ExtractByMask_sa File "C:\Python27\ArcGIS10.1\lib\site-packages\GeoEco\ArcGIS.py", line 1317, 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 ExtractByMask_sa geoprocessing tool failed when given the parameters (*args=('C:\\Temp\\GeoEcoTemp_David\\tmp1ejf5v\\infilled.img', 'C:\\Temp\\GeoEcoTemp_David\\tmpmaazmr\\water_mask', 'C:\\Users\\David\\Documents\\Virginie\\MGET_Simu\\Simu1\\test1\\Currents\\u\\2013\\u20132630000.img')) and reported ExecuteError: ERROR 010092: Invalid output extent. Failed to execute (ExtractByMask).
Failed to execute (LarvalDispersalLoadHYCOMGLBa0084DEquatorialCurrentsIntoSimulation). Failed at Tue Jan 24 16:07:32 2017 (Elapsed Time: 12 minutes 25 seconds)
Thanks in advance,
Virginie |
- [mget-help] Error loading current data - larval dispersal simulation, Virginie Marques, 01/24/2017
- RE: [mget-help] Error loading current data - larval dispersal simulation, Jason Roberts, 01/25/2017
Archive powered by MHonArc 2.6.19.