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.alias import *
>>> GREEN
<OpticalBandNames.GREEN: 'GREEN'>
>>> HH
<SarBandNames.HH: 'HH'>
>>> NDVI
<function NDVI at 0x00000261F6FFA950>

Functions

is_band(band)

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

is_clouds(classif)

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 bands.index module

is_optical_band(band)

Returns True if is an optical band (from OpticalBandNames)

is_sar_band(band)

Returns True if is a SAR band (from SarBandNames)

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.