<?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 How i can split multi-band raster to separate rasters ? in ArcGIS Spatial Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41861#M525</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stragling to solve this "easy" task, i have use more than 8 different softwares to solve it (it was solved by using Matlab). Any idea, suggestion on how can this be done via ArcGIS ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Sep 2014 09:06:17 GMT</pubDate>
    <dc:creator>DimitrisPoursanidis</dc:creator>
    <dc:date>2014-09-01T09:06:17Z</dc:date>
    <item>
      <title>How i can split multi-band raster to separate rasters ?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41861#M525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P style="min-height: 8pt; padding: 0px;"&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Stragling to solve this "easy" task, i have use more than 8 different softwares to solve it (it was solved by using Matlab). Any idea, suggestion on how can this be done via ArcGIS ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 09:06:17 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41861#M525</guid>
      <dc:creator>DimitrisPoursanidis</dc:creator>
      <dc:date>2014-09-01T09:06:17Z</dc:date>
    </item>
    <item>
      <title>Re: How i can split multi-band raster to separate rasters ?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41862#M526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#//00170000009p000000"&gt;take a look&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards,&lt;/P&gt;&lt;P&gt;John&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 12:36:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41862#M526</guid>
      <dc:creator>NtriankosIoannis</dc:creator>
      <dc:date>2014-09-01T12:36:22Z</dc:date>
    </item>
    <item>
      <title>Re: How i can split multi-band raster to separate rasters ?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41863#M527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks but this needs lots of manual work when i have to work with MODIS multiband datasets.&lt;/P&gt;&lt;P&gt;I need just the opposite of the "Compose bands" aka "Decompose Bands".&lt;/P&gt;&lt;P&gt;I find it just only in the Orfeo Toolbox via Monteverdi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 12:52:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41863#M527</guid>
      <dc:creator>DimitrisPoursanidis</dc:creator>
      <dc:date>2014-09-01T12:52:23Z</dc:date>
    </item>
    <item>
      <title>Re: How i can split multi-band raster to separate rasters ?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41864#M528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dimitris,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you need Extract Subdataset.&lt;/P&gt;&lt;P&gt;&lt;A href="http://resources.arcgis.com/en/help/main/10.2/index.html#/Extract_Subdataset/00170000009s000000/" title="http://resources.arcgis.com/en/help/main/10.2/index.html#/Extract_Subdataset/00170000009s000000/"&gt;ArcGIS Help (10.2, 10.2.1, and 10.2.2)&lt;/A&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 12:56:54 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41864#M528</guid>
      <dc:creator>RiyasDeen</dc:creator>
      <dc:date>2014-09-01T12:56:54Z</dc:date>
    </item>
    <item>
      <title>Re: How i can split multi-band raster to separate rasters ?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41865#M529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL style="list-style-type: circle;"&gt;&lt;LI&gt;&lt;SPAN style="margin: 0 0 0 10px;"&gt;Subdataset file formats can be either Hierarchical Data Format (HDF) or National Imagery Transmission Format (NITF) files&lt;/SPAN&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0 0 0 10px;"&gt;So no lack with GEOTIFF.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="margin: 0 0 0 10px;"&gt;No other format will work (and i test it).&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 13:01:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41865#M529</guid>
      <dc:creator>DimitrisPoursanidis</dc:creator>
      <dc:date>2014-09-01T13:01:00Z</dc:date>
    </item>
    <item>
      <title>Re: How i can split multi-band raster to separate rasters ?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41866#M530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="font-size: 12.8000001907349px;"&gt;Hi Dimitris,&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px;"&gt;I remember I struggled with this too, but I cannot recall if there is any tool for that. The code below is roughly what I would try. I don't have ArcGIS at hand at the moment to test it, but hopefully any glitches are only minor.&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px;"&gt;The key is that you can refer to individual bands within a raster dataset by their correct path, just like you can drill down to them in the Catalog directory tree. Usually, bands are called Band_1, Band_2, and so on. The problem is that sometimes they have different names (Layer_1, etc.) The code below deals with this by looping through whatever children the raster has and getting the correct name.&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px;"&gt;Results (individual raster bands) are stored as individual rasters in the output directory.&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;PRE __default_attr="python" __jive_macro_name="code" class="jive_macro_code _jivemacro_uid_14096060455745733 jive_text_macro" jivemacro_uid="_14096060455745733" modifiedtitle="true"&gt;
&lt;P style="font-size: 12.8000001907349px;"&gt;import arcpy, os&lt;/P&gt;
&lt;P style="font-size: 12.8000001907349px;"&gt;in_raster = r'c:\path\to\raster.tif' # input multiband raster&lt;/P&gt;
&lt;P style="font-size: 12.8000001907349px;"&gt;out_folder = r'c:\path\to\output\folder' # preferably an empty folder&lt;/P&gt;
&lt;P style="font-size: 12.8000001907349px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 12.8000001907349px;"&gt;desc = arcpy.Describe(in_raster)&lt;/P&gt;
&lt;P style="font-size: 12.8000001907349px;"&gt;&lt;/P&gt;
&lt;P style="font-size: 12.8000001907349px;"&gt;for band in desc.children:&lt;/P&gt;
&lt;P style="font-size: 12.8000001907349px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; bandName = band.name&lt;/P&gt;
&lt;P style="font-size: 12.8000001907349px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; band_path = os.path.join(in_raster, bandName)&lt;/P&gt;
&lt;P style="font-size: 12.8000001907349px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; dest_path = os.path.join(out_folder, bandName + '.tif')&lt;/P&gt;
&lt;P style="font-size: 12.8000001907349px;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; arcpy.CopyRaster_management(band_path, dest_path, "", "", "", "NONE", "NONE", "") # change parameters here&lt;/P&gt;
&lt;/PRE&gt;&lt;P style="font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px;"&gt;&lt;SPAN style="font-size: 12.8000001907349px;"&gt;I have a feeling there might be a more elegant solution, but if you cannot find it, give this a go. &lt;/SPAN&gt;&lt;SPAN style="font-size: 12.8000001907349px;"&gt;Make sure you change the parameters at row 2,3, and 11, then just paste it into Python window and hit enter. And then enter again.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px;"&gt;&lt;SPAN style="font-size: 12.8000001907349px;"&gt;The code is inspired by &lt;A href="http://support.esri.com/fr/knowledgebase/techarticles/detail/41145" title="http://support.esri.com/fr/knowledgebase/techarticles/detail/41145"&gt;41145 - Add individual raster bands from a multiband raster...&lt;/A&gt; and &lt;A href="https://community.esri.com/thread/31007"&gt;Extract one band from 3 band raster&lt;/A&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px;"&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px;"&gt;&lt;SPAN style="font-size: 12.8000001907349px;"&gt;Let us know if this works for you, I'd really want to know.&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-size: 12.8000001907349px;"&gt;&lt;SPAN style="font-size: 12.8000001907349px;"&gt;Filip.&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 21:24:00 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41866#M530</guid>
      <dc:creator>FilipKrál</dc:creator>
      <dc:date>2014-09-01T21:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: How i can split multi-band raster to separate rasters ?</title>
      <link>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41867#M531</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And yes, it work Filip.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now i will try to put it in a toolbox.&lt;/P&gt;&lt;P&gt;So simple functions and yet are not included in the default tools (not only in arc but also in envi, erdas). Only QGIS via SEXTANTE and link to Orfeo Toolbox have such capability.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://community.esri.com/legacyfs/online/emoticons/wink.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 09:04:46 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-spatial-analyst-questions/how-i-can-split-multi-band-raster-to-separate/m-p/41867#M531</guid>
      <dc:creator>DimitrisPoursanidis</dc:creator>
      <dc:date>2014-09-02T09:04:46Z</dc:date>
    </item>
  </channel>
</rss>

