<?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: Change pixel value in raster file in Data Management Questions</title>
    <link>https://community.esri.com/t5/data-management-questions/change-pixel-value-in-raster-file/m-p/634022#M35844</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The trick to processing all the rasters is to employ an&lt;EM&gt; Iterator&lt;/EM&gt; in Modelbuilder. This will allow the looping through of each raster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the &lt;EM&gt;Modelbuilder Iterators&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/a-quick-tour-of-using-iterators-for-iteration-looping-.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/a-quick-tour-of-using-iterators-for-iteration-looping-.htm"&gt;A quick tour of using iterators—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/accessing-iterators-in-modelbuilder.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/accessing-iterators-in-modelbuilder.htm"&gt;Accessing iterators in ModelBuilder—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/example-of-using-an-iterator-in-a-model.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/example-of-using-an-iterator-in-a-model.htm"&gt;Example of using an iterator in a model—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, however, if you are conversant with &lt;EM&gt;Python&lt;/EM&gt;, that would probably be more effective than using &lt;EM&gt;Modelbuilder&lt;/EM&gt; (Modelbuilder can be a bit quirky).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Jul 2017 17:25:41 GMT</pubDate>
    <dc:creator>ChrisDonohue__GISP</dc:creator>
    <dc:date>2017-07-11T17:25:41Z</dc:date>
    <item>
      <title>Change pixel value in raster file</title>
      <link>https://community.esri.com/t5/data-management-questions/change-pixel-value-in-raster-file/m-p/634017#M35839</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;How do I change pixel value in a raster dataset?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 16:20:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/change-pixel-value-in-raster-file/m-p/634017#M35839</guid>
      <dc:creator>RupsaBhowmick</dc:creator>
      <dc:date>2017-07-11T16:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Change pixel value in raster file</title>
      <link>https://community.esri.com/t5/data-management-questions/change-pixel-value-in-raster-file/m-p/634018#M35840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have access to the &lt;EM&gt;Spatial Analyst&lt;/EM&gt; extension, one way is to use the &lt;EM&gt;Conditional&lt;/EM&gt; geoprocessing tools&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/an-overview-of-the-conditional-tools.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/an-overview-of-the-conditional-tools.htm"&gt;An overview of the Conditional toolset—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also access the &lt;EM&gt;Conditional (Con)&lt;/EM&gt; functions in Raster Calculator:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/raster-calculator.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/raster-calculator.htm"&gt;Raster Calculator—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are some other possibilities, but it depends on what you would like to do.&amp;nbsp; Can you provide more details on what you are trying to change?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 16:38:18 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/change-pixel-value-in-raster-file/m-p/634018#M35840</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2017-07-11T16:38:18Z</dc:date>
    </item>
    <item>
      <title>Re: Change pixel value in raster file</title>
      <link>https://community.esri.com/t5/data-management-questions/change-pixel-value-in-raster-file/m-p/634019#M35841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Chris for your reply. I have one MODIS aerosol optical depth data. The raster file have 0 to 254 rowid and 1 to 255 pixel value. The 0 has marked as no data and 255 marked as maximum value. But actually, 0 has value and 255 has no value. I have change the 255 as null and add 1 to all other value to get correct pixel values.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you help me to solve this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 16:44:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/change-pixel-value-in-raster-file/m-p/634019#M35841</guid>
      <dc:creator>RupsaBhowmick</dc:creator>
      <dc:date>2017-07-11T16:44:17Z</dc:date>
    </item>
    <item>
      <title>Re: Change pixel value in raster file</title>
      <link>https://community.esri.com/t5/data-management-questions/change-pixel-value-in-raster-file/m-p/634020#M35842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the Null issue, consider using &lt;EM&gt;SetNull (Spatial Analyst)&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/set-null.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/set-null.htm"&gt;Set Null—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;H3&gt;&lt;EM&gt;&amp;nbsp;&lt;/EM&gt;&lt;/H3&gt;&lt;P&gt;Example from the Help:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Using an Expression:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;To set any cell with a value greater than 5 to NoData and have the remaining cells retain their original values, the following parameters could be used on the tool dialog box:&lt;/EM&gt;&lt;/P&gt;&lt;UL class=""&gt;&lt;LI&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Input conditional raster&lt;/SPAN&gt; : &lt;SPAN class=""&gt;InRas1&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Expression&lt;/SPAN&gt; : &lt;SPAN class=""&gt;"Value &amp;lt; 5"&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Input false raster or constant value&lt;/SPAN&gt; : &lt;SPAN class=""&gt;InRas1&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&lt;SPAN class=""&gt;Output raster&lt;/SPAN&gt; : &lt;SPAN class=""&gt;setnull_1&lt;/SPAN&gt;&lt;/EM&gt;&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;EM&gt;The equivalent using an expression in Map Algebra is as follows:&lt;/EM&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;EM&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;OutRas&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;SetNull&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;InRas1&lt;/SPAN&gt; &lt;SPAN class=""&gt;&amp;lt;&lt;/SPAN&gt; &lt;SPAN class=""&gt;5&lt;/SPAN&gt;&lt;SPAN class=""&gt;,&lt;/SPAN&gt; &lt;SPAN class=""&gt;InRas1&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/EM&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Source:&amp;nbsp; &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/setting-cell-values-to-nodata-with-setnull.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/tools/spatial-analyst-toolbox/setting-cell-values-to-nodata-with-setnull.htm"&gt;Setting values to NoData with Set Null—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As to incrementing the other values up by one, I believe the &lt;EM&gt;Raster Calculator&lt;/EM&gt; would be the way to go, using &lt;EM&gt;Map Algebra&lt;/EM&gt;.&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/extensions/spatial-analyst/map-algebra/what-is-map-algebra.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/extensions/spatial-analyst/map-algebra/what-is-map-algebra.htm"&gt;What is Map Algebra?—ArcGIS Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example from the Help:&lt;/P&gt;&lt;P&gt;&lt;EM&gt;Operators can accept a mixture of rasters and numbers. For example, the following adds a constant value of 8 to all the cells in the input raster:&lt;/EM&gt;&lt;/P&gt;&lt;DIV class=""&gt;&lt;DIV class=""&gt;&lt;PRE&gt;&lt;EM&gt;&lt;CODE&gt;&lt;SPAN class=""&gt;outRas&lt;/SPAN&gt; &lt;SPAN class=""&gt;=&lt;/SPAN&gt; &lt;SPAN class=""&gt;Raster&lt;/SPAN&gt;&lt;SPAN class=""&gt;(&lt;/SPAN&gt;&lt;SPAN class=""&gt;"inras1"&lt;/SPAN&gt;&lt;SPAN class=""&gt;)&lt;/SPAN&gt; &lt;SPAN class=""&gt;+&lt;/SPAN&gt; &lt;SPAN class=""&gt;8&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/EM&gt;&lt;/PRE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;Source:&amp;nbsp; &lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/extensions/spatial-analyst/map-algebra/a-quick-tour-of-using-map-algebra.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/guide-books/extensions/spatial-analyst/map-algebra/a-quick-tour-of-using-map-algebra.htm"&gt;A quick tour of using Map Algebra—ArcGIS Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 16:51:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/change-pixel-value-in-raster-file/m-p/634020#M35842</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2017-07-11T16:51:44Z</dc:date>
    </item>
    <item>
      <title>Re: Change pixel value in raster file</title>
      <link>https://community.esri.com/t5/data-management-questions/change-pixel-value-in-raster-file/m-p/634021#M35843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, great. I need to change the pixel values through model builder as I have many AOD raster files so I have to run a loop. so how to change the pixel values in a loop in model building.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 17:04:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/change-pixel-value-in-raster-file/m-p/634021#M35843</guid>
      <dc:creator>RupsaBhowmick</dc:creator>
      <dc:date>2017-07-11T17:04:24Z</dc:date>
    </item>
    <item>
      <title>Re: Change pixel value in raster file</title>
      <link>https://community.esri.com/t5/data-management-questions/change-pixel-value-in-raster-file/m-p/634022#M35844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The trick to processing all the rasters is to employ an&lt;EM&gt; Iterator&lt;/EM&gt; in Modelbuilder. This will allow the looping through of each raster.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here's the &lt;EM&gt;Modelbuilder Iterators&lt;/EM&gt;:&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/a-quick-tour-of-using-iterators-for-iteration-looping-.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/a-quick-tour-of-using-iterators-for-iteration-looping-.htm"&gt;A quick tour of using iterators—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/accessing-iterators-in-modelbuilder.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/accessing-iterators-in-modelbuilder.htm"&gt;Accessing iterators in ModelBuilder—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/example-of-using-an-iterator-in-a-model.htm" title="http://desktop.arcgis.com/en/arcmap/10.3/analyze/modelbuilder/example-of-using-an-iterator-in-a-model.htm"&gt;Example of using an iterator in a model—Help | ArcGIS for Desktop&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note, however, if you are conversant with &lt;EM&gt;Python&lt;/EM&gt;, that would probably be more effective than using &lt;EM&gt;Modelbuilder&lt;/EM&gt; (Modelbuilder can be a bit quirky).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris Donohue, GISP&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Jul 2017 17:25:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/data-management-questions/change-pixel-value-in-raster-file/m-p/634022#M35844</guid>
      <dc:creator>ChrisDonohue__GISP</dc:creator>
      <dc:date>2017-07-11T17:25:41Z</dc:date>
    </item>
  </channel>
</rss>

