mike06_m

How to use Deg2rad function?

Discussion created by mike06_m on May 3, 2011
Latest reply on May 3, 2011 by Dan_Patterson
Dear All
I need to convert my slope raster from Degree to Radian.the instruction is in the help,as follow:
>>> import math
>>> deg2rad = math.pi / 180.0
>>> from arcpy.sa import *
>>>outras = cos ( inras * deg2rad )
but it give me an error.I don't know how to introduce inras and outras.
I really appreciate if some one could explain the procedure.
thx

Outcomes