<?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: Problem with Extraction by Attributes Output in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188749#M2673</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That will work but I have negative values that I need to keep in the raster so getting rid of everything less than zero will not give the desired output. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Arc 10:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SetNull("MyRaster", "MyRaster", "Value = 0 OR Value = -9999")&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Arc 9.3 Single Output Map Algebra:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;setnull(myraster eq 0 or myraster eq -9999,myraster)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 Jul 2011 22:34:20 GMT</pubDate>
    <dc:creator>curtvprice</dc:creator>
    <dc:date>2011-07-19T22:34:20Z</dc:date>
    <item>
      <title>Problem with Extraction by Attributes Output</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188744#M2668</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Has anyone else experienced an issue with output from the extraction tool in Spatial Analyst?&amp;nbsp; I am trying to extract unwanted values from a raster and the result always comes up as a raster full of zeros.&amp;nbsp; The odd thing is that I can select those values by the attributes but extracting them using SA will not work.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 16:44:53 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188744#M2668</guid>
      <dc:creator>steveSuperczynski</dc:creator>
      <dc:date>2011-07-18T16:44:53Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Extraction by Attributes Output</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188745#M2669</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;ExtractByAttributes does not remove unwanted values from a raster.&amp;nbsp; Can you describe the exact procedure you are using (ie which tool or raster calculator syntax)?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 16:51:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188745#M2669</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-07-18T16:51:17Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Extraction by Attributes Output</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188746#M2670</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I have is a large number of rasters that I want to average together. In order to do so I need to remove the missing values (-9999) and zeros from the raster. I was trying to use the extract by attributes to extract all values in the raster which are &lt;/SPAN&gt;&lt;STRONG&gt;not&lt;/STRONG&gt;&lt;SPAN&gt; "-9999" and "0" and save them to a new raster which I can use in the averaging process.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Or the SQL version "values &amp;lt;&amp;gt; -9999 and values &amp;lt;&amp;gt; 0"&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This statement works great at selecting pixels via the attribute table which means it should work with the extraction by attributes tool as well I would think. However I'm positive the statement is not at fault because doing a simple clause wherein I try to extract all values greater than zero produces the same output.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 17:07:37 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188746#M2670</guid>
      <dc:creator>steveSuperczynski</dc:creator>
      <dc:date>2011-07-18T17:07:37Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Extraction by Attributes Output</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188747#M2671</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;SetNull("MyRaster", "MyRaster", "Value &amp;lt;= 0")&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;might work (version 10 syntax&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 Jul 2011 20:36:49 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188747#M2671</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2011-07-18T20:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Extraction by Attributes Output</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188748#M2672</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;That will work but I have negative values that I need to keep in the raster so getting rid of everything less than zero will not give the desired output. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I can get it to work with two SetNull commands in Model Builder however I was having trouble getting it to work in a script and thought the extraction tool would be easier (only to be wrong again!). I must admit though my knowledge of python and the arc10 command window are quite limited so it could be I am just messing something up there that could be easily remedied.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the ideas,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 17:25:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188748#M2672</guid>
      <dc:creator>steveSuperczynski</dc:creator>
      <dc:date>2011-07-19T17:25:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Extraction by Attributes Output</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188749#M2673</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;That will work but I have negative values that I need to keep in the raster so getting rid of everything less than zero will not give the desired output. &lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Arc 10:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;SetNull("MyRaster", "MyRaster", "Value = 0 OR Value = -9999")&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;Arc 9.3 Single Output Map Algebra:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE __default_attr="plain" __jive_macro_name="code" class="jive_macro_code jive_text_macro"&gt;setnull(myraster eq 0 or myraster eq -9999,myraster)&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 Jul 2011 22:34:20 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188749#M2673</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2011-07-19T22:34:20Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Extraction by Attributes Output</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188750#M2674</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Yep tried that already too... I don't know why but whatever I try does not seem to work properly. Using the SetNull command gives me strange output where none of the -9999 values are removed and only some of the 0 values are removed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 13:05:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188750#M2674</guid>
      <dc:creator>steveSuperczynski</dc:creator>
      <dc:date>2011-07-20T13:05:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Extraction by Attributes Output</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188751#M2675</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;You may be at the mercy of the format of ENVI's .tif file output, in which case the best solution is to convert to grid -- the only sure way to control bit depth, etc.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I highly recommend you take this to tech support. If the problem is on the ArcGIS side, this is the only way things like this get fixed.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 14:27:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188751#M2675</guid>
      <dc:creator>curtvprice</dc:creator>
      <dc:date>2011-07-20T14:27:44Z</dc:date>
    </item>
    <item>
      <title>Re: Problem with Extraction by Attributes Output</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188752#M2676</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Well these tiff images were converted from .hdf files using the MODIS Reprojection Tool (MRT). This has not caused any issues with ArcMap before. The extraction process works like a charm in 9.3 so I think there is def something up with how ArcGIS 10 is handling these .tif files. I have contacted ERSI support so we will see what they come back with.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Steve&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Jul 2011 19:23:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/problem-with-extraction-by-attributes-output/m-p/188752#M2676</guid>
      <dc:creator>steveSuperczynski</dc:creator>
      <dc:date>2011-07-20T19:23:10Z</dc:date>
    </item>
  </channel>
</rss>

