mcvegas

ERROR 000865: Input ASCII raster file: 299_327_Intensity.asc does not exist.

Discussion created by mcvegas on Apr 12, 2011
Latest reply on Apr 25, 2017 by curtvprice
Hi everyone,
I built a model in model builder to clip one raster by another raster and return the area of the intersection.
It works fine in model builder but I need to add the model to some other code I am working on.
When I run the exported python script I get this error:

ERROR 000865: Input ASCII raster file: 299_327_Intensity.asc does not exist.
Failed to execute (ASCIIToRaster).

associated with this line of code:

    gp.ASCIIToRaster_conversion(Asc_Intens, Intensity1, "INTEGER")

The variable Asc_Intens points to the file "299_327_Intensity.asc" which certainly does exist.

Can anyone please tell me what is going on?
Kind Regards,
Craig Mason.

Outcomes