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>

Functions

is_clouds(clouds)

Returns True if we have a Clouds-related keyword

is_dem(dem)

Returns True if we have a DEM-related keyword

is_sar_band(band)

Returns True if is a SAR band (from SarBandNames)

is_sat_band(band)

Returns True if is a 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)

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

to_str(to_convert)

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

Modules

eoreader.bands.band_names

eoreader.bands.bands

Bands

eoreader.bands.indices

Set of usual spectral indices.

eoreader.bands.mappings

eoreader.bands.sar_bands

SAR Bands

eoreader.bands.spectral_bands

Spectral Bands