4

I have a multilayer image with hundreds of bands and I would like to extract them all automatically to single raster files, one file for every layer.

I'm looking for an automated process. I've got aware of the Orfeo Toolbox split image tool, but I don't manage to make it work.

Any suggestion?

1
  • 2
    Use gdal_translate and select the band with -b option. Make a script and walk through all the bands.
    – user30184
    Nov 29, 2016 at 17:54

2 Answers 2

2

Use Orfeo Toolbox > Image Manipulation > Split Image. This splits an n-band multiband image into n images. The output filename is a prefix and the channels (bands) are numbers accordingly e.g. if filename = 'myImage.tif' then the first band will be saved as 'myImage_0.tif' and the second 'myImage_1.tif' and so on. See here for a more detailed tutorial.

2

If you are having difficulties to install Orfeo Toolbox, the solution by @sirgeo Orfeo Toolbox for QGIS not activating after trying several suggestions worked for me, too.

In my case:

  1. Download Orfeo Toolbox from https://www.orfeo-toolbox.org/download/
  2. Extract the zip file into C:\qgis_tools (Windows)
  3. Set options for Applications folder and Command line tools folder (see below image)

enter image description here

NB. Command line tools was assigned to "bin" folder.

Once set-up, you can follow the instruction by @MappaGnosis.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.