<?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 Raster calculator problem with python in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-problem-with-python/m-p/1008731#M11078</link>
    <description>&lt;P&gt;I wanted to do some radiometric corrections on band 1 but raster calculator fails and it gives me this message. I already uninstaled and reinstaled arcgis but te problem stays. My teacher didn't know what to do either.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nueva imagen de mapa de bits.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1942iC75AFFEC41C5B2A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nueva imagen de mapa de bits.jpg" alt="Nueva imagen de mapa de bits.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
    <pubDate>Thu, 10 Dec 2020 23:48:25 GMT</pubDate>
    <dc:creator>HectorCN</dc:creator>
    <dc:date>2020-12-10T23:48:25Z</dc:date>
    <item>
      <title>Raster calculator problem with python</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-problem-with-python/m-p/1008731#M11078</link>
      <description>&lt;P&gt;I wanted to do some radiometric corrections on band 1 but raster calculator fails and it gives me this message. I already uninstaled and reinstaled arcgis but te problem stays. My teacher didn't know what to do either.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Nueva imagen de mapa de bits.jpg" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/1942iC75AFFEC41C5B2A3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="Nueva imagen de mapa de bits.jpg" alt="Nueva imagen de mapa de bits.jpg" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;</description>
      <pubDate>Thu, 10 Dec 2020 23:48:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-problem-with-python/m-p/1008731#M11078</guid>
      <dc:creator>HectorCN</dc:creator>
      <dc:date>2020-12-10T23:48:25Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator problem with python</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-problem-with-python/m-p/1008745#M11079</link>
      <description>&lt;P&gt;Lots of places things can go wrong&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExNTI4MA==" target="_blank"&gt;BUG-000115280: Raster Calculator returns the Error 000539 when the .. (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;if the expression originated from modelbuilder for instance&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/technical-article/000011928" target="_blank"&gt;Error: ERROR 000539: Error running expression: rcexec() (esri.com)&lt;/A&gt;&lt;/P&gt;&lt;P&gt;or dozens more links&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/Search-Results#search?q=Error%20000539" target="_blank"&gt;Esri Support Search-Results&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;But in short, try saving the output to a simple folder as a tif file rather than into a geodatabase in the Users folder (ie c:\temp\answer.tif)&amp;nbsp; And make sure you are using the Raster Calculator in the Spatial Analyst Toolbar.&amp;nbsp; And finally... if you are using arcmap switch to ArcGIS Pro&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 11 Dec 2020 01:14:25 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-problem-with-python/m-p/1008745#M11079</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2020-12-11T01:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator problem with python</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-problem-with-python/m-p/1009393#M11082</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I see in the error message that a *.tif is trying to be written into an fgdb, *.tif cannot be written to an fgdb.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="LizGraham_0-1607972027173.png" style="width: 400px;"&gt;&lt;img src="https://community.esri.com/t5/image/serverpage/image-id/2093i53516E01548628B6/image-size/medium?v=v2&amp;amp;px=400" role="button" title="LizGraham_0-1607972027173.png" alt="LizGraham_0-1607972027173.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;Try removing the *.tif from the output raster name, or write a *.tif to a folder not to an fgdb.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Liz&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Dec 2020 18:55:42 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-problem-with-python/m-p/1009393#M11082</guid>
      <dc:creator>LizGraham</dc:creator>
      <dc:date>2020-12-14T18:55:42Z</dc:date>
    </item>
    <item>
      <title>Re: Raster calculator problem with python</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-problem-with-python/m-p/1236286#M11812</link>
      <description>&lt;P&gt;With GDAL, you can read and write several different raster formats in Python. Python automatically registers all known GDAL drivers for reading supported formats when the importing the GDAL module. Most common file formats include for example TIFF and GeoTIFF, ASCII Grid and Erdas Imagine .img -files.&lt;/P&gt;&lt;P&gt;Landsat 8 bands are stored as separate GeoTIFF -files in the original package. Each band contains information of surface reflectance from different ranges of the electromagnetic spectrum. You can read more information about Landsat 8 here.&lt;/P&gt;&lt;P&gt;Let's start with inspecting one of the files we downloaded:&lt;/P&gt;&lt;P&gt;In [ ]:&lt;BR /&gt;from osgeo import gdal&lt;/P&gt;&lt;P&gt;filepath = r"LandsatData/LC81910182016153LGN00_sr_band4.tif"&lt;/P&gt;&lt;P&gt;# Open the file:&lt;BR /&gt;raster = gdal.Open(filepath)&lt;/P&gt;&lt;P&gt;# Check type of the variable 'raster'&lt;BR /&gt;type(raster)&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rachel Gomez&lt;/P&gt;</description>
      <pubDate>Wed, 30 Nov 2022 07:48:44 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/raster-calculator-problem-with-python/m-p/1236286#M11812</guid>
      <dc:creator>RachelGomez</dc:creator>
      <dc:date>2022-11-30T07:48:44Z</dc:date>
    </item>
  </channel>
</rss>

