<?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: map algebra expression / raster calculator arcmap10 in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/map-algebra-expression-raster-calculator-arcmap10/m-p/588054#M8544</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You cannot use dot notation in ArcGIS 10.&amp;nbsp; You will need to use the Lookup function.&amp;nbsp; Something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SetNull(("StreamOrder"==1)&amp;nbsp; &amp;amp; ( Lookup("StreamLink","count") &amp;lt;= 50), "StreamLink")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/16689-Using-raster-attribute-other-than-value-in-map-algebra" rel="nofollow" target="_blank"&gt;&lt;BR /&gt;Using raster attribute other than 'value' in map algebra&lt;/A&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/47540-Lookup-function-in-v10.0-Map-Algebra-implementing-dot-notation-in-v10.0" rel="nofollow" target="_blank"&gt;&lt;BR /&gt;Lookup function in v10.0 Map Algebra: implementing dot notation in v10.0?&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/57903-What-is-wrong-with-this-syntax-when-using-the-%E2%80%9Craster-calculator%E2%80%9D" rel="nofollow" target="_blank"&gt;What is wrong with this syntax when using the ???raster calculator????&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2012 11:23:00 GMT</pubDate>
    <dc:creator>TimothyHales</dc:creator>
    <dc:date>2012-05-23T11:23:00Z</dc:date>
    <item>
      <title>map algebra expression / raster calculator arcmap10</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/map-algebra-expression-raster-calculator-arcmap10/m-p/588053#M8543</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;hey folks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i???ve got a problem concerning the raster-calculator-tool in arcmap 10. I hope someone can help me. excuse my poor english skills???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;the situation:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- i model drainage-systems based on high-resolution lidar-dgm (1m).&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- i want to thin-out the flow-accumulation-tool results&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- therefore I want to eliminate all streams that have less then 50 cells and have no upstream connection (last are called 1st-order streams)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- i created a stream-link-raster (it tells the lenght of segment in the attribute-table-field COUNT) and a stream-order-raster (it gives each segment an order-number beginning with 1) [both tools are available in spatial analyst ??? hydrology-toolset]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;- now i need a single-output-map-algebra-expression that says:&lt;/SPAN&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;BR /&gt;???if the stream order is 1 and the stream segment has 50 cells or less, then turn the cell into NoData. Otherwise, return the stream link ID.???&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i tried to solve this problem using the raster calculator. &lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;first things first: i???m absolutely not a pro in skripting/programming! Not even at this simple level???&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;i'm sure its only a little mistake, but i can???t find it by myself.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;my code looks like this: &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;SetNull("str_ord_klein"&amp;nbsp; == 1&amp;nbsp; &amp;amp;&amp;nbsp; "StreamLink".COUNT &amp;lt;= 50, "StreamLink")&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"str_ord_klein"&amp;nbsp; is the stream-order-raster&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;"StreamLink" is the stream-link-raster&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;the process starts but it is cancelled immediately saying this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN style="font-style:italic;"&gt;Executing: RasterCalculator SetNull("str_ord_klein"&amp;nbsp; == 1&amp;nbsp; &amp;amp;&amp;nbsp; "StreamLink".COUNT&amp;nbsp;&amp;nbsp; &amp;lt;&amp;nbsp; 50, "StreamLink") "D:\Daten\Studium\DIPLOMARBEIT\GIS\Hydrologie Modellierung\Rasterdaten\STREAM EDITED\stream_thinned"&lt;BR /&gt;Start Time: Wed May 23 13:35:00 2012&lt;BR /&gt;SetNull(Raster(r"str_ord_klein")&amp;nbsp; == 1&amp;nbsp; &amp;amp;&amp;nbsp; Raster(r"StreamLink").COUNT&amp;nbsp;&amp;nbsp; &amp;lt;&amp;nbsp; 50, Raster(r"StreamLink"))&lt;BR /&gt;ERROR 000539: Error running expression: rcexec() &amp;lt;type 'exceptions.AttributeError'&amp;gt;: 'Raster' object has no attribute 'COUNT'&lt;BR /&gt;Failed to execute (RasterCalculator).&lt;BR /&gt;Failed at Wed May 23 13:35:00 2012 (Elapsed Time: 0,00 seconds)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;i would be very happy and grateful if someone could help me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;kind regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;max&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 10:56:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/map-algebra-expression-raster-calculator-arcmap10/m-p/588053#M8543</guid>
      <dc:creator>MaximilianSesselmann</dc:creator>
      <dc:date>2012-05-23T10:56:26Z</dc:date>
    </item>
    <item>
      <title>Re: map algebra expression / raster calculator arcmap10</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/map-algebra-expression-raster-calculator-arcmap10/m-p/588054#M8544</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You cannot use dot notation in ArcGIS 10.&amp;nbsp; You will need to use the Lookup function.&amp;nbsp; Something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;SetNull(("StreamOrder"==1)&amp;nbsp; &amp;amp; ( Lookup("StreamLink","count") &amp;lt;= 50), "StreamLink")&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/16689-Using-raster-attribute-other-than-value-in-map-algebra" rel="nofollow" target="_blank"&gt;&lt;BR /&gt;Using raster attribute other than 'value' in map algebra&lt;/A&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/47540-Lookup-function-in-v10.0-Map-Algebra-implementing-dot-notation-in-v10.0" rel="nofollow" target="_blank"&gt;&lt;BR /&gt;Lookup function in v10.0 Map Algebra: implementing dot notation in v10.0?&lt;/A&gt;&lt;BR /&gt;&lt;A class="jive-link-external-small" href="http://forums.arcgis.com/threads/57903-What-is-wrong-with-this-syntax-when-using-the-%E2%80%9Craster-calculator%E2%80%9D" rel="nofollow" target="_blank"&gt;What is wrong with this syntax when using the ???raster calculator????&lt;/A&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 11:23:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/map-algebra-expression-raster-calculator-arcmap10/m-p/588054#M8544</guid>
      <dc:creator>TimothyHales</dc:creator>
      <dc:date>2012-05-23T11:23:00Z</dc:date>
    </item>
    <item>
      <title>Re: map algebra expression / raster calculator arcmap10</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/map-algebra-expression-raster-calculator-arcmap10/m-p/588055#M8545</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;this one worked out well! thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2012 13:18:05 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/map-algebra-expression-raster-calculator-arcmap10/m-p/588055#M8545</guid>
      <dc:creator>MaximilianSesselmann</dc:creator>
      <dc:date>2012-05-23T13:18:05Z</dc:date>
    </item>
  </channel>
</rss>

