<?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 Set a Raster's pixels to NoData using a separate raster in ArcGIS Pro SDK Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-a-raster-s-pixels-to-nodata-using-a-separate/m-p/1207529#M8668</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a full Landsat scene that contains the usual bands (RGB NIR etc) as well as a seperate QA cloud mask band with the exact same dimensions and pixel size. I am trying to set all pixels in the full Landsat scene to NoData (-1) wherever a value of 0, 2, or 3 exist in the cloud mask.&lt;/P&gt;&lt;P&gt;Are there any efficient approaches to this in the SDK? I came across the Mask Function (not the GP tool) in Pro, but from what I understand these are not available in the SDK. I also do not have access to Spatial Analyst to use Extract By Mask.&lt;/P&gt;&lt;P&gt;I've currently implemented a a for loop that basically iterates the cloud mask and whenever the value is found, updates the same pixel in the full Landsat scene, but it seems suboptimal to me.&lt;/P&gt;&lt;P&gt;I was looking at the GetNoDataMask and SetNoDataMask methods but as far as I'm aware my raw tiffs do not have these encoded.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
    <pubDate>Tue, 30 Aug 2022 02:52:56 GMT</pubDate>
    <dc:creator>LewisTrotter</dc:creator>
    <dc:date>2022-08-30T02:52:56Z</dc:date>
    <item>
      <title>Set a Raster's pixels to NoData using a separate raster</title>
      <link>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-a-raster-s-pixels-to-nodata-using-a-separate/m-p/1207529#M8668</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I have a full Landsat scene that contains the usual bands (RGB NIR etc) as well as a seperate QA cloud mask band with the exact same dimensions and pixel size. I am trying to set all pixels in the full Landsat scene to NoData (-1) wherever a value of 0, 2, or 3 exist in the cloud mask.&lt;/P&gt;&lt;P&gt;Are there any efficient approaches to this in the SDK? I came across the Mask Function (not the GP tool) in Pro, but from what I understand these are not available in the SDK. I also do not have access to Spatial Analyst to use Extract By Mask.&lt;/P&gt;&lt;P&gt;I've currently implemented a a for loop that basically iterates the cloud mask and whenever the value is found, updates the same pixel in the full Landsat scene, but it seems suboptimal to me.&lt;/P&gt;&lt;P&gt;I was looking at the GetNoDataMask and SetNoDataMask methods but as far as I'm aware my raw tiffs do not have these encoded.&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 30 Aug 2022 02:52:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-sdk-questions/set-a-raster-s-pixels-to-nodata-using-a-separate/m-p/1207529#M8668</guid>
      <dc:creator>LewisTrotter</dc:creator>
      <dc:date>2022-08-30T02:52:56Z</dc:date>
    </item>
  </channel>
</rss>

