Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

I need to use the Vector ruggedness measure (VRM) tool available from http://arcscripts.esri.com/details.asp?dbid=15423. However, I am using ArcGIS 10.2 for Desktop and these tools are made for 9.0, 9.1 and 9.3 only. I have tried to run this tool regardless and get the error:

Traceback (most recent call last): File "C:\Users\jc221340\Documents\project\Processed data\My_tools\Downloaded\ruggedness.py", line 20, in gp.AddToolbox("C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Spatial Analyst Tools.tbx") RuntimeError: Object: Toolbox C:/Program Files/ArcGIS/ArcToolbox/Toolboxes/Spatial Analyst Tools.tbx does not exist

Failed to execute (Ruggedness(VRM)).

How can I use this tool?

share|improve this question

2 Answers 2

Since you are using v10.2 it is looking for the path of the Spatial Analyst toolbox which has changed directory locations slightly from v9:

To update, open the ruggedness.py file using Notepad or some other text editor and change line 20 path to something like this:

C:\Program Files (x86)\ArcGIS\Desktop10.2\ArcToolbox\Toolboxes\Spatial Analyst Tools.tbx
share|improve this answer
1  
Problem solved, thanks! –  jc22 Aug 13 '14 at 23:11
1  
@jc22 Since this solved your problem I think you should click the green Accept button to reward the answerer. –  PolyGeo Dec 15 '14 at 23:38

I also met problem when executing VRM on ArcGIS 10.1. The answer above was helpful but not enough. The VRM tool generated aspect, slope, x, y, z...etc files, and then showed the completion of process. The following methods such as generation of ruggedness layer and deletion of intermediate files were skipped and ignored.

The problem was solved by using "Benthic Terrain Modeler" instead to calculate VRM.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.