<?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: Lokking for a Raster Calculator expression in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/lokking-for-a-raster-calculator-expression/m-p/352398#M4975</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I did it like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Con("target" == 0, FocalStatistics("target", NbrCircle(5, "CELL"), "MAJORITY"), "target")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It removed all pixels having a value of "0" in just 1 step.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Quite comfortable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all your fast answers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jochen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 26 Aug 2013 14:35:07 GMT</pubDate>
    <dc:creator>JochenScholtes</dc:creator>
    <dc:date>2013-08-26T14:35:07Z</dc:date>
    <item>
      <title>Lokking for a Raster Calculator expression</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/lokking-for-a-raster-calculator-expression/m-p/352393#M4970</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Dear all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have a raster layer and want to reclassify one class based on a rule. Unfortunately I can't find commands for the raster calculator and don't know how to implement it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Basically I want the Raster Calculator to do the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If "my-layer" == 0, reclassify it using a majority filter (8 neighbouring cells)...&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Has anyone a clue, how one could implement that?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Muenchner&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 13:34:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/lokking-for-a-raster-calculator-expression/m-p/352393#M4970</guid>
      <dc:creator>JochenScholtes</dc:creator>
      <dc:date>2013-08-09T13:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Lokking for a Raster Calculator expression</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/lokking-for-a-raster-calculator-expression/m-p/352394#M4971</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I've used the Shift command for this type of thing. In model builder you can automate and trial and error your process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Tool location: Toolboxes\System Toolboxes\Data Management Tools.tbx\Projections and Transformations\Raster\Shift&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Related post for using Shift: &lt;/SPAN&gt;&lt;A href="http://forums.arcgis.com/threads/75804-surface-angle-in-each-cardinal-direction?p=265962&amp;amp;viewfull=1#post265962"&gt;http://forums.arcgis.com/threads/75804-surface-angle-in-each-cardinal-direction?p=265962&amp;amp;viewfull=1#post265962&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 15:04:56 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/lokking-for-a-raster-calculator-expression/m-p/352394#M4971</guid>
      <dc:creator>MarkBoucher</dc:creator>
      <dc:date>2013-08-09T15:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: Lokking for a Raster Calculator expression</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/lokking-for-a-raster-calculator-expression/m-p/352395#M4972</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Use Con and FocalStatistics. Something like:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Con("raster"==0, FocalStatistics("raster", NbrRectangle(3, 3, "CELL"), "MAJORITY"), "raster")&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Aug 2013 22:13:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/lokking-for-a-raster-calculator-expression/m-p/352395#M4972</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2013-08-09T22:13:40Z</dc:date>
    </item>
    <item>
      <title>Re: Lokking for a Raster Calculator expression</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/lokking-for-a-raster-calculator-expression/m-p/352396#M4973</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Can't edit my previous post for some reason...? Anyways: the following raster calculator expression is better as it will ensure that 0 values don't get included when the FocalStatistics expression is executed:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Con("raster" == 0, FocalStatistics(SetNull("raster" == 0, "raster"), NbrRectangle(3, 3, "CELL"), "MAJORITY"), "raster")&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Aug 2013 02:19:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/lokking-for-a-raster-calculator-expression/m-p/352396#M4973</guid>
      <dc:creator>Luke_Pinner</dc:creator>
      <dc:date>2013-08-12T02:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: Lokking for a Raster Calculator expression</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/lokking-for-a-raster-calculator-expression/m-p/352397#M4974</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi all,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;sorry for my late response, I was just out of office.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'll immediately try your versions and report on the outcome.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jochen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 14:22:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/lokking-for-a-raster-calculator-expression/m-p/352397#M4974</guid>
      <dc:creator>JochenScholtes</dc:creator>
      <dc:date>2013-08-26T14:22:14Z</dc:date>
    </item>
    <item>
      <title>Re: Lokking for a Raster Calculator expression</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/lokking-for-a-raster-calculator-expression/m-p/352398#M4975</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I did it like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;Con("target" == 0, FocalStatistics("target", NbrCircle(5, "CELL"), "MAJORITY"), "target")&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;It removed all pixels having a value of "0" in just 1 step.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Quite comfortable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for all your fast answers.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Best regards&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jochen&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 26 Aug 2013 14:35:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/lokking-for-a-raster-calculator-expression/m-p/352398#M4975</guid>
      <dc:creator>JochenScholtes</dc:creator>
      <dc:date>2013-08-26T14:35:07Z</dc:date>
    </item>
  </channel>
</rss>

