Subject: Marine Geospatial Ecology Tools (MGET) help
Text archives
[mget-help] Error in Run Larval Dispersal Simulation (MGET 2.7): Undefined function or variable "ULfull"
Chronological Thread
- From: Ben Best <>
- To:
- Cc: Stephanie Gad <>,
- Subject: [mget-help] Error in Run Larval Dispersal Simulation (MGET 2.7): Undefined function or variable "ULfull"
- Date: Thu, 2 Jun 2016 10:07:06 -0700
CC: Stephanie Gad, GRAYSREEF
# -*- coding: utf-8 -*-Hi Jason,
but the C:\ location seems to need a compiled version, since it complains of version information not bein embedded.
A Bren School master's group project is evaluating the connectivity of Gray's Reef National Marine Sanctuary. Andre turned them onto the Schill et al (2015) paper and they're diving in now with your latest in progress tutorial New larval connectivity modeling tools. I helped them get setup with all the dependencies, including Matlab runtime component and now they're running into the following error using the tutorial data:
python.exe: RuntimeError: ??? Undefined function or variable "ULfull".
Any tips? I tried replacing the Matlab script:
C:\Python27\ArcGIS10.3\Lib\site-packages\GeoEco\Matlab\FunctionsMatlab_mcr\build\src\GeoEco\Matlab\Functions.matlab\DisperseLarvae2012.m
with the newer:
Any other tips?
Thanks very much, Ben
PS Model of tools exported as model.py attached for parameter reference.
PPS Rest of error message below....
Executing (Run Larval Dispersal Simulation (2012 Algorithm)): LarvalDispersalRunSimulation2012 G:\Steph\Modeling\Simulation G:\Steph\Modeling\ResultsDirectory "9/20/2011 1:57:50 PM" 3 0.037931 24 # # 0.8 false # # # 50
Start Time: Thu Jun 02 09:49:06 2016
Running script LarvalDispersalRunSimulation2012...
Reading habitat patch data...
Reading 8 ocean currents images...
Finished reading: 0:00:00 elapsed, 8 images read, 0:00:00.060375 per image.
The stability condition is 0.029463, which is less than or equal to 2 ^ -1/2 = 0.707106. The simulation will be numerically stable.
Simulating larval dispersal for 44 larval source patches...
python.exe: RuntimeError: ??? Undefined function or variable "ULfull".
python.exe:
python.exe: Error in ==> DisperseLarvae2012 at 449
The following consequences resulted from the original error:
Execution of C:\Python27\ArcGIS10.3\python.exe failed.
Failed script LarvalDispersalRunSimulation2012...
Traceback (most recent call last):
File "C:\Program Files\GeoEco\ArcGISToolbox\Scripts\LarvalDispersalRunSimulation2012.py", line 5, in <module>
ExecuteMethodFromCommandLineAsArcGISTool('GeoEco.Connectivity.LarvalDispersal', 'LarvalDispersal', 'RunSimulation2012')
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 1089, in RunSimulation2012
maxRunTime=None)
File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\DataManagement\Processes.py", line 575, in ExecuteProgram
process.Execute()
File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\DataManagement\Processes.py", line 498, in Execute
Logger.RaiseException(RuntimeError(_(u'%(name)s returned exit code %(code)i, indicating failure.') % {u'name' : programName, u'code' : self.ExitCode}))
File "C:\Python27\ArcGIS10.3\lib\site-packages\GeoEco\Logging.py", line 104, in RaiseException
raise exception
RuntimeError: python.exe returned exit code 1, indicating failure.
Failed to execute (Run Larval Dispersal Simulation (2012 Algorithm)).
Failed at Thu Jun 02 09:49:09 2016 (Elapsed Time: 3.42 seconds)
# ---------------------------------------------------------------------------
# model.py
# Created on: 2016-06-02 10:05:59.00000
# (generated by ArcGIS/ModelBuilder)
# Description:
# ---------------------------------------------------------------------------
# Import arcpy module
import arcpy
# Load required toolboxes
arcpy.ImportToolbox("C:/Program Files/GeoEco/ArcGISToolbox/Marine Geospatial
Ecology Tools.tbx")
# Local variables:
reef_ids_img__2_ = "G:\\Steph\\Modeling\\Reef_Rasters\\reef_ids.img"
reef_cover_proportion_img__2_ =
"G:\\Steph\\Modeling\\Reef_Rasters\\reef_cover_proportion.img"
water_mask_img__2_ = "G:\\Steph\\Modeling\\Reef_Rasters\\water_mask.img"
Simulation__2_ = "G:\\Steph\\Modeling\\Simulation"
Updated_simulation_directory = Simulation__2_
Cache = "G:\\Steph\\Modeling\\Cache"
Updated_results_directory = Updated_simulation_directory
ResultsDirectory = "G:\\Steph\\Modeling\\ResultsDirectory"
# Process: Create Larval Dispersal Simulation From ArcGIS Rasters
arcpy.LarvalDispersalCreateSimulationFromArcGISRasters_GeoEco(Simulation__2_,
reef_ids_img__2_, reef_cover_proportion_img__2_, water_mask_img__2_, "false")
# Process: Load HYCOM GLBa0.08 Currents Into Larval Dispersal Simulation
arcpy.LarvalDispersalLoadHYCOMGLBa0084DEquatorialCurrentsIntoSimulation_GeoEco(Simulation__2_,
"9/20/2011", "10/20/2011", "0", "false", "CUBIC", "Del2a", "60", "120",
Cache)
# Process: Run Larval Dispersal Simulation (2012 Algorithm)
arcpy.LarvalDispersalRunSimulation2012_GeoEco(Updated_simulation_directory,
ResultsDirectory, "9/20/2011 1:57:50 PM", "3", "0.037931", "24", "", "",
"0.8", "false", "", "", "", "50")
- [mget-help] Error in Run Larval Dispersal Simulation (MGET 2.7): Undefined function or variable "ULfull", Ben Best, 06/02/2016
- RE: [mget-help] Error in Run Larval Dispersal Simulation (MGET 2.7): Undefined function or variable "ULfull", Jason Roberts, 06/02/2016
- Re: [mget-help] Error in Run Larval Dispersal Simulation (MGET 2.7): Undefined function or variable "ULfull", Stephanie Gad, 06/02/2016
- RE: [mget-help] Error in Run Larval Dispersal Simulation (MGET 2.7): Undefined function or variable "ULfull", Jason Roberts, 06/09/2016
- Re: [mget-help] Error in Run Larval Dispersal Simulation (MGET 2.7): Undefined function or variable "ULfull", Stephanie Gad, 06/02/2016
- RE: [mget-help] Error in Run Larval Dispersal Simulation (MGET 2.7): Undefined function or variable "ULfull", Jason Roberts, 06/02/2016
Archive powered by MHonArc 2.6.19.