Bump Mapping Errors
January 24 2011 |
6 comments
Categories:
Map Data
I am working on creating a bump map for a school project and am having some errors being thrown in the second part of the script.
I set the working directory and scratch directory to the ToolData and Scratch folders in G:\Geog467\BumpMapping\BumpMapTools.
I ran the tool using the following parameters on the provided data:
Input Raster: confier_only
Cones or Domes: Cones
Vegetation Density: 18
Vegetation Radius: 50
Vegetation Height: 200
Input Raster: craterlakedem
Output Raster: BumpMapTools\ToolData\BMtest
The model runs through the first part of the script, begins to run the second and the following error occurs:
"Failed to execute. Parameters are not valid.
ERROR 000865: Input raster: G:\Geog467\BumpMapping\BumpMapTools\Scratch\ppat1 does not exist.
Failed to execute (GetRasterProperties).
:
Failed to execute (Bump Map - Part 2).
End Time: Mon Jan 24 16:17:46 2011 (Elapsed Time: 1.00 seconds)
Failed to execute (BumpMapModel).
End Time: Mon Jan 24 16:17:46 2011 (Elapsed Time: 9.00 seconds)"
I create a ppat1 folder in the Scratch Directory and run the model as I did the first time. The model runs through the first part of the script, begins the second part and the following error occurs:
"Failed to execute. Parameters are not valid.
ERROR 000860: Input raster: is not the type of Composite Geodataset, or does not exist.
Failed to execute (GetRasterProperties).
:
Failed to execute (Bump Map - Part 2).
End Time: Mon Jan 24 16:20:47 2011 (Elapsed Time: 1.00 seconds)
Failed to execute (BumpMapModel).
End Time: Mon Jan 24 16:20:47 2011 (Elapsed Time: 6.00 seconds)"
I do not understand what the error means by the input raster is not the type of Composite Geodataset, or does not exist. Does anyone have any suggestions?
Thanks for your time,
Andy
Mapping Center Answer:
If the script fails, it would unable to delete the data from scratch folder so if you run it a second time it will fail. You have to delete everything in the \scratch folder in the event that the script fails before executing it again.
Moreover, your data should have same projection, as x,y and z units need to be in same units to generate cones/domes. In case you found specific issues in running tool and can be reproducible, send us another question along with data and we can take a look.
I'm also having problem. My scratch workspace is empty, I've set my geoprocessing environment to the ToolData folder and my scratch accordingly (http://www.fgcartographix.com/TEMP/env.jpg) and I don't have spaces in my path name. My input dem and vegetation mask are in the same projection, have the exact same extent and resolution and I'm well above the minimal radius when creating domes (5m resampled rasters and trying to create 50m domes). The tool demands a Raster Layer so my dem is always in my TOC. I tried too with the sample data of the tool without success.
I have an error message when I click on the check mark to check value, but the message in empty and the dem input box becomes red (http://www.fgcartographix.com/TEMP/parameters.jpg).
I don't know what I've done wrong. The tool was created with 9.3 and I have ArcEditor 10.0, but python scripts should work...
Any ideas?
For now, I've created a random raster, select all values > 0.95, extract by mask with my veg mask and then use the Focal Statistics tool to create dome-like shape. I works, but not the way the tool should ;)
Thanks!
If you would like to post a comment, please login.
Start Time: Tue Apr 12 11:31:11 2011
Executing (Bump Map - Part 1): BumpMapPart1 calc3_ProjectRaster Domes 20 1 1 %scratchworkspace%\ppat%i%
Start Time: Tue Apr 12 11:31:11 2011
Running script BumpMapPart1...
Generating point pattern...
ERROR 010240: Could not save raster dataset to E:\bump\Scratch\g_g_g3 with output format GRID.
Failed to execute (SingleOutputMapAlgebra).
Failed to execute (Bump Map - Part 1).
End Time: Tue Apr 12 11:31:13 2011 (Elapsed Time: 2.00 seconds)
Failed to execute (BumpMapModel).
End Time: Tue Apr 12 11:31:13 2011 (Elapsed Time: 2.00 seconds)
Tried all the other 'fixes'. Not sure why it wont like a grid, but i've tried using .img as an output and get the same error.