alias

aliasΒΆ

Aliases for bands and index, created in order to import just this file and not OpticalBandNames, SarBandNames and index.

To use it, simply type:

>>> from eoreader.bands import *
>>> GREEN
<OpticalBandNames.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_index(idx)

Returns True if is an index function from the ands.index module

is_optical_band(band)

Returns True if is an optical band (from pticalBandNames)

is_sar_band(band)

Returns True if is a SAR band (from arBandNames)

is_sat_band(band)

Returns True if is a band (from both arBandNames or pticalBandNames)

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.