<?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 convert null values to 0 in raster calculator? in Geoprocessing Questions</title>
    <link>https://community.esri.com/t5/geoprocessing-questions/how-to-convert-null-values-to-0-in-raster/m-p/314053#M10939</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to convert null values to zero or other values in raster calculator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help say this but i don't understand&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'1. Identify the NoData locations: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Input raster = 'inRaster1'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Output raster = 'outNullMap'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Perform Con on the results to give the original NoData areas a value: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Input conditional raster = 'outNullMap'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Input true raster or constant value = '100' &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Input false raster or constant value = 'inRaster1'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Output raster = 'null100_final'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expression = 'Value = 1'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your attention, ferran&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 28 Dec 2011 05:40:15 GMT</pubDate>
    <dc:creator>ferranferrer</dc:creator>
    <dc:date>2011-12-28T05:40:15Z</dc:date>
    <item>
      <title>How to convert null values to 0 in raster calculator?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-convert-null-values-to-0-in-raster/m-p/314053#M10939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm trying to convert null values to zero or other values in raster calculator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Help say this but i don't understand&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;'1. Identify the NoData locations: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Input raster = 'inRaster1'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Output raster = 'outNullMap'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Perform Con on the results to give the original NoData areas a value: &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Input conditional raster = 'outNullMap'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Input true raster or constant value = '100' &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Input false raster or constant value = 'inRaster1'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Output raster = 'null100_final'&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; Expression = 'Value = 1'&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for your attention, ferran&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 05:40:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-convert-null-values-to-0-in-raster/m-p/314053#M10939</guid>
      <dc:creator>ferranferrer</dc:creator>
      <dc:date>2011-12-28T05:40:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null values to 0 in raster calculator?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-convert-null-values-to-0-in-raster/m-p/314054#M10940</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Ferran - &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Instead of the raster calculator, I would use the CON geoprocessing tool in the Spatial Analyst toolbox.&amp;nbsp; The syntax for the GP tool would be as follows:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;in_conditional_raster = your input raster&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in_true_raster_or_constant = 0&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;in_false_raster_or_constant = your input raster&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;where_clause = VALUE IS NULL&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If the raster cell evaluates as TRUE (i.e. IS NULL), the cell gets a value of 0.&amp;nbsp; Else if the raster cells evaluates FALSE (i.e. IS NOT NULL), then the raster cell gets the original input raster cell value.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert LeClair&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri-Denver&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 14:23:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-convert-null-values-to-0-in-raster/m-p/314054#M10940</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2011-12-28T14:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null values to 0 in raster calculator?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-convert-null-values-to-0-in-raster/m-p/314055#M10941</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;This doesn't seem to work for me.&amp;nbsp; the "VALUE IS NULL" returns no records.&amp;nbsp; The only way I've found to do this successsfully is by the method described here using two GP tools (CON and IS NULL):&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000ms000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000ms000000.htm&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It would be really nice if there was a way to do this with a single command...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Hi Ferran - &lt;BR /&gt;&lt;BR /&gt;Instead of the raster calculator, I would use the CON geoprocessing tool in the Spatial Analyst toolbox.&amp;nbsp; The syntax for the GP tool would be as follows:&lt;BR /&gt;&lt;BR /&gt;in_conditional_raster = your input raster&lt;BR /&gt;in_true_raster_or_constant = 0&lt;BR /&gt;in_false_raster_or_constant = your input raster&lt;BR /&gt;where_clause = VALUE IS NULL&lt;BR /&gt;&lt;BR /&gt;If the raster cell evaluates as TRUE (i.e. IS NULL), the cell gets a value of 0.&amp;nbsp; Else if the raster cells evaluates FALSE (i.e. IS NOT NULL), then the raster cell gets the original input raster cell value.&lt;BR /&gt;&lt;BR /&gt;Good luck!&lt;BR /&gt;&lt;BR /&gt;Robert LeClair&lt;BR /&gt;Esri-Denver&lt;/BLOCKQUOTE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 19:08:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-convert-null-values-to-0-in-raster/m-p/314055#M10941</guid>
      <dc:creator>clintonchiavarini</dc:creator>
      <dc:date>2011-12-28T19:08:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null values to 0 in raster calculator?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-convert-null-values-to-0-in-raster/m-p/314056#M10942</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You may also use the Reclassify tool to do this,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;1. ArcToolbox &amp;gt; Spatial Analyst &amp;gt; Reclass &amp;gt; Reclassify&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2. Select Input raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;3. Make sure all your valid old values are the same in new values.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;4. Change old nodata value to 0 &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;5. Save the output raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also here is a link to the tech article which discusses about the same operation using the CON and IsNULL. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://resources.arcgis.com/content/kbase?fa=articleShow&amp;amp;d=34932"&gt;http://resources.arcgis.com/content/kbase?fa=articleShow&amp;amp;d=34932&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Gayu&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 19:09:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-convert-null-values-to-0-in-raster/m-p/314056#M10942</guid>
      <dc:creator>GayathriAlallasundaram</dc:creator>
      <dc:date>2011-12-28T19:09:10Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null values to 0 in raster calculator?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-convert-null-values-to-0-in-raster/m-p/314057#M10943</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;The workflow IsNull and Con functionality outlined here:&amp;nbsp; &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000ms000000.htm"&gt;http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000ms000000.htm&lt;/A&gt;&lt;SPAN&gt; could be combined in ModelBuilder and run as a single process.&amp;nbsp; The user would set the necessary parameters for input to apply to different input raster datasets.&amp;nbsp; Just a thought...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Robert LeClair&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Esri-Denver&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 28 Dec 2011 19:29:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-convert-null-values-to-0-in-raster/m-p/314057#M10943</guid>
      <dc:creator>Robert_LeClair</dc:creator>
      <dc:date>2011-12-28T19:29:56Z</dc:date>
    </item>
    <item>
      <title>Re: How to convert null values to 0 in raster calculator?</title>
      <link>https://community.esri.com/t5/geoprocessing-questions/how-to-convert-null-values-to-0-in-raster/m-p/314058#M10944</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks a lot!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I've resolved this with &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;etpm01x = ASCIIGRID (etpm01.txt , FLOAT)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;etpm01 = CON(ISNULL (etpm01x) , 0.001, etpm01x )&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; in raster calculator, the code i ran is four A4 long, for that i was looking for this kind of solution.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks, ferran&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 29 Dec 2011 18:17:29 GMT</pubDate>
      <guid>https://community.esri.com/t5/geoprocessing-questions/how-to-convert-null-values-to-0-in-raster/m-p/314058#M10944</guid>
      <dc:creator>ferranferrer</dc:creator>
      <dc:date>2011-12-29T18:17:29Z</dc:date>
    </item>
  </channel>
</rss>

