Split stack

From AWF-Wiki
(Difference between revisions)
Jump to: navigation, search
(Using OTB SplitImage)
(Using OTB SplitImage)
Line 2: Line 2:
 
# Click the {{button|text=Open Data Source Manager}} [[Image:QGIS_3.0_datasource.png|30px]] and then {{button|text=Add raster layer}} [[Image:QGIS_2.0_addrast.png|20px]] and select the file  ''/geodata/raster/s2/Subset_S2A_MSIL2A_20170619T_MUL.tif''.
 
# Click the {{button|text=Open Data Source Manager}} [[Image:QGIS_3.0_datasource.png|30px]] and then {{button|text=Add raster layer}} [[Image:QGIS_2.0_addrast.png|20px]] and select the file  ''/geodata/raster/s2/Subset_S2A_MSIL2A_20170619T_MUL.tif''.
 
# In the processing toolbar, type {{typed|text=split image}} into the search field to find the {{button|text=OTB --> Image Manipulation --> SplitImage}} tool and open it.
 
# In the processing toolbar, type {{typed|text=split image}} into the search field to find the {{button|text=OTB --> Image Manipulation --> SplitImage}} tool and open it.
[[File:qgis-otb-splitimage.png]|200px]
+
[[File:qgis-otb-splitimage.png|200px]]
  
 
=Using GDAL Translate=
 
=Using GDAL Translate=

Revision as of 19:54, 21 October 2018

Using OTB SplitImage

  1. Click the Open Data Source Manager QGIS 3.0 datasource.png and then Add raster layer QGIS 2.0 addrast.png and select the file /geodata/raster/s2/Subset_S2A_MSIL2A_20170619T_MUL.tif.
  2. In the processing toolbar, type split image into the search field to find the OTB --> Image Manipulation --> SplitImage tool and open it.

Qgis-otb-splitimage.png

Using GDAL Translate

  1. Click the Open Data Source Manager QGIS 3.0 datasource.png and then Add raster layer QGIS 2.0 addrast.png and select the file /geodata/raster/s2/Subset_S2A_MSIL2A_20170619T_MUL.tif.
  2. In the processing toolbar, type Translate into the search field to find the GDAL\OGR --> Translate (Convert format) tool and open it.
    • Unfold the Advanced parameters and change the output data format to unsigned 16bit integer): -ot UInt16
    • Click the button ... of Converted to select path and name of output file.
    • Type in the textbox Additional creation parameters: -b 1

( This selects only the first band).

    • Click Run.

Qgis split stack.png

    • Repeat the steps for other bands: change the name of the output file and edit the -b option accordingly.
  1. Create a multiband file with a spectral subset of 4 bands. Change the output file and the additional creation options:
    • Converted output file:Subset_S2A_MSIL2A_20170619T_B02030408.tif
    • Additional creation parameters: -b 2 -b 3 -b 4 -b 8
    • Click Run.
Personal tools
Namespaces

Variants
Actions
Navigation
Development
Toolbox
Print/export