<?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 script to extract no change pixels from temporal land cover data in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/raster-calculator-script-to-extract-no-change/m-p/1200437#M65245</link>
    <description>&lt;P&gt;Con("2020.tif" == "2021.tif", "2020.tif")&amp;nbsp; # condition, true, false but in this case if not true it will be nodata&lt;/P&gt;&lt;P&gt;If no Input false raster or constant value is specified, NoData will be assigned to those cells that do not result in true from the expression.&lt;/P&gt;</description>
    <pubDate>Mon, 08 Aug 2022 16:15:13 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2022-08-08T16:15:13Z</dc:date>
    <item>
      <title>Raster calculator script to extract no change pixels from temporal land cover data</title>
      <link>https://community.esri.com/t5/python-questions/raster-calculator-script-to-extract-no-change/m-p/1200424#M65244</link>
      <description>&lt;P&gt;Hello all,&lt;/P&gt;&lt;P&gt;I need some help in creating a raster calculator syntax to extract areas of no change between 2 temporal land cover raster. One is for 2020 and the other for 2021, my idea was to set areas of change as null using setNull.&lt;/P&gt;&lt;P&gt;I started by using this 2020.tif == 2021.tif which gave a boolean raster (0 &amp;amp; 1) for areas of change and no change, however I would like the output to reflect the land cover classes that remained the same between both years as against a boolean result.&lt;/P&gt;&lt;P&gt;I tried using setNull(2020.tif, 2021.tif, 2020.tif != 2021.tif) but I keep getting errors on the syntax.&lt;/P&gt;&lt;P&gt;Would be grateful on some help on this syntax.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 15:49:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/raster-calculator-script-to-extract-no-change/m-p/1200424#M65244</guid>
      <dc:creator>Saisai</dc:creator>
      <dc:date>2022-08-08T15:49:58Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator script to extract no change pixels from temporal land cover data</title>
      <link>https://community.esri.com/t5/python-questions/raster-calculator-script-to-extract-no-change/m-p/1200437#M65245</link>
      <description>&lt;P&gt;Con("2020.tif" == "2021.tif", "2020.tif")&amp;nbsp; # condition, true, false but in this case if not true it will be nodata&lt;/P&gt;&lt;P&gt;If no Input false raster or constant value is specified, NoData will be assigned to those cells that do not result in true from the expression.&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 16:15:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/raster-calculator-script-to-extract-no-change/m-p/1200437#M65245</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2022-08-08T16:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator script to extract no change pixels from temporal land cover data</title>
      <link>https://community.esri.com/t5/python-questions/raster-calculator-script-to-extract-no-change/m-p/1200455#M65246</link>
      <description>&lt;P&gt;Thanks a lot Dan!&lt;/P&gt;&lt;P&gt;This gave me the result I require.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Saisai&lt;/P&gt;</description>
      <pubDate>Mon, 08 Aug 2022 16:28:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/raster-calculator-script-to-extract-no-change/m-p/1200455#M65246</guid>
      <dc:creator>Saisai</dc:creator>
      <dc:date>2022-08-08T16:28:40Z</dc:date>
    </item>
  </channel>
</rss>

