<?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: Arcgis 10 Raster Calculator Range in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/arcgis-10-raster-calculator-range/m-p/658030#M9471</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been having a similar problem trying to select ranges between 157 and 203 in 10. I tried the combinations listed above either got an error message or all pixels selected. I was going for a 0/1 answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally got it by using the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;("aspect" &amp;gt; 157) * ("aspect" &amp;lt; 203)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Definably not the same way I used to do this is version 9!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Oct 2012 12:26:50 GMT</pubDate>
    <dc:creator>DevlynRobson</dc:creator>
    <dc:date>2012-10-17T12:26:50Z</dc:date>
    <item>
      <title>Arcgis 10 Raster Calculator Range</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/arcgis-10-raster-calculator-range/m-p/658027#M9468</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hello,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;this is a very simple question, but for some reason the new syntax in the raster calculator in arcgis 10 is confusing me. I would just like to extract a range and export it into a new raster. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In 9.3.1, I just did 23&amp;lt;=[dem]&amp;lt;=25. This doesn't work in arc10, I tried doing ("dem"=&amp;gt;23) &amp;amp; ("dem"&amp;lt;=25) but I end of getting the entire raster.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;any ideas?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;thanks&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 17:23:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/arcgis-10-raster-calculator-range/m-p/658027#M9468</guid>
      <dc:creator>DeviyaniGurung</dc:creator>
      <dc:date>2011-06-20T17:23:10Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis 10 Raster Calculator Range</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/arcgis-10-raster-calculator-range/m-p/658028#M9469</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Greetings,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In many cases you have to tell the software what to do if the statement is true.&amp;nbsp; You can consider using a conditional statement in this case if you want the output raster to have the same values as the input, but just be a subset of the full data range.&amp;nbsp; The statement below worked well for me.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;output =Con(("Raster.tif" &amp;gt;= 500) &amp;amp; ("Raster.tif" &amp;lt;= 2000),"Raster.tif")&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;If you want the true statement to be 1 and false to be 0, and not worry about maintaining the real input values you can just use this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;output = ("Raster.tif" &amp;gt;= 500) &amp;amp; ("Raster.tif" &amp;lt;= 2000)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Eric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jun 2011 20:03:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/arcgis-10-raster-calculator-range/m-p/658028#M9469</guid>
      <dc:creator>EricRice</dc:creator>
      <dc:date>2011-06-20T20:03:23Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis 10 Raster Calculator Range</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/arcgis-10-raster-calculator-range/m-p/658029#M9470</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;So I am trying to do exactly as described in this thread. I need to extract a range of raster values being .2 or greater and less than .4.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am using 10.1 and I am using your code. Here is the example, this is exaclty how I put it in raster calculator.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt; ("Compare.tif" &amp;gt;= .2) &amp;amp; ("Compare.tif" &amp;lt;= 3.99) and I keep getting errors as shown in the attachement.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please let me know what I'm doing wrong.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jared&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Sep 2012 15:51:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/arcgis-10-raster-calculator-range/m-p/658029#M9470</guid>
      <dc:creator>JaredHowland1</dc:creator>
      <dc:date>2012-09-07T15:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis 10 Raster Calculator Range</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/arcgis-10-raster-calculator-range/m-p/658030#M9471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I have been having a similar problem trying to select ranges between 157 and 203 in 10. I tried the combinations listed above either got an error message or all pixels selected. I was going for a 0/1 answer.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Finally got it by using the following:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;("aspect" &amp;gt; 157) * ("aspect" &amp;lt; 203)&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Definably not the same way I used to do this is version 9!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Good luck!&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Oct 2012 12:26:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/arcgis-10-raster-calculator-range/m-p/658030#M9471</guid>
      <dc:creator>DevlynRobson</dc:creator>
      <dc:date>2012-10-17T12:26:50Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis 10 Raster Calculator Range</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/arcgis-10-raster-calculator-range/m-p/658031#M9472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jared,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Please check to see if you have any other version of python installed on the computer. By default, the site packages for 10.1 should be installed under C:\Python27\ArcGIS10.1\Lib\Site-packages, see if you have a site-packages folder directly under C:\Python27\lib or something like that and there is no numpy within it. That could cause ArcMap starts python directly from C:\Python27\lib, and it gives an error about no numpy module found. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Kailai&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2012 21:11:36 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/arcgis-10-raster-calculator-range/m-p/658031#M9472</guid>
      <dc:creator>KailaiZhang</dc:creator>
      <dc:date>2012-11-09T21:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: Arcgis 10 Raster Calculator Range</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/arcgis-10-raster-calculator-range/m-p/658032#M9473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Thanks all for you replies! &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am getting numpy errors.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I did check the file path that you mentioned and I found a "numpy" folder. C:\Python27\ArcGIS10.1\Lib\site-packages\numpy.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What was it I'm supposed to do with this folder?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Jared&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Dec 2012 17:42:41 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/arcgis-10-raster-calculator-range/m-p/658032#M9473</guid>
      <dc:creator>JaredHowland1</dc:creator>
      <dc:date>2012-12-05T17:42:41Z</dc:date>
    </item>
  </channel>
</rss>

