to_str

Contents

to_str#

to_str(to_convert: Union[list, BandNames, str]) 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 (Union[list, BandNames, str]) – Values to convert into str

Returns:

str bands

Return type:

list