<?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 Focal statistics problem in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-problem/m-p/60791#M833</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have some DEM (elevation raster) data in a file geoDB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Its a bit noisy, so I wanted to fiddle with some filters to try and "improve" it a little.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The spatial ref is UTM metres. Its a 32bit float, with a perfectly normal range of values (from 250m up 560m).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It has LZ77 compression and stats and pyramids are done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I opened the Focal stats tool to do a bit of processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I enter the raster name at the top, the list of avalable statistics for the output automatically shortens and only leaves the Mean, Min, Max, Range, Std &amp;amp; Sum options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The other options which dissappear are Majority, Minority, Median &amp;amp; Variety.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course I want to put a median filter through this data but can't.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anybody tell me why the tool will not let me run the focal process with the MEDIAN option selected?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Been scratching my head for 1hr already, and I am sure I have sucessfully used a median filter before, but can't now!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in anticipation,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh and I'm on Arc10 SP3, Win7 Pro 64bit&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Apr 2012 13:46:01 GMT</pubDate>
    <dc:creator>NeilAyres</dc:creator>
    <dc:date>2012-04-18T13:46:01Z</dc:date>
    <item>
      <title>Focal statistics problem</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-problem/m-p/60791#M833</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I have some DEM (elevation raster) data in a file geoDB.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Its a bit noisy, so I wanted to fiddle with some filters to try and "improve" it a little.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The spatial ref is UTM metres. Its a 32bit float, with a perfectly normal range of values (from 250m up 560m).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;It has LZ77 compression and stats and pyramids are done.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So I opened the Focal stats tool to do a bit of processing.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;But when I enter the raster name at the top, the list of avalable statistics for the output automatically shortens and only leaves the Mean, Min, Max, Range, Std &amp;amp; Sum options.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The other options which dissappear are Majority, Minority, Median &amp;amp; Variety.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Of course I want to put a median filter through this data but can't.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Can anybody tell me why the tool will not let me run the focal process with the MEDIAN option selected?&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Been scratching my head for 1hr already, and I am sure I have sucessfully used a median filter before, but can't now!!!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks in anticipation,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Oh and I'm on Arc10 SP3, Win7 Pro 64bit&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 13:46:01 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-problem/m-p/60791#M833</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2012-04-18T13:46:01Z</dc:date>
    </item>
    <item>
      <title>Re: Focal statistics problem</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-problem/m-p/60792#M834</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Have you looked in the tool's help?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 13:54:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-problem/m-p/60792#M834</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2012-04-18T13:54:25Z</dc:date>
    </item>
    <item>
      <title>Re: Focal statistics problem</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-problem/m-p/60793#M835</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks Steve,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;I have looked at the tool help.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Also did some searching here.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Found my answer. Stats like Majority, Minority &amp;amp; Median are not avaialble for float type data.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Well I can sort of understand why this is, but the help I have seen certainly does not make it obvious.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;So, if you are a HELP documentor at ESRI, please add the large red letters -&amp;nbsp; These filters not available for float type data&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So you have to convert to an INT type, then do the median filter, then convert back.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;INT(DEM * 100 + 0.5) # lets try and keep detail down to the cm level. The + 0.5 ensures that the INT rounds rather than truncates.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Run the FocalStats (Median) filter (in my case a 7 X 7 cell window).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Then run raster calculator again to divide the ouput by 100 to get back to float.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Okay, got my answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks to all who might have even pondered replying.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Cheers,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 14:41:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-problem/m-p/60793#M835</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2012-04-18T14:41:57Z</dc:date>
    </item>
    <item>
      <title>Re: Focal statistics problem</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-problem/m-p/60794#M836</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Just had another look at the help for "How Focal Statistics Works":&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Note that it says "if the input is integer ...., if the input is float...."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Statistics type&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The available Focal Statistics statistics are majority, maximum, mean, median, minimum, minority, range, standard deviation, and sum. The default statistics type is mean.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Majority&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the input raster is integer, the values on the output raster will be integer; if the values on the input are floating point, the values on the output will be floating point. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When there is more than one majority value within a neighborhood, the processing cell location will receive NoData on the output. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Maximum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the input raster is integer, the values on the output raster will be integer; if the values on the input are floating point, the values on the output will be floating point. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Mean&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The output raster will always be floating point. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The mean statistic can be used with the weight neighborhood type. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Median&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the input raster is integer, the values on the output raster will be integer; if the values on the input are floating point, the values on the output will be floating point. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When the number of valid cell values in the neighborhood is odd, the median value is calculated by ranking the values and selecting the middle value. If the number of values in a neighborhood is even, the values will be ranked and the middle two values will be averaged. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Minimum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the input raster is integer, the values on the output raster will be integer; if the values on the input are floating point, the values on the output will be floating point. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Minority&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the input raster is integer, the values on the output raster will be integer; if the values on the input are floating point, the values on the output will be floating point. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;When there is more than one minority value within a neighborhood, the processing cell location will receive NoData on the output. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Range&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the input raster is integer, the values on the output raster will be integer; if the values on the input are floating point, the values on the output will be floating point. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The values for each cell location on the output grid are determined on a cell-by-cell basis by applying this simple formula: Focal Range = Focal Maximum �?? Focal Minimum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;STD&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The output raster will always be floating point. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The STD statistic can be used with the weight neighborhood type. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Sum&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;If the input raster is integer, the values on the output raster will be integer; if the values on the input are floating point, the values on the output will be floating point. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The STD statistic can be used with the weight neighborhood type. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Variety&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;The output raster will always be integer.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 15:45:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-problem/m-p/60794#M836</guid>
      <dc:creator>NeilAyres</dc:creator>
      <dc:date>2012-04-18T15:45:13Z</dc:date>
    </item>
    <item>
      <title>Re: Focal statistics problem</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-problem/m-p/60795#M837</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;From the &lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//009z000000qs000000.htm"&gt;FocalStatistics version 10 help&lt;/A&gt;&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;If the input raster is of floating point type, only the Mean, Maximum, Minimum, Range, STD, and Sum statistics are available; the Majority, Minority, Median and Variety statistics are not permitted. If the input raster is of integer type, all the statistics types are available.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Unfortunately, the version 9.3 help has &lt;/SPAN&gt;&lt;STRONG&gt;no mention &lt;/STRONG&gt;&lt;SPAN&gt;of float vs integer, at least on the &lt;/SPAN&gt;&lt;A href="http://webhelp.esri.com/arcgisdesktop/9.3/index.cfm?TopicName=Focal_Statistics"&gt;Focal Statistics &lt;/A&gt;&lt;SPAN&gt;page. Honestly, the reply from Steve Lynch to read the help is below the standards I expect from an ESRI representative, especially when the answer is hidden so deeply in the help pages (for 9.3).&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 15:56:52 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-problem/m-p/60795#M837</guid>
      <dc:creator>DarrenWiens2</dc:creator>
      <dc:date>2012-04-18T15:56:52Z</dc:date>
    </item>
    <item>
      <title>Re: Focal statistics problem</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-problem/m-p/60796#M838</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Neil&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for pointing out the problem in the "How Focal Stats works", we'll get onto that ASAP.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Apr 2012 17:13:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/focal-statistics-problem/m-p/60796#M838</guid>
      <dc:creator>SteveLynch</dc:creator>
      <dc:date>2012-04-18T17:13:23Z</dc:date>
    </item>
  </channel>
</rss>

