bands

bands#

Band module containing:

  • wrapper for SAR and optical bands

  • Index definitions

  • Aliases for all these useful variables

To use it, simply type:

>>> from eoreader.bands import *
>>> GREEN
<SpectralBandNames.GREEN: 'GREEN'>
>>> HH
<SarBandNames.HH: 'HH'>
>>> NDVI
<function NDVI at 0x00000261F6FFA950>

Module Attributes

BandType

Spectral, SAR, DEM or Cloud band names

BandsType

EOReader bands type, either a list or a BandType.

Functions

is_clouds(clouds)

Returns True if is a cloud band (from CloudBandNames)

is_dem(dem)

Returns True if is a DEM band (from DemBandNames)

is_mask(mask)

Returns True if is a Mask band (from MaskBandNames)

is_s2_l2a_specific_band(band)

Returns True if is a S2 L2A specific band (from Sentinel2L2ABands)

is_sar_band(band)

Returns True if is a SAR band (from SarBandNames)

is_sat_band(band)

Returns True if is a satellite band (from both SarBandNames or SpectralBandNames)

is_spectral_band(band)

Returns True if is a spectral band (from SpectralBandNames)

is_thermal_band(band)

Returns True if is a spectral and a thermal band (from SpectralBandNames)

to_band(to_convert[, as_list])

Convert a string (or real value) to any alias, band or index.

to_str(to_convert[, as_list])

Convert a string (or real value) to any alias, band or index.

Modules

band_names

bands

Bands

indices

Set of usual spectral indices.

mappings

sar_bands

SAR Bands

spectral_bands

Spectral Bands