Split stack

From AWF-Wiki
Revision as of 23:56, 22 October 2017 by Hfuchs (Talk | contribs)

Jump to: navigation, search
  1. Click the Add raster layer QGIS 2.0 addrast.png and select the file C:/OSGeo4W64/geodata/raster/s2/Subset_S2A_MSIL2A_20170619T.tif.
  2. After clicking Open, the raster layer appears on the QGIS canvas.
  3. Go to Raster --> Conversion --> Translate(Convert format).

Specify the multiband file as Input Layer. Select path and name of output file. Click Qgis edit gdal.png and type the following additional options into the textbox:

  • -b 1 (Select only first band)
  • -ot UInt16 (Output data format: unsigned 16bit integer)

Click OK. Qgis split stack.png

Repeat for other bands: Click Qgis edit gdal.png to leave the edit mode. Edit name of the Output file Click Qgis edit gdal.png again to edit the and -b option in the command line text window accordingly.

  1. Create a multiband file with 4 bands. Edit the output file: *Subset_S2A_MSIL2A_20170619T_B02030408.tif
  • -b 2 -b 3 -b 4 -b 8
  • -ot UInt16

Click OK.

Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export