<?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 Error 000539 when filling NoData values using Raster Calculator FocalStatistics in Spatial Statistics Questions</title>
    <link>https://community.esri.com/t5/spatial-statistics-questions/error-000539-when-filling-nodata-values-using/m-p/694258#M2241</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a global ocean pH raster map.The raster has large NoData areas: all land areas and many coastlines have NoData. The land areas should remain as NoData, but the ocean areas (blue) should be filled with pH values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image" height="319" src="https://community.esri.com/legacyfs/online/461145_GlobalpHbackground.PNG" width="545" /&gt;&lt;/P&gt;&lt;P&gt;First I made a seperate map with all the ocean areas that need to be filled (black=1, white=NoData):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-2 jive-image" height="328" src="https://community.esri.com/legacyfs/online/461146_pHGapsToBeFilled.PNG" width="567" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried to apply this method to fill the NoData gaps: &lt;A href="https://support.esri.com/en/technical-article/000004792" title="https://support.esri.com/en/technical-article/000004792"&gt;https://support.esri.com/en/technical-article/000004792&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote the following line in the raster calculator:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Con("%pH_GapsToBeFillled%"==1,&amp;nbsp; FocalStatistics("%pH_Global%", NbrRectangle(10,10, "CELL"), "MEAN"), "%pH_Global%")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I keep getting the following error. Does anyone know where the problem occurs?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-emoji jive-image" height="474" src="https://community.esri.com/legacyfs/online/461183_error000539.PNG" width="565" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Oct 2019 11:08:16 GMT</pubDate>
    <dc:creator>MichelKroeze</dc:creator>
    <dc:date>2019-10-04T11:08:16Z</dc:date>
    <item>
      <title>Error 000539 when filling NoData values using Raster Calculator FocalStatistics</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/error-000539-when-filling-nodata-values-using/m-p/694258#M2241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a global ocean pH raster map.The raster has large NoData areas: all land areas and many coastlines have NoData. The land areas should remain as NoData, but the ocean areas (blue) should be filled with pH values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image" height="319" src="https://community.esri.com/legacyfs/online/461145_GlobalpHbackground.PNG" width="545" /&gt;&lt;/P&gt;&lt;P&gt;First I made a seperate map with all the ocean areas that need to be filled (black=1, white=NoData):&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-2 jive-image" height="328" src="https://community.esri.com/legacyfs/online/461146_pHGapsToBeFilled.PNG" width="567" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Then I tried to apply this method to fill the NoData gaps: &lt;A href="https://support.esri.com/en/technical-article/000004792" title="https://support.esri.com/en/technical-article/000004792"&gt;https://support.esri.com/en/technical-article/000004792&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I wrote the following line in the raster calculator:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Con("%pH_GapsToBeFillled%"==1,&amp;nbsp; FocalStatistics("%pH_Global%", NbrRectangle(10,10, "CELL"), "MEAN"), "%pH_Global%")&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I keep getting the following error. Does anyone know where the problem occurs?&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="image-3 jive-emoji jive-image" height="474" src="https://community.esri.com/legacyfs/online/461183_error000539.PNG" width="565" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Oct 2019 11:08:16 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/error-000539-when-filling-nodata-values-using/m-p/694258#M2241</guid>
      <dc:creator>MichelKroeze</dc:creator>
      <dc:date>2019-10-04T11:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Error 000539 when filling NoData values using Raster Calculator FocalStatistics</title>
      <link>https://community.esri.com/t5/spatial-statistics-questions/error-000539-when-filling-nodata-values-using/m-p/694259#M2242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Hi,&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;Let's try this code:&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp; Con("%pH_GapsToBeFillled%"==1,&amp;nbsp; FocalStatistics("%pH_Global%", NbrRectangle(10,10, "CELL"), "MEAN",&lt;STRONG&gt;""&lt;/STRONG&gt;), "%pH_Global%")&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I &amp;nbsp;added a&amp;nbsp;("") at the end of FocalStatistics function to set "Not ignore NoData". Also, you may want to set your workplace by arcpy.workspace function.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #ffffff;"&gt;I hope this helps.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Nov 2019 22:05:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/spatial-statistics-questions/error-000539-when-filling-nodata-values-using/m-p/694259#M2242</guid>
      <dc:creator>gianguyen</dc:creator>
      <dc:date>2019-11-18T22:05:53Z</dc:date>
    </item>
  </channel>
</rss>

