<?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 Only extract values that are the same in two raster dataset in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584939#M8485</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone.&lt;/P&gt;&lt;P&gt;I have two raster datasets with the same spatial resolution and extent. Both these datasets have values between 0 to 16.&lt;/P&gt;&lt;P&gt;How do I extract only the values that are the same in both datasets?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Ditlev Reventlow&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Jun 2015 12:47:57 GMT</pubDate>
    <dc:creator>DitlevReventlow</dc:creator>
    <dc:date>2015-06-11T12:47:57Z</dc:date>
    <item>
      <title>Only extract values that are the same in two raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584939#M8485</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everyone.&lt;/P&gt;&lt;P&gt;I have two raster datasets with the same spatial resolution and extent. Both these datasets have values between 0 to 16.&lt;/P&gt;&lt;P&gt;How do I extract only the values that are the same in both datasets?&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;P&gt;Ditlev Reventlow&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 12:47:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584939#M8485</guid>
      <dc:creator>DitlevReventlow</dc:creator>
      <dc:date>2015-06-11T12:47:57Z</dc:date>
    </item>
    <item>
      <title>Re: Only extract values that are the same in two raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584940#M8486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I mean where the cells in the two datasets have the same values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 12:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584940#M8486</guid>
      <dc:creator>DitlevReventlow</dc:creator>
      <dc:date>2015-06-11T12:49:14Z</dc:date>
    </item>
    <item>
      <title>Re: Only extract values that are the same in two raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584941#M8487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Ditlev,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could use the &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/spatial-analyst-toolbox/minus.htm"&gt;Minus tool &lt;/A&gt;to subtract the two rasters.&amp;nbsp; Then, perform an &lt;A href="http://desktop.arcgis.com/en/desktop/latest/tools/spatial-analyst-toolbox/extract-by-attributes.htm"&gt;Extract Values by Attributes&lt;/A&gt; for values that equal 0.&amp;nbsp; These represent the cells that have the same value.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 13:11:32 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584941#M8487</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2015-06-11T13:11:32Z</dc:date>
    </item>
    <item>
      <title>Re: Only extract values that are the same in two raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584942#M8488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think I might have gotten it to work now, but I am not completely sure.&lt;/P&gt;&lt;P&gt;I have written the following in raster calculator:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Con("bsh_lu_2012_e" == "bsh_lu_2001_e","bsh_lu_2012_e")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does this look right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess it is the same if I write:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Con("bsh_lu_2012_e" == "bsh_lu_2001_e","bsh_lu_2001_e")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I right about this conclusion?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 13:12:34 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584942#M8488</guid>
      <dc:creator>DitlevReventlow</dc:creator>
      <dc:date>2015-06-11T13:12:34Z</dc:date>
    </item>
    <item>
      <title>Re: Only extract values that are the same in two raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584943#M8489</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great Thanks, do you think that my approach with raster calculators works as well?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 13:15:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584943#M8489</guid>
      <dc:creator>DitlevReventlow</dc:creator>
      <dc:date>2015-06-11T13:15:24Z</dc:date>
    </item>
    <item>
      <title>Re: Only extract values that are the same in two raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584944#M8490</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Although they are identical, I think what you mean, is if the order of the rasters was switched in the equality check, the values would remain the same where the values are equal in the different time periods, but they would assume a different value where they are not equal.&amp;nbsp; So the question remains, what do you want to happen when the values are NOT equal&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;this == that&amp;nbsp;&amp;nbsp; then keep this OR that...doesn't matter&lt;/LI&gt;&lt;LI&gt;this != that&amp;nbsp;&amp;nbsp;&amp;nbsp; then keep ???? or do something else&lt;/LI&gt;&lt;LI&gt;this == that, keep this, otherwise give it 0&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Don't get hung up on the contents, focus on the logic&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 13:30:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584944#M8490</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-06-11T13:30:11Z</dc:date>
    </item>
    <item>
      <title>Re: Only extract values that are the same in two raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584945#M8491</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, your Con statement appears to be correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 13:32:12 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584945#M8491</guid>
      <dc:creator>JakeSkinner</dc:creator>
      <dc:date>2015-06-11T13:32:12Z</dc:date>
    </item>
    <item>
      <title>Re: Only extract values that are the same in two raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584946#M8492</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan,&lt;/P&gt;&lt;P&gt;I meant what is written,&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Con("bsh_lu_2012_e" == "bsh_lu_2001_e","bsh_lu_2012_e")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Con("bsh_lu_2012_e" == "bsh_lu_2001_e","bsh_lu_2001_e")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I am also intested in what happens if you turn around the rasters in the equality check. I just tried to play around in raster calculator. As far as i could see all these 4 statements:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Con("bsh_lu_2012_e" == "bsh_lu_2001_e","bsh_lu_2012_e")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Con("bsh_lu_2012_e" == "bsh_lu_2001_e","bsh_lu_2001_e")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Con("bsh_lu_2001_e" == "bsh_lu_2012_e","bsh_lu_2012_e")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Con("bsh_lu_2001_e" == "bsh_lu_2012_e","bsh_lu_2001_e")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;all yeld the same output raster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want the output raster to have no value where the two rasters differ. This is the case for all the 4 statements above as far as I can see(when I right click and select "identify" on a cell that doesn't have the same value, there is simply nothing stated) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am not completely sure what you mean in the three examples you have given. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 15:10:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584946#M8492</guid>
      <dc:creator>DitlevReventlow</dc:creator>
      <dc:date>2015-06-11T15:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Only extract values that are the same in two raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584947#M8493</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Con("bsh_lu_2001_e" == "bsh_lu_2012_e","bsh_lu_2001_e")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;just leave the result the same if it isn't true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Con("bsh_lu_2001_e" == "bsh_lu_2012_e", "bsh_lu_2001_e", 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Con("bsh_lu_2012_e" == "bsh_lu_2001_e", "bsh_lu_2001_e", 0)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;will set the value to " 0 " IF they aren't equal&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Con/009z00000005000000/"&gt;Con statement help&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Conditional_evaluation_with_Con/009z00000008000000/"&gt;Con statement how it works&lt;/A&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;That is what I was trying to get you to think about .... what to do if they weren't equal ...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 15:37:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584947#M8493</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-06-11T15:37:27Z</dc:date>
    </item>
    <item>
      <title>Re: Only extract values that are the same in two raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584948#M8494</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dan, &lt;/P&gt;&lt;P&gt;Thank you for this. I don't want the "not-similar" data to be set to 0, I just want them not to be included in the output raster.Then I guess that it is fine to write:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Con("bsh_lu_2012_e" == "bsh_lu_2001_e","bsh_lu_2012_e")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Right? (just wanted to make sure because this is the statement I have used)&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Jun 2015 15:52:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584948#M8494</guid>
      <dc:creator>DitlevReventlow</dc:creator>
      <dc:date>2015-06-11T15:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: Only extract values that are the same in two raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584949#M8495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, when you don't provide a "false expression" to Con, and the first argument resolves to false, the output cell value will be NoData.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jun 2015 03:18:38 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584949#M8495</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2015-06-13T03:18:38Z</dc:date>
    </item>
    <item>
      <title>Re: Only extract values that are the same in two raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584950#M8496</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you are doing this in the Raster Calculator explore your options&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt; Con("x4" == "x2",5,"x4") F:\Test\x5&lt;/STRONG&gt;... if x4 is equal to x2 give it a value of 5, otherwise keep x4's values&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;From the Results Window&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Messages&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Executing: RasterCalculator &lt;STRONG&gt;Con("x4" == "x2",5,"x4") F:\Test\x5&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Start Time: Fri Jun 12 23:46:41 2015&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Con(Raster(r"x4") == Raster(r"x2"),5,Raster(r"x4"))&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Succeeded at Fri Jun 12 23:46:41 2015 (Elapsed Time: 0.11 seconds)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note the addition of Raster around the input raster layer names&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Jun 2015 03:49:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584950#M8496</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2015-06-13T03:49:26Z</dc:date>
    </item>
    <item>
      <title>Re: Only extract values that are the same in two raster dataset</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584951#M8497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There's also the Diff tool.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 27 Jun 2015 05:36:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/only-extract-values-that-are-the-same-in-two/m-p/584951#M8497</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2015-06-27T05:36:10Z</dc:date>
    </item>
  </channel>
</rss>

