<?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: Help with Raster Calculator in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466907#M20567</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;(I rarely use the raster calculator, opting for python instead)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;IMHO Raster Calculator is very powerful inside Model Builder, I think that's the&amp;nbsp;most appropriate&amp;nbsp;environment for it. As I described above it really maps to Python, all the operators are Python. The only differences is strings in the proper context get wrapped with Raster() for you as I described, which is handy in that environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My students use Raster Calculator inside Model Builder for a classic weighted layer exercise. They have to do a binary (sieve mapping) model followed by a weighted overlay model. (I am mean and don't let them use the weighted overlay tool so they can see how weighted combinations work.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Oct 2017 02:55:58 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2017-10-30T02:55:58Z</dc:date>
    <item>
      <title>Help with Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466901#M20561</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've been trying to learn the raster calculator but have been stuck on this equation for a couple days. I am in an intro to python class but I still do not understand it all that well.&amp;nbsp; Can anyone help??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is the equation I need to put in and this is what I have in the calculator.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-1 jive-image" src="https://community.esri.com/legacyfs/online/381823_pastedImage_1.png" style="width: auto; height: auto;" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-2 jive-image" src="https://community.esri.com/legacyfs/online/381836_pastedImage_2.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;I've been changing things around a lot but nothing seems to work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it helps this is the error I keep having&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG class="image-3 jive-image" src="https://community.esri.com/legacyfs/online/381837_pastedImage_3.png" style="width: auto; height: auto;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 00:28:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466901#M20561</guid>
      <dc:creator>AlecBiles</dc:creator>
      <dc:date>2017-10-30T00:28:31Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466902#M20562</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;power is normally ** not ^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 00:49:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466902#M20562</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-30T00:49:47Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466903#M20563</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Unfortunately that did not work, any other suggestions?&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 01:12:33 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466903#M20563</guid>
      <dc:creator>AlecBiles</dc:creator>
      <dc:date>2017-10-30T01:12:33Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466904#M20564</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;well I am not quite sure why you had the %... % in the first case... and in the other dialog you have the grid name within a list ... ie square brackets [ grid name ] perhaps get rid of the brackets as well, it may be failing on the 'list'... and check the raster calculator to see if they do use the ^ operator for power (**).&amp;nbsp; There are so many 'standards' it is hard to keep track of them (I rarely use the raster calculator, opting for python instead)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 01:20:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466904#M20564</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-30T01:20:16Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466905#M20565</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Alec, brackets denote lists in Python. You need to use parentheses even though your math equation uses brackets. Dan is correct that ** is used for exponentiation in Python, not ^ which is a bitwise not (not what you want to do!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Dan, I'm pretty sure the "%raster%" syntax is because&amp;nbsp;Alec is using the &lt;A href="https://community.esri.com/space/2091"&gt;Spatial Analyst&lt;/A&gt; Raster Calculator tool inside &lt;A href="https://community.esri.com/group/1218"&gt;Model Builder&lt;/A&gt;.&amp;nbsp; The values inside %s are model variables. The double quotes around that are critical, as this delivers something like "ingrid" to the Raster Calculator tool, which then will see the string and interpret as a raster name, and convert this to a raster object with the Raster() function: Raster("ingrid") before it runs using python. You can see the Python expression in the messages when the tool executes above.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 02:38:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466905#M20565</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-10-30T02:38:49Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466906#M20566</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Curtis... didn't see modelbuilder mentioned, but I suspect that would account for it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 02:48:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466906#M20566</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-30T02:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466907#M20567</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;(I rarely use the raster calculator, opting for python instead)&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;IMHO Raster Calculator is very powerful inside Model Builder, I think that's the&amp;nbsp;most appropriate&amp;nbsp;environment for it. As I described above it really maps to Python, all the operators are Python. The only differences is strings in the proper context get wrapped with Raster() for you as I described, which is handy in that environment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My students use Raster Calculator inside Model Builder for a classic weighted layer exercise. They have to do a binary (sieve mapping) model followed by a weighted overlay model. (I am mean and don't let them use the weighted overlay tool so they can see how weighted combinations work.)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 02:55:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466907#M20567</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-10-30T02:55:58Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466908#M20568</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I should have clarified... I use numpy instead &lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 03:06:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466908#M20568</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-10-30T03:06:32Z</dc:date>
    </item>
    <item>
      <title>Re: Help with Raster Calculator</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466909#M20569</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Could you test the following expression?&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;EM&gt;(0.4+1)*((("%FlowAcc%")*(30/22.1))**0.4)*(((Sin(("%Slope%")*(0.01745))/(0.09))**1.3))&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;or the below one&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;EM&gt;(0.4+1)*(Float((("%FlowAcc%")*(30/22.1))**0.4))*(((Sin(("%Slope%")*(0.01745))/(0.09))**1.3))&lt;/EM&gt;&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Oct 2017 05:00:55 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/help-with-raster-calculator/m-p/466909#M20569</guid>
      <dc:creator>JayantaPoddar</dc:creator>
      <dc:date>2017-10-30T05:00:55Z</dc:date>
    </item>
  </channel>
</rss>

