News and views on wildlife corridors, linkages, and connectivity
To be added to our mailing list of periodic site and tools updates, please contact Dan. Or you can subscribe to our blog's RSS feed, or follow us on Twitter.
Posted by
on
Oct 02 2009
1 comments
Two errors have come up repeatedly so far when using the CorridorDesigner toolbox:
PROBLEM: The Patch Modeling tool crashes, and gives a text string such as this:
Traceback Info:
File "C:\...\hab_patchConfigGeneral.py",
line 69, in groupPatches
suitPatches = groupIntoPatches(hsmAvg)
Error Info:
exceptions.RuntimeError:
An error was encountered while executing Reclassify.
Failed to execute (Reclassify).
SOLUTION: The Patch Modeling tool crashes in ArcGIS 9.2 when none of the service packs have been installed. To fix this bug (as well as a lot of others), you should downloaded the latest service pack for ArcGIS, service pack 4. This is available on ESRI's site (scroll down 1/3 of the way to download ArcGISDesktop92sp4.msp, the 176 MB file).
To determine if you have installed any of the service packs, open ArcMap, and go to Help > About ArcMap. If the build number is 1324, you haven't installed any service packs yet. See ESRI's site for more information.
PROBLEM: The Habitat Modeling tool crashes, and gives a text string such as this:
- PYTHON ERRORS: ---------------
Traceback Info:
File "H:\Dan\CORRID~1\CORRID~1\CORRID~1\CORRID~1\tools\ARIZON~1\
hab_hsmMain.py", line 63, in ?
hab_hsmGeoprocessing.reclassFactors(specDirPathString, specName, workspace, activeFactorDict, gp)
Error Info:
exceptions.RuntimeError:
An error was encountered while executing ReclassByASCIIFile.
("esriGeoAnalyst.GridEngine") Unable to initialize reclass table
Error in executing grid expression
Failed to execute (ReclassByASCIIFile).
SOLUTION: The Habitat Modeling tool crashes when the directory path to the tools begins with the same word in consecutive nested folders. In the case above, we see the string:
File "H:\Dan\CORRID~1\CORRID~1\CORRID~1\CORRID~1\tools\ARIZON~1\
hab_hsmMain.py"
The tools were in a saved in the path H:\Dan\Corridors\CorridorDesign\CorridorDesigner\ To fix this problem,
make sure that each of the folders begins with a different word. For example, you might have
CorridorDesigner_v02.H:\Dan\tools\CorridorDesigner\. Sometimes when you unzip the tools after downloading them from our website, you get two nested folders with the same name, such as this: C:\CorridorDesigner_Toolbox_v02\CorridorDesigner_Toolbox_v02\... If this happens, simply copy the tools to the uppermost directory, then delete the nested folder.
said on
Apr 24 2010
at
11:50 AM
Comments are moderated, so if you are trying to leave blog spam, it won't work!
Hello Corridor Design.
I am having trouble with creating the topographic position raster. I have done the tutorial, and it worked fine there. When I do it in my project file, I have tried using both DEM coverage at 30 meter resolution (1 arc second) and 10 meter resoultion (1/3 arc second), and I get the same results. The output raster file does not have the name I gave it, no matter what I name it, the new raster is called “slope_deg”. slope_deg does not seem to have four value and it does not create an attribute table. I got my DEM off of the USGS National Map seamless server, and it does not have attribute data, whereas your dem_m raster did. Is this the problem? And how can I fix it?
Thanks so much for your help. This is an amazing thing you have done, I feel like it makes GIS worthwhile.