Cannot convert raster to ASCII

1608
2
10-28-2012 07:31 AM
SudeshnaGhosh
New Contributor
Hi,

Can someone help with errors while converting from raster to ASCII. I am simply trying to convert some raster images to ascii (.asc format) so that I can import it to Idrisi. However, while working with the "Raster to ASCII" in the conversion tool in ArcGIS, it is giving me error. I dont know why. At one moment it worked on two rasterfiles with short name, but minutes later it wouldn't work on other raster images. Is there any bug? or should I shorten the raster image name? I have to clue how to solve this.

Please let me know if someone can figure out what the problem is.

Thanks,
Sudeshna
0 Kudos
2 Replies
JeffreySwain
Esri Regular Contributor
What error message are you receiving?  What kinds of names are you using?  Where is the data being output to?  What version of ArcMap are you using?
0 Kudos
DavidHockman-Wert
New Contributor II
I just had the same problem.  I was running a Python script that I wrote months ago, and has run fine for a year, when we discovered that the script is now crashing on the arcpy.RasterToASCII_conversion tool. 

The ArcGIS Help clearly shows an example where the "in_raster" can be only the raster name, not the path.  http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//001200000005000000

But the tool was crashing with only the raster name.  When I tested the same line of code with the full path as the "in_raster", it worked!

So either ArcPy is not adding the workspace to the raster filename, or ESRI changed the way the parameter needs to be input in Raster to ASCII (conversion).  Could this be a service pack issue?  This other thread mentions having trouble with a script only after installing sp5: http://forums.arcgis.com/threads/69956-ArcGIS-Desktop-Crashes-using-arcpy.FeatureClassToFeatureClass...

Very annoyed with this strange glitch.

Dave
0 Kudos