LandsatInstrument#
- class LandsatInstrument(value)[source]#
Bases:
ListEnum
Landsat instruments
- classmethod convert_from(to_convert: list | str) list #
Convert from a list or a string to an enum instance
- Parameters:
to_convert (Union[list, str]) – List or string to convert into an enum instance
- Returns:
Converted list
- Return type:
Example
>>> TsxPolarization.convert_from(["SINGLE", "S", TsxPolarization.QUAD]) [<TsxPolarization.SINGLE: 'S'>, <TsxPolarization.SINGLE: 'S'>, <TsxPolarization.QUAD: 'Q'>]
- classmethod from_value(val: Any) ListEnum #
Get the enum class from its value:
- Parameters:
val (Any) – Value of the Enum
- Returns:
Enum with value
- Return type:
ListEnum
Example
>>> TsxPolarization.from_value("Q") <TsxPolarization.QUAD: 'Q'>
- classmethod list_names() list #
Get the name list of this enum:
Example
>>> TsxPolarization.list_values() ["SINGLE", "DUAL", "QUAD", "TWIN"]
- classmethod list_values() list #
Get the value list of this enum
Example
>>> TsxPolarization.list_values() ["S", "D", "Q", "T"]
- ETM = 'ETM+'#
ETM+ Instrument, for Landsat-7 constellation
- MSS = 'MSS'#
MSS Instrument, for Landsat-5, 4, 3, 2, 1 constellation
- OLI = 'OLI'#
OLI Instrument, for Landsat-8 and 9 constellation
- OLI_TIRS = 'OLI-TIRS'#
OLI-TIRS instruments combined, for Landsat-8 and 9 constellation
- TIRS = 'TIRS'#
TIRS Instrument, for Landsat-8 and 9 constellation
- TM = 'TM'#
TM Instrument, for Landsat-5 and 4 constellation