<?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: Raster Calculator Input in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-input/m-p/162142#M2299</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark, the Raster Calculator expression being reported in the dialog is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14142842348671103 jive_text_macro" jivemacro_uid="_14142842348671103"&gt;
&lt;P&gt;""w1dem &amp;lt;= "100""&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't directly compare a grid with a string in arcpy map algebra... based the screenshot of your model I'm guessing the expression&amp;nbsp; you are using is something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14142842497421747" jivemacro_uid="_14142842497421747"&gt;
&lt;P&gt;w1dem &amp;lt;= Value&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it looks like your output of Get Field Value is coming out as a string not float. The way to fix that is to modify your expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14142842542853327 jive_text_macro" jivemacro_uid="_14142842542853327"&gt;
&lt;P&gt;w1dem &amp;lt;= Float(Value)&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or set the output data type parameter of Get Field Value to Double instead of Any value. You may need to do both. I'm not at work to try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worth a try anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 26 Oct 2014 00:44:46 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2014-10-26T00:44:46Z</dc:date>
    <item>
      <title>Raster Calculator Input</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-input/m-p/162139#M2296</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a point feature class with three elevation value fields (High; Medium; Low - calculated from a previous process), which I&amp;nbsp; need to use as inputs in Raster Calculator, with the following expression: "DEM" &amp;lt;= Low &lt;EM&gt;elevation value in point FC above.&lt;/EM&gt; This calculation needs to be repeated for each elevation value (i.e. High; Medium; Low). Question: How can I input these field values into the Raster Calculator in ModelBuilder? The Help File mentions using Variables, but I don't know how to do this! Any guidance will be gratefully received. Thanks very much.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 19:14:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-input/m-p/162139#M2296</guid>
      <dc:creator>MarkNorris-Rogers</dc:creator>
      <dc:date>2014-10-23T19:14:27Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator Input</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-input/m-p/162140#M2297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did you read through the examples in &lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/A_quick_tour_of_advanced_techniques_in_ModelBuilder/002w0000005q000000/"&gt;modelbuilder advanced techniques&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; particularly the section on variable substitution and the use of lists?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 19:56:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-input/m-p/162140#M2297</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2014-10-23T19:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator Input</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-input/m-p/162141#M2298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Dan, I went through the help file and applied the Variable process as best as I understood it but I have not managed to get it right - see below:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Model_Error.png" class="jive-image image-1" src="https://community.esri.com/legacyfs/online/24400_Model_Error.png" style="width: 620px; height: 388px;" /&gt;&lt;/P&gt;&lt;P&gt;I have also attached a PDF. I cannot seem to get Raster Calculator to read the value it needs to run in the formula.&lt;/P&gt;&lt;P&gt;Any help would be greatly appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards,&lt;/P&gt;&lt;P&gt;Mark&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Oct 2014 20:37:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-input/m-p/162141#M2298</guid>
      <dc:creator>MarkNorris-Rogers</dc:creator>
      <dc:date>2014-10-23T20:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator Input</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-input/m-p/162142#M2299</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mark, the Raster Calculator expression being reported in the dialog is:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14142842348671103 jive_text_macro" jivemacro_uid="_14142842348671103"&gt;
&lt;P&gt;""w1dem &amp;lt;= "100""&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can't directly compare a grid with a string in arcpy map algebra... based the screenshot of your model I'm guessing the expression&amp;nbsp; you are using is something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code jive_text_macro _jivemacro_uid_14142842497421747" jivemacro_uid="_14142842497421747"&gt;
&lt;P&gt;w1dem &amp;lt;= Value&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So it looks like your output of Get Field Value is coming out as a string not float. The way to fix that is to modify your expression like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14142842542853327 jive_text_macro" jivemacro_uid="_14142842542853327"&gt;
&lt;P&gt;w1dem &amp;lt;= Float(Value)&lt;/P&gt;


&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or set the output data type parameter of Get Field Value to Double instead of Any value. You may need to do both. I'm not at work to try it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Worth a try anyway!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Oct 2014 00:44:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-input/m-p/162142#M2299</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2014-10-26T00:44:46Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculator Input</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-input/m-p/162143#M2300</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Curtis, Thanks so much - you are a star. Your suggestions worked! I made the output type Double, and added the Float parameter. It did not work initially, but then I saw that there were still " " quotes around the Value parameter in the expression. Once I removed those it all ran! Thanks again for your input.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 26 Oct 2014 12:45:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-input/m-p/162143#M2300</guid>
      <dc:creator>MarkNorris-Rogers</dc:creator>
      <dc:date>2014-10-26T12:45:45Z</dc:date>
    </item>
  </channel>
</rss>

