Available with Spatial Analyst license.
The output values from certain trigonometric tools are in radians. To convert them to degrees, the values need to be multiplied by a conversion factor of 180/pi, or approximately 57.2958.
In Python, this conversion can be done in the expression directly, or you can define a variable to store the value once and reuse it as needed. Using the ACos tool as an example, the syntax could be in the following form:
>>> import math >>> from arcpy.sa import * >>> OutRas = ACos (InRas) * 180.0 / math.pi
>>> import math >>> rad2deg = 180.0 / math.pi >>> from arcpy.sa import * >>> OutRas = ACos (InRas) * rad2deg
The following illustrations demonstrate the results of converting the output values from radians to degrees.
Examples of converting trigonometric outputs in radians to degrees
Illustration and Python syntax