<?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 How to replace values of a raster with from another raster with a condition? in Developers Questions</title>
    <link>https://community.esri.com/t5/developers-questions/how-to-replace-values-of-a-raster-with-from/m-p/717873#M4899</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to replace all the cell values in raster 'acc_log_norm' that are equal to zero with the corresponding cell values in "modis3_norm_final" raster. The syntax I used in raster calculator is:&lt;/P&gt;&lt;P&gt;Con("acc_log_norm", "modis3_norm_final", "acc_log_norm", "Value = 0")&lt;/P&gt;&lt;P&gt;The syntax runs but the resulting raster is a weired raster with value range -3.40282e+038 to +3.40282e+038. The cell values range from 0 to 1 in both of the rasters. Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Jul 2016 19:21:37 GMT</pubDate>
    <dc:creator>SagarParajuli1</dc:creator>
    <dc:date>2016-07-13T19:21:37Z</dc:date>
    <item>
      <title>How to replace values of a raster with from another raster with a condition?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-replace-values-of-a-raster-with-from/m-p/717873#M4899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am trying to replace all the cell values in raster 'acc_log_norm' that are equal to zero with the corresponding cell values in "modis3_norm_final" raster. The syntax I used in raster calculator is:&lt;/P&gt;&lt;P&gt;Con("acc_log_norm", "modis3_norm_final", "acc_log_norm", "Value = 0")&lt;/P&gt;&lt;P&gt;The syntax runs but the resulting raster is a weired raster with value range -3.40282e+038 to +3.40282e+038. The cell values range from 0 to 1 in both of the rasters. Please help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 19:21:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-replace-values-of-a-raster-with-from/m-p/717873#M4899</guid>
      <dc:creator>SagarParajuli1</dc:creator>
      <dc:date>2016-07-13T19:21:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace values of a raster with from another raster with a condition?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-replace-values-of-a-raster-with-from/m-p/717874#M4900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You have nodata values obviously&lt;/P&gt;&lt;P&gt;&lt;A 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 for Desktop&lt;/A&gt; try a boolean to get the hang of it&lt;/P&gt;&lt;P&gt;Con( "in_raster",1,0, condition)&lt;/P&gt;&lt;P&gt;where 1 will be assigned if the condition is true otherwise 0, then view your raster in that context and you will then be able to reinterpret yours.&amp;nbsp; Don't use a visual inspection, examine the histogram (floating point rasters) or the table (integer rasters) being aware of where your nodata values are&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 19:40:35 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-replace-values-of-a-raster-with-from/m-p/717874#M4900</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2016-07-13T19:40:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace values of a raster with from another raster with a condition?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-replace-values-of-a-raster-with-from/m-p/717875#M4901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The expression you want is: &lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Con("acc_log_norm"==0, "modis3_norm_final", "acc_log_norm")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #3d3d3d; font-family: arial, helvetica, 'helvetica neue', verdana, sans-serif;"&gt;Translation: &lt;STRONG&gt;If&lt;/STRONG&gt; "acc_log_norm" equals zero, &lt;STRONG&gt;then&lt;/STRONG&gt; use "modis3_norm_final", &lt;STRONG&gt;else&lt;/STRONG&gt; use "acc_log_norm".&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Jul 2016 20:05:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-replace-values-of-a-raster-with-from/m-p/717875#M4901</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2016-07-13T20:05:02Z</dc:date>
    </item>
    <item>
      <title>Re: How to replace values of a raster with from another raster with a condition?</title>
      <link>https://community.esri.com/t5/developers-questions/how-to-replace-values-of-a-raster-with-from/m-p/717876#M4902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It looks like that this issue was caused because my 'modis3_norm_final' raster didn't have a proper projection defined although the both map have same resolution and size.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jul 2016 20:27:21 GMT</pubDate>
      <guid>https://community.esri.com/t5/developers-questions/how-to-replace-values-of-a-raster-with-from/m-p/717876#M4902</guid>
      <dc:creator>SagarParajuli1</dc:creator>
      <dc:date>2016-07-14T20:27:21Z</dc:date>
    </item>
  </channel>
</rss>

