<?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: Replace null values within a raster using statistical information from the surrounding data values in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517399#M7447</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is your raster called 'raster'?&lt;/P&gt;&lt;P&gt;and if the gap is too big, it won't fill in in any event, you have to use &lt;STRONG&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/nibble.htm"&gt;Nibble&lt;/A&gt; (&lt;/STRONG&gt;same in ArcMap and in Pro)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 Aug 2017 20:27:25 GMT</pubDate>
    <dc:creator>DanPatterson_Retired</dc:creator>
    <dc:date>2017-08-23T20:27:25Z</dc:date>
    <item>
      <title>Replace null values within a raster using statistical information from the surrounding data values</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517398#M7446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am attempting to use this method to interpolate currently null values in a raster:&amp;nbsp;&lt;A class="link-titled" href="http://support.esri.com/en/technical-article/000004792" title="http://support.esri.com/en/technical-article/000004792"&gt;How To: Remove and replace no data values within a raster using statistical information from the surrounding data values…&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This code is not working in raster calculator for Desktop 10.5. Is there a syntax update that I am missing?&lt;/P&gt;&lt;PRE class="" style="color: #4c4c4c; background-color: whitesmoke; font-size: 17px; margin-bottom: 1.55rem;"&gt;Con(IsNull("raster"), FocalStatistics("raster", NbrRectangle(5,5, "CELL"), "MEAN"), "raster")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 20:13:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517398#M7446</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2017-08-23T20:13:53Z</dc:date>
    </item>
    <item>
      <title>Re: Replace null values within a raster using statistical information from the surrounding data values</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517399#M7447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is your raster called 'raster'?&lt;/P&gt;&lt;P&gt;and if the gap is too big, it won't fill in in any event, you have to use &lt;STRONG&gt;&lt;A href="http://pro.arcgis.com/en/pro-app/tool-reference/spatial-analyst/nibble.htm"&gt;Nibble&lt;/A&gt; (&lt;/STRONG&gt;same in ArcMap and in Pro)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 20:27:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517399#M7447</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-08-23T20:27:25Z</dc:date>
    </item>
    <item>
      <title>Re: Replace null values within a raster using statistical information from the surrounding data values</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517400#M7448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My raster is called "m1sm_degnull". This is the code I tried in raster calculator:&lt;/P&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;&lt;CODE&gt;Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;IsNull&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"m1sm_degnull"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; FocalStatistics&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"m1sm_degnull"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; NbrCircle&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;15&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;15&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"CELL"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MEAN"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; 
&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="string token"&gt;"m1sm_degnull"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;This is the error I recieved:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ERROR 000539: Error running expression: rcexec() &lt;BR /&gt;Traceback (most recent call last):&lt;BR /&gt; File "&amp;lt;expression&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;BR /&gt; File "&amp;lt;string&amp;gt;", line 5, in rcexec&lt;BR /&gt;TypeError: __init__() takes at most 3 arguments (4 given)&lt;/P&gt;&lt;P&gt;Failed to execute (RasterCalculator).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hmm, I'll look into Nibble. That may be just what I'm looking for (as I do have a large gap). Thanks a bunch!&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 22:34:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517400#M7448</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2021-12-11T22:34:14Z</dc:date>
    </item>
    <item>
      <title>Re: Replace null values within a raster using statistical information from the surrounding data values</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517401#M7449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE class="language-python line-numbers"&gt;&lt;CODE&gt;Con&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;IsNull&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"m1sm_degnull"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; FocalStatistics&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;"m1sm_degnull"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; NbrCircle&lt;SPAN class="punctuation token"&gt;(&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;15&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="number token"&gt;15&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"CELL"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt;&lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"MEAN"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;""&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;,&lt;/SPAN&gt; &lt;SPAN class="string token"&gt;"m1sm_degnull"&lt;/SPAN&gt;&lt;SPAN class="punctuation token"&gt;)&lt;/SPAN&gt;&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;you had a bracket in the wrong place and just to be sure I put the extra "" parameter in FocalStatistics&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Aug 2017 22:39:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517401#M7449</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2017-08-23T22:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Replace null values within a raster using statistical information from the surrounding data values</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517402#M7450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I guess I disagree, the syntax looks correct to me. I would double check to make sure these layer names are absolutely correctly specified -- by erasing the expression and rebuilding it using the Raster Calculator expression builder buttons. (Note, I reformatted your code to make it easier to read.)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nibble only works on integer data, just&amp;nbsp;so you know. With float data, multiple runs of Focal Statistics may be the best way to roll it. I think Esri should write us a hole-filling tool!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 05:18:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517402#M7450</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2017-09-08T05:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Replace null values within a raster using statistical information from the surrounding data values</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517403#M7451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would convert the raster to points and then interpolate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you use an exact interpolator set the cell size and extent equal to the raster you want to fill.&lt;/P&gt;&lt;P&gt;With an inexact interpolator you'll have to use CON to replace the NoData.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Steve&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 15:17:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517403#M7451</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2017-09-08T15:17:36Z</dc:date>
    </item>
    <item>
      <title>Re: Replace null values within a raster using statistical information from the surrounding data values</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517404#M7452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I like this idea. Thanks. I was working with 10m elevation&amp;nbsp;data that ended up having some odd values, seemingly an artifact of raster resolution and steep embankments along a roadway in mountainous terrain. I ended up setting likely&amp;nbsp;extraneous values to nulls and was hoping to interpolate the values of these cells to smooth the DEM along the roadway.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tess&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2017 16:58:15 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/replace-null-values-within-a-raster-using/m-p/517404#M7452</guid>
      <dc:creator>TessOldemeyer</dc:creator>
      <dc:date>2017-09-08T16:58:15Z</dc:date>
    </item>
  </channel>
</rss>

