SpectralBandNames#

class SpectralBandNames(value)[source]#

Bases: BandNames

This class aims to regroup equivalent bands under the same nomenclature. Each product will set their band number in regard to their corresponding name.

Note: The mapping is based on Sentinel-2 spectral bands.

More information can be retrieved here:

This classification allows index computation and algorithms to run without knowing the band nb of every satellite. If None, then the band does not exist for the satellite.

classmethod eoreader_to_stac(eoreader_name: SpectralBandNames) StacCommonNames[source]#

Convert EOReader bands to STAC common names

Parameters:

eoreader_name (SpectralBandNames) – EOReader name

Returns:

STAC common name

Return type:

StacCommonNames

classmethod stac_to_eoreader(common_name: str, name: str) SpectralBandNames[source]#

Convert STAC common names or name to EOReader bands

Parameters:
  • common_name (str) – STAC common name

  • name (str) – STAC name

Returns:

EOReader name

Return type:

SpectralBandNames

BLUE = 'BLUE'#

Blue

CA = 'COASTAL_AEROSOL'#

Coastal aerosol

F1 = 'F1'#

F1

F2 = 'F2'#

F2

GREEN = 'GREEN'#

Green

GREEN1 = 'GREEN_I'#

GREEN I

GREEN_1 = 'GREEN_I'#

GREEN I

NARROW_NIR = 'NARROW_NIR'#

Narrow NIR, spectrally narrow NIR band, equivalent to B8A (gsd 20m) for Sentinel-2 products, equivalent to NIR band for other products

NIR(B8 for Sentinel-2) = 'NIR'#

NIR (B8 for Sentinel-2)

Oa01 = 'Oa01'#

Oa01

Oa02 = 'Oa02'#

Oa02

Oa09 = 'Oa09'#

Oa09

Oa10 = 'Oa10'#

Oa10

Oa13 = 'Oa13'#

Oa13

Oa14 = 'Oa14'#

Oa14

Oa15 = 'Oa15'#

Oa15

Oa18 = 'Oa18'#

Oa18

Oa19 = 'Oa19'#

Oa01

Oa21 = 'Oa21'#

Oa01

PAN = 'PANCHROMATIC'#

Panchromatic

RED = 'RED'#

Red

S7 = 'S7'#

S7

SWIR_1 = 'SWIR_1'#

SWIR, Band 1

SWIR_2 = 'SWIR_2'#

SWIR, Band 2

SWIR_CIRRUS = 'SWIR_CIRRUS'#

SWIR Cirrus

TIR_1 = 'THERMAL_IR_1'#

Thermal IR, Band 1

TIR_2 = 'THERMAL_IR_2'#

Thermal IR, Band 2

VRE_1 = 'VEGETATION_RED_EDGE_1'#

Vegetation red edge, Band 1

VRE_2 = 'VEGETATION_RED_EDGE_2'#

Vegetation red edge, Band 2

VRE_3 = 'VEGETATION_RED_EDGE_3'#

Vegetation red edge, Band 3

WV = 'WATER_VAPOUR'#

Water vapour

YELLOW = 'YELLOW'#

Yellow