<?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: ERROR 000539 in Raster Calculator with JPEG 2000 in ArcGIS Pro Questions</title>
    <link>https://community.esri.com/t5/arcgis-pro-questions/error-000539-in-raster-calculator-with-jpeg-2000/m-p/1106031#M46487</link>
    <description>&lt;P&gt;"B08a" is a string&lt;/P&gt;&lt;P&gt;B08a&amp;nbsp; is a variable name&lt;/P&gt;&lt;LI-CODE lang="python"&gt;z = 2.5 * ((B08a/10000 - B04a/10000) / ((B08a/10000 + 6*(B04a/10000)) - (7.5 * B02a/10000)) + 1)&lt;/LI-CODE&gt;</description>
    <pubDate>Fri, 08 Oct 2021 18:00:10 GMT</pubDate>
    <dc:creator>DanPatterson</dc:creator>
    <dc:date>2021-10-08T18:00:10Z</dc:date>
    <item>
      <title>ERROR 000539 in Raster Calculator with JPEG 2000</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-000539-in-raster-calculator-with-jpeg-2000/m-p/1105905#M46474</link>
      <description>&lt;P&gt;I'm using ArcGIS Pro 2.8.3. I'm trying to do a calculation with the Raster Calculator tool for files in the JPEG 2000 format, but when I try running my code, I receive the error message&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;Failed: error ERROR 000539: Traceback (most recent call last):&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;File "&amp;lt;expression&amp;gt;", line 1, in &amp;lt;module&amp;gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;File "&amp;lt;string&amp;gt;", line 5, in rcexec_DC684390_0C54_4F14_9EBF_B34DF3F2E1B1&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;TypeError: unsupported operand type(s) for /: 'str' and 'int'&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;SPAN&gt;My code is:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;2.5*((("B08a"/10000)-("B04a"/10000))/((("B08a"/10000)+(6*("B04a"/10000))-(7.5*("B02a"/10000)))+1))&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;where B08a, B04a, and B02a are all rasters in the JPEG2000 format.&lt;/P&gt;&lt;P&gt;Any advice on why I might be getting this error or how to fix it would be greatly appreciated.&lt;/P&gt;</description>
      <pubDate>Fri, 08 Oct 2021 14:22:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-000539-in-raster-calculator-with-jpeg-2000/m-p/1105905#M46474</guid>
      <dc:creator>BeckB</dc:creator>
      <dc:date>2021-10-08T14:22:45Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 000539 in Raster Calculator with JPEG 2000</title>
      <link>https://community.esri.com/t5/arcgis-pro-questions/error-000539-in-raster-calculator-with-jpeg-2000/m-p/1106031#M46487</link>
      <description>&lt;P&gt;"B08a" is a string&lt;/P&gt;&lt;P&gt;B08a&amp;nbsp; is a variable name&lt;/P&gt;&lt;LI-CODE lang="python"&gt;z = 2.5 * ((B08a/10000 - B04a/10000) / ((B08a/10000 + 6*(B04a/10000)) - (7.5 * B02a/10000)) + 1)&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 08 Oct 2021 18:00:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-pro-questions/error-000539-in-raster-calculator-with-jpeg-2000/m-p/1106031#M46487</guid>
      <dc:creator>DanPatterson</dc:creator>
      <dc:date>2021-10-08T18:00:10Z</dc:date>
    </item>
  </channel>
</rss>

