I am really new to ArcPy.

Here is my script:

# Name: Times_Ex_02.py
# Description: Multiplies the value of the input raster by a constant
#Requirements: Spatial Analyst Extension
# Import system modules and check extension
import arcpy
from arcpy import env
from arcpy.sa import *

# Set environment settings
env.workspace = "C:\Users\srchang\Desktop\outputshp"

# Set local variables
inRaster1 = arcpy.Raster("tifdodge10m")

# Execute Times to multiply inRaster1 by constant
outTimes = Times(inRaster1, 50.5443234836703)

# Save the output 

which returns the following error: ERROR 000732: Input Raster: Dataset tifdodge10m does not exist or is not supported.

I am thinking it is something to do with my path but i'm not sure

  • You didn't specify a suffix, so the name references a Grid, but the "outputshp" folder is not an ArcInfo workspace (with an INFO directory).
    – Vince
    Commented Dec 7, 2016 at 1:28

1 Answer 1


Your path names are invalid.

In place of:

env.workspace = "C:\Users\srchang\Desktop\outputshp"

try using:

env.workspace = r"C:\Users\srchang\Desktop\outputshp"

and do the same for outTimes.save()

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.