band_mapping: Sensor Band Mapping Presets

View source: R/band_mapping.R

band_mappingR Documentation

Sensor Band Mapping Presets

Description

Provides standard band name mappings for commonly used multispectral sensors and generic naming conventions.

Usage

band_mapping(
  sensor = c("generic", "sentinel2", "s2", "landsat8", "landsat9", "l8", "l9",
    "landsat7", "landsat5", "tm", "etm")
)

Arguments

sensor

Character string specifying the sensor preset. Supported options:

  • "generic": Common names (blue, green, red, nir, swir, swir1, swir2, rededge).

  • "sentinel2" or "s2": Sentinel-2 MSI bands (B02, B03, B04, B08, B11, B12, etc.).

  • "landsat8" / "landsat9" or "l8" / "l9": Landsat 8/9 OLI bands (B1 to B7).

  • "landsat7" / "landsat5" or "etm" / "tm": Landsat 4-7 TM/ETM+ bands (B1 to B7).

Defaults to "generic".

Value

A named character vector where names represent standardized spectral band roles (e.g., "nir", "red") and values represent corresponding band or layer names for the selected sensor.

Examples

# Generic mapping
band_mapping("generic")

# Sentinel-2 band mapping
band_mapping("sentinel2")

# Landsat 8/9 band mapping
band_mapping("landsat8")


GeoIndexR documentation built on Oct. 10, 2026, 5:08 p.m.