<?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 Calculation within Field Calculator in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculation-within-field-calculator/m-p/426912#M5984</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the ndvi raster can be reclassed to 0 and 1 using your threshold, then your P * K calculation is simply the Times tool in the spatial analyst.&amp;nbsp; Now multiply that by your binary reclassed ndvi&amp;nbsp; and you will have P * K and 0 elsewhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 May 2017 04:08:10 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-05-11T04:08:10Z</dc:date>
    <item>
      <title>Raster Calculation within Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculation-within-field-calculator/m-p/426911#M5983</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I've run into a problem involving multiple rasters and using Raster Calculator for a Master's Thesis involving soil erodibility.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have an NDVI raster, which I've turned into an Int Raster, allowing me to build an attribute table of all the NDVI values within my study area. Now I am able to select by attribute pixel values above and below my threshold values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I was able to add a field for "Erodibility" of type double, but ran into the problem of actually calculating the field not being able to call upon other rasters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I literally need nothing from the NDVI raster except the location of the values above/below my threshold, which would be two separate calculations.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also have 2&amp;nbsp;other rasters of average precipitation (P) and soil erodibility values (K). I'd like to calculate within the NDVI raster, Erodibility = (P * K) using the selection of my threshold within the Field Calculator or using another method if known, or if I can Raster Calculate using a spatial component.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have tried changing using Raster to Polygon and doing it, but every time something gets lost or just leads to a dead end.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any help at all is much appreciated. Defense is coming soon!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 03:48:04 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculation-within-field-calculator/m-p/426911#M5983</guid>
      <dc:creator>CarlosGarcia4</dc:creator>
      <dc:date>2017-05-11T03:48:04Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculation within Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculation-within-field-calculator/m-p/426912#M5984</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the ndvi raster can be reclassed to 0 and 1 using your threshold, then your P * K calculation is simply the Times tool in the spatial analyst.&amp;nbsp; Now multiply that by your binary reclassed ndvi&amp;nbsp; and you will have P * K and 0 elsewhere.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 04:08:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculation-within-field-calculator/m-p/426912#M5984</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-11T04:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculation within Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculation-within-field-calculator/m-p/426913#M5985</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Also the threshold can be used in a simple Con statement, see:&amp;nbsp;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/con-.htm" title="http://desktop.arcgis.com/en/arcmap/latest/tools/spatial-analyst-toolbox/con-.htm"&gt;Con—Help | ArcGIS Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Con(Condition, calculation when true, optional calculation when false)&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example: Con(NDVI &amp;lt;= threshold, P * K)&lt;/P&gt;&lt;P&gt;This will generate a raster that will contain the&amp;nbsp;"Erodibility" when the NDVI have values lower and equal to the threshold, the rest of the cells will have NoData values.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 12:38:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculation-within-field-calculator/m-p/426913#M5985</guid>
      <dc:creator>XanderBakker</dc:creator>
      <dc:date>2017-05-11T12:38:29Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculation within Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculation-within-field-calculator/m-p/426914#M5986</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had a problem with my reclassify getting errors no matter what I did. The Con (Spatial &amp;nbsp;Analyst) tool saved the day.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you both for your help! Made everything so much easier!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 17:21:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculation-within-field-calculator/m-p/426914#M5986</guid>
      <dc:creator>CarlosGarcia4</dc:creator>
      <dc:date>2017-05-11T17:21:14Z</dc:date>
    </item>
    <item>
      <title>Re: Raster Calculation within Field Calculator</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculation-within-field-calculator/m-p/426915#M5987</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Carlos... sorry I wasn't clearer about the 'reclassification' step.&amp;nbsp; Basically if you query a raster for a 'condition' you get True (aka 1) or False (aka 0).&amp;nbsp; This produces the reclassification for you. &amp;nbsp;&lt;/P&gt;&lt;P&gt;For future reference, refer to these images.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/350715_raster01.png" style="width: 620px; height: 428px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now on to querying the grid and producing an 'indicator grid'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-2 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/350716_raster02.png" style="width: 620px; height: 297px;" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now this can be accomplished in a workflow as &lt;A href="https://community.esri.com/people/xander_bakker"&gt;xander_bakker&lt;/A&gt; has aptly shown by doing it in one step.&amp;nbsp; You can use the Con tool to query for the condition and return a 1 where the condition is true and 0 otherwise, or return a calculation where a condition is true and something else (ie 0) where it was false.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 May 2017 18:07:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculation-within-field-calculator/m-p/426915#M5987</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-05-11T18:07:11Z</dc:date>
    </item>
  </channel>
</rss>

