<?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 Extract single bands from ECW image using Arcpy in Python Questions</title>
    <link>https://community.esri.com/t5/python-questions/extract-single-bands-from-ecw-image-using-arcpy/m-p/183921#M14145</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ive also asked this over at the Spatial Analyst group with no response, so I thought I’d try here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im looking for a Pythonic way to extract a single band from a multi band ECW image. The ECW part is important, as every time I try to run an ArcToolbox tool on the data, Arcmap immediately crashes. I get the same result using IDLE and arcpy. The only success I’ve had on the Desktop front was by loading the specific band, and then right clicking &amp;gt; Export Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the one bit of success I had was creating a faster object using arcpy.sa.Raster and then saving this to a different workspace. However this copied all bands over, not just the band I had selected for the raster object. (path/image.ecw/Red for example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why am I doing this? I need to be able to batch generate a heap of NDVI outputs, where I need to extract the red band from the VIS image and the IR band from the IR image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any my suggestions will be gratefully appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 30 May 2019 11:07:07 GMT</pubDate>
    <dc:creator>AnthonyCheesman1</dc:creator>
    <dc:date>2019-05-30T11:07:07Z</dc:date>
    <item>
      <title>Extract single bands from ECW image using Arcpy</title>
      <link>https://community.esri.com/t5/python-questions/extract-single-bands-from-ecw-image-using-arcpy/m-p/183921#M14145</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ive also asked this over at the Spatial Analyst group with no response, so I thought I’d try here.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;im looking for a Pythonic way to extract a single band from a multi band ECW image. The ECW part is important, as every time I try to run an ArcToolbox tool on the data, Arcmap immediately crashes. I get the same result using IDLE and arcpy. The only success I’ve had on the Desktop front was by loading the specific band, and then right clicking &amp;gt; Export Data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the one bit of success I had was creating a faster object using arcpy.sa.Raster and then saving this to a different workspace. However this copied all bands over, not just the band I had selected for the raster object. (path/image.ecw/Red for example).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Why am I doing this? I need to be able to batch generate a heap of NDVI outputs, where I need to extract the red band from the VIS image and the IR band from the IR image.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any my suggestions will be gratefully appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Ant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 11:07:07 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extract-single-bands-from-ecw-image-using-arcpy/m-p/183921#M14145</guid>
      <dc:creator>AnthonyCheesman1</dc:creator>
      <dc:date>2019-05-30T11:07:07Z</dc:date>
    </item>
    <item>
      <title>Re: Extract single bands from ECW image using Arcpy</title>
      <link>https://community.esri.com/t5/python-questions/extract-single-bands-from-ecw-image-using-arcpy/m-p/183922#M14146</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what version of ArcMap? or is it ArcGIS Pro you are using.&amp;nbsp; Non-English characters? particular locale?&lt;/P&gt;&lt;P&gt;I ask because&lt;/P&gt;&lt;P&gt;&lt;A class="link-titled" href="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExMDkzMQ==" title="https://support.esri.com/en/bugs/nimbus/QlVHLTAwMDExMDkzMQ=="&gt;BUG-000110931: Unable to load Enhanced Compression Wavelet (ECW) fi..&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;plus a load more in the last year&lt;/P&gt;&lt;P&gt;&lt;A href="https://support.esri.com/en/Search-Results#search?q=ECW import&amp;amp;content-type=Bugs"&gt;ECW bug list for the last year&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 12:43:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extract-single-bands-from-ecw-image-using-arcpy/m-p/183922#M14146</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-05-30T12:43:26Z</dc:date>
    </item>
    <item>
      <title>Re: Extract single bands from ECW image using Arcpy</title>
      <link>https://community.esri.com/t5/python-questions/extract-single-bands-from-ecw-image-using-arcpy/m-p/183923#M14147</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I’ve had the same issue with 10.3.1 and 10.5.1&lt;EM&gt;.&amp;nbsp;&lt;/EM&gt;Australia, en-au. No non-English characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;That link above re: 10.6.1 is very interesting, not the least because we are (were?) about to do a system-wide migration to 10.6.1 - that may knock it on the head.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After I posted yesterday evening, I got to thinking about any other libraries that may be able to assist, and had a hunt around. It looks as though GDAL should be able to open the images and extract the bands, which I could then load as arrays in numpy to do the required algebra for the NDVI analysis. I haven’t tried yet but it sounds like a promising avenue to investigate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anthony&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 May 2019 21:38:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extract-single-bands-from-ecw-image-using-arcpy/m-p/183923#M14147</guid>
      <dc:creator>AnthonyCheesman1</dc:creator>
      <dc:date>2019-05-30T21:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Extract single bands from ECW image using Arcpy</title>
      <link>https://community.esri.com/t5/python-questions/extract-single-bands-from-ecw-image-using-arcpy/m-p/183924#M14148</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Anthony, gdal is within the esri anaconda distribution of ArcGIS Pro... check to see if it is there for ArcMap.&amp;nbsp; Just about everbody uses it at some level&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 May 2019 02:46:26 GMT</pubDate>
      <guid>https://community.esri.com/t5/python-questions/extract-single-bands-from-ecw-image-using-arcpy/m-p/183924#M14148</guid>
      <dc:creator>DanPatterson_Retired</dc:creator>
      <dc:date>2019-05-31T02:46:26Z</dc:date>
    </item>
  </channel>
</rss>

