<?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 and Con statement in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/raster-calculator-and-con-statement/m-p/1268840#M66783</link>
    <description>&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;Unfortunately it didnt work, it just gave one value in the resulting raster&lt;/P&gt;&lt;P&gt;yes that is the resulting equation im after !&lt;/P&gt;&lt;P&gt;for example&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - (1*0.2*0.8*1*0.4) = 0.936&lt;/P&gt;&lt;P&gt;but what I have is integers&lt;/P&gt;&lt;P&gt;1- (1 *20 * 80 * 1 *40)&lt;/P&gt;&lt;P&gt;so if the value is a 1, Id like to keep it as a 1 and if its higher than 1 Id like to divide it by 100 to make it a decimal.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 17 Mar 2023 00:41:47 GMT</pubDate>
    <dc:creator>JasmineSpring</dc:creator>
    <dc:date>2023-03-17T00:41:47Z</dc:date>
    <item>
      <title>Raster calculator and Con statement</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/raster-calculator-and-con-statement/m-p/1268374#M66705</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am having troubles building my expression in raster calculator&lt;/P&gt;&lt;P&gt;I am trying to work around not being able to use decimals in reclassification. I am multiplying multiple rasters, If the values is 1, Id like it to stay a 1 and all other values be divided by 100 before I multiply them. After mutliply the rasters I want to take the value from 1.&lt;/P&gt;&lt;P&gt;1 - (Con("Grid1" = 1 ,1 , "Grid1" /100 )* Con("Grid2 " = 1 ,1,"Grid2" /100))&lt;/P&gt;&lt;P&gt;Hope that makes sense&lt;/P&gt;&lt;P&gt;Thank you!!&lt;/P&gt;&lt;P&gt;Jasmine&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 02:19:09 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/raster-calculator-and-con-statement/m-p/1268374#M66705</guid>
      <dc:creator>JasmineSpring</dc:creator>
      <dc:date>2023-03-16T02:19:09Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator and Con statement</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/raster-calculator-and-con-statement/m-p/1268387#M66707</link>
      <description>&lt;P&gt;The equals operator is "==" not "=".&lt;/P&gt;&lt;P&gt;So you should use:&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="2"&gt;1 - (Con("Grid1" == 1, 1 , "Grid1" / 100 ) * Con("Grid2 " == 1, 1, "Grid2" / 100))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;A worked example assuming Grid1 == 1 and Grid2 == 2&lt;/P&gt;&lt;P&gt;expression evaluates to: 1 - 1 * 0.02&amp;nbsp;&lt;/P&gt;&lt;P&gt;output: 0.98&lt;/P&gt;</description>
      <pubDate>Thu, 16 Mar 2023 05:01:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/raster-calculator-and-con-statement/m-p/1268387#M66707</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2023-03-16T05:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator and Con statement</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/raster-calculator-and-con-statement/m-p/1268840#M66783</link>
      <description>&lt;P&gt;Thank you for your help!&lt;/P&gt;&lt;P&gt;Unfortunately it didnt work, it just gave one value in the resulting raster&lt;/P&gt;&lt;P&gt;yes that is the resulting equation im after !&lt;/P&gt;&lt;P&gt;for example&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 - (1*0.2*0.8*1*0.4) = 0.936&lt;/P&gt;&lt;P&gt;but what I have is integers&lt;/P&gt;&lt;P&gt;1- (1 *20 * 80 * 1 *40)&lt;/P&gt;&lt;P&gt;so if the value is a 1, Id like to keep it as a 1 and if its higher than 1 Id like to divide it by 100 to make it a decimal.&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 17 Mar 2023 00:41:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/raster-calculator-and-con-statement/m-p/1268840#M66783</guid>
      <dc:creator>JasmineSpring</dc:creator>
      <dc:date>2023-03-17T00:41:47Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator and Con statement</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/raster-calculator-and-con-statement/m-p/1269302#M66862</link>
      <description>&lt;P&gt;Try explicitly using decimals&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="2"&gt;1.0 - (Con("Grid1" == 1, 1.0, "Grid1" / 100.0 ) * Con("Grid2 " == 1, 1.0, "Grid2" / 100.0))&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Or possibly using the Float function:&lt;/P&gt;&lt;P&gt;&lt;FONT face="andale mono,times" size="2"&gt;1.0 - (Con("Grid1" == 1, 1.0, Float("Grid1") / 100.0 ) * Con("Grid2 " == 1, 1.0, Float("Grid2") / 100.0))&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 Mar 2023 21:41:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/raster-calculator-and-con-statement/m-p/1269302#M66862</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2023-03-19T21:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator and Con statement</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/raster-calculator-and-con-statement/m-p/1276057#M67651</link>
      <description>&lt;P&gt;worked perfectly!! thank you so much&lt;/P&gt;</description>
      <pubDate>Thu, 06 Apr 2023 03:02:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/raster-calculator-and-con-statement/m-p/1276057#M67651</guid>
      <dc:creator>JasmineSpring</dc:creator>
      <dc:date>2023-04-06T03:02:25Z</dc:date>
    </item>
  </channel>
</rss>

