eoreader.bands.alias.to_str

eoreader.bands.alias.to_str

to_str(to_convert: list) list[source]

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

You can pass the name or the value of the bands.

>>> to_str(["NDVI", "GREEN", RED, "VH_DSPK", "SLOPE", DEM, "CLOUDS", CLOUDS])
['NDVI', 'GREEN', 'RED', 'VH_DSPK', 'SLOPE', 'DEM', 'CLOUDS', 'CLOUDS']
Parameters

to_convert (list) – Values to convert into str

Returns

str bands

Return type

list