Dataset exist and I am able to get statistics from ArcGIS python window. But it failed as a script with error: ERROR 000865: Input raster: C:\temp\ras does not exist. I have tried following suggestions:
http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//002z0000000r000000
but to no avail.Please suggest how to handle this
import arcpy
stat = arcpy.GetRasterProperties_management(r'C:\temp\ras', "MEAN")
avg = stat.getOutput(0)
print avg