<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: How to use Deg2rad function? in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/how-to-use-deg2rad-function/m-p/301662#M23445</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the link is&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000ns000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000ns000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;the error is associated with your small-case cos instead of the capitalized Cos (always specify the exact error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Inras would be your input raster and Outras would be your output raster...and so on&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 04 May 2011 05:37:45 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2011-05-04T05:37:45Z</dc:date>
    <item>
      <title>How to use Deg2rad function?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-use-deg2rad-function/m-p/301661#M23444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear All&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I need to convert my slope raster from Degree to Radian.the instruction is in the help,as follow:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; import math&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; deg2rad = math.pi / 180.0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt; from arcpy.sa import *&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;gt;&amp;gt;&amp;gt;outras = cos ( inras * deg2rad )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;but it give me an error.I don't know how to introduce inras and outras.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I really appreciate if some one could explain the procedure.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thx&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 01:36:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-use-deg2rad-function/m-p/301661#M23444</guid>
      <dc:creator>majidMoradmand</dc:creator>
      <dc:date>2011-05-04T01:36:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to use Deg2rad function?</title>
      <link>https://community.esri.com/t5/python-questions/how-to-use-deg2rad-function/m-p/301662#M23445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;the link is&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000ns000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000ns000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;the error is associated with your small-case cos instead of the capitalized Cos (always specify the exact error)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Inras would be your input raster and Outras would be your output raster...and so on&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 May 2011 05:37:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/how-to-use-deg2rad-function/m-p/301662#M23445</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-05-04T05:37:45Z</dc:date>
    </item>
  </channel>
</rss>

