Split stack

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
Line 4: Line 4:
 
Specify the multiband file as Input Layer. Select path and name of output file.
 
Specify the multiband file as Input Layer. Select path and name of output file.
 
Click [[File:Qgis_edit_gdal.png]] and type the following additional options into the textbox:
 
Click [[File:Qgis_edit_gdal.png]] and type the following additional options into the textbox:
-b 1
+
*{{typed|text=-b 1}} (Select only first band)
-ot UInt16
+
*{{typed|text=-ot UInt16}} (Output data format: unsigned 16bit integer)
 +
Click {{button|text=OK}}.
 
[[File:Qgis_split_stack.png|400px]]
 
[[File:Qgis_split_stack.png|400px]]
  
 +
Repeat for other bands: Click [[File:Qgis_edit_gdal.png]] to leave the edit mode. Edit name of the '''Output file''' Click [[File:Qgis_edit_gdal.png]] again to edit the and -b option in the command line text window accordingly.
 +
#Create a multiband file with 4 bands. Edit the output file: *{{typed|text=Subset_S2A_MSIL2A_20170619T_B02030408.tif}}
 +
*{{typed|text=-b 2 -b 3 -b 4 -b 8}}
 +
*{{typed|text=-ot UInt16}}
 +
Click {{button|text=OK}}.
 +
  
 
[[Category:Working with Raster Data]]
 
[[Category:Working with Raster Data]]

Revision as of 00:56, 23 October 2017

  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