Ask A Cartographer

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.

more errors posted by Zack Hart on Apr 12 2011 8:32AM
Executing: BumpMapModel calc3_ProjectRaster Domes 20 1 1 DEM E:\bump\Scratch\a.img
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.
re:more errors posted by Rajinder Nagi on Apr 13 2011 3:36PM
Have you set the scratch and current workspace from the environment settings of the tool? You can try to delete the content of scratch folder and closing/opening the ArcMap.Tool doesn't have any issues with the GRID format. I have tested that and it worked fine for me. In case you still have issues, post a new question on Ask a Cartographer along with the data and will take a look. Hope this helps!
additional thoughts posted by Andrew Stauffer on Apr 13 2011 10:01PM
Through my use of the tool, I have noticed (not exactly pin-pointed) that sometimes the tool has problems when the NLCD and DEM do not have the exact same extent. I have solved this by projecting both raster, then clipping them to my desired size such that the clip is completely contained by the smallest extent of both rasters (ie, there is no NoData cells that will be captured in the clipped area). Again, not sure if this really causes errors, just something that I have noticed.
re:additional thoughts posted by Rajinder Nagi on Apr 19 2011 3:17PM
Ideally, DEM and vegetation data should have the same extent to avoid the extra processing outside the desired extent. e.g. if vegetation has bigger extent than DEM, domes/cones will be generated for extent of vegetation surface but while combining this to DEM which has smaller extent, it will take NoData values outside the DEM extent. In this tool you would like to generate the cones/domes where both elevation and vegetation surface has same extent. However, it should not have issues, if DEM has bigger extent than the vegetation surface except that it will take extra processing time to smooth the DEM in case that required depending upon the parameters.

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 have problems too... posted by Francois Turcotte-Goulet on Apr 4 2012 5:43AM
Hi!

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!
re:I have problems too... posted by Rajinder Nagi on Apr 5 2012 10:49AM
I tried in ArcGIS 10.0 and couldn't reproduce the error you are getting. Maybe try to give the full path to the DEM instead of the layer. Also check if you have read/write permissions on your working directory. In case you have access to another machine, try running the tool there and see if you are getting the same error. Hope this helps!

If you would like to post a comment, please login.

Contact Us | Legal | Privacy |