Subset raster layer bands

Subsets raster layer bands and stores the result as a VRT file.This is a slimmed down version of the more powerful “Translate raster layer” algorithm.

Usage:

  1. Open the algorithm from the processing toolbox.

  2. Select the bands to included in the subsetted raster. If necessary, tick the Exclude bad bands box, then click run.

    ../../../../_images/subset_bands.png

Parameters

Raster layer [raster]

Source raster layer.

Selected bands [band]

Bands to subset and rearrange. An empty selection defaults to all bands in native order.

Exclude bad bands [boolean]

Whether to exclude bad bands.

Default: False

Derive and exclude additional bad bands [boolean]

Whether to derive and exclude additional bad bands fully filled with inf, nan or no data values.

Default: False

Outputs

Output raster layer [rasterDestination]

Raster file destination.

Command-line usage

>qgis_process help enmapbox:SubsetRasterLayerBands:

----------------
Arguments
----------------

raster: Raster layer
    Argument type:  raster
    Acceptable values:
            - Path to a raster layer
bandList: Selected bands (optional)
    Argument type:  band
    Acceptable values:
            - Integer value representing an existing raster band number
excludeBadBands: Exclude bad bands
    Default value:  false
    Argument type:  boolean
    Acceptable values:
            - 1 for true/yes
            - 0 for false/no
            - field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field
            - expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression
excludeDerivedBadBands: Derive and exclude additional bad bands
    Default value:  false
    Argument type:  boolean
    Acceptable values:
            - 1 for true/yes
            - 0 for false/no
            - field:FIELD_NAME to use a data defined value taken from the FIELD_NAME field
            - expression:SOME EXPRESSION to use a data defined value calculated using a custom QGIS expression
outputRaster: Output raster layer
    Argument type:  rasterDestination
    Acceptable values:
            - Path for new raster layer

----------------
Outputs
----------------

outputRaster: <outputRaster>
    Output raster layer