Layer Stacking

Combine selected bands from one or more rasters into a single aligned multiband raster. It can also reorder or subset bands from one raster.

Remote Sensing CoreEnd-User DocumentationTheory + Formula + Parameters

1. What This Feature Does

Combine selected bands from one or more rasters into a single aligned multiband raster. It can also reorder or subset bands from one raster.

Cloud workflow: choose data → configure the scientific method → run → review the resulting layer/report. No programming is required.

2. Recommended Workflow

Add one or more rasters. ↓ Choose the bands and desired output order. ↓ Choose the reference raster/grid. ↓ Select an alignment resampling method. ↓ Create the multiband stack.

3. Theory, Methods & Equations

Nearest Neighbour

Copies the value from the nearest source pixel.

z(x,y)=z(xnearest,ynearest)
Best used when: class IDs or exact discrete values must be preserved.

Bilinear

Weighted average of the four surrounding source pixels.

z(x,y)=Σi=1..4wizi, Σwi=1
Best used when: continuous reflectance/elevation is being aligned.

Cubic / Lanczos

Higher-order interpolation using a wider neighborhood.

Best used when: smooth continuous imagery is required and slight overshoot is acceptable.

Average

Aggregates source pixels contributing to the destination cell.

z̄ = (1/n)Σzi
Best used when: downsampling continuous data.

4. Input Data

InputTypeRequirementDescription
Input Rastersraster_stackRequiredAdd one or more rasters. For each raster, optionally specify the bands to keep. Band order in the output follows raster row order and the selected band order within each row.

5. Parameters Available in the Application

ParameterDefaultChoices / RangeHow to Use It
Reference Raster11 to —1-based input raster index used to define output CRS, extent, resolution, width, height, and pixel grid. Other rasters are aligned to this raster when necessary.
Alignment ResamplingnearestNearest Neighbour, Bilinear, Cubic, Lanczos, AverageUsed only when an input raster does not match the reference grid. Nearest Neighbour preserves original pixel values and is the safest default.
Output Nodata-9999.0

6. Output & Interpretation

The result should be interpreted according to the selected method and the physical meaning of the input data. Preserve source units, coordinate reference information, NoData meaning, acquisition date, and preprocessing level when comparing results.

Scientific interpretation: an algorithm can produce a numerically valid result even when the input data are unsuitable. Always check masks, units, sensor characteristics, spatial resolution and reference data.
Important: Upsampling changes the grid spacing but does not create new spatial information. Keep native-resolution limitations in mind.

7. Best Practices

  • Use analysis-ready inputs and remove invalid/cloud/noise artifacts that are not part of the target phenomenon.
  • Choose parameters from the physical scale of the data, not only from visual appearance.
  • Keep categorical and continuous rasters conceptually separate when selecting interpolation/resampling methods.
  • Compare the result with the source image and independent reference information.
  • Document the settings used when results will be compared across dates, sensors or study areas.