LandsatMaskBandNames#

class LandsatMaskBandNames(value)[source]#

Bases: MaskBandNames

Landsat Mask Band names

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:

list

Example

>>> TsxPolarization.convert_from(["SINGLE", "S", TsxPolarization.QUAD])
[<TsxPolarization.SINGLE: 'S'>, <TsxPolarization.SINGLE: 'S'>, <TsxPolarization.QUAD: 'Q'>]
classmethod from_list(name_list: list | str) list#

Get the band enums from list of band names

>>> SarBandNames.from_list("VV")
[<SarBandNames.VV: 'VV'>]
Parameters:

name_list (Union[list, str]) – List of names

Returns:

List of enums

Return type:

list

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"]
classmethod to_value_list(name_list: list | None = None) list#

Get a list from the values of the bands

 >>> SarBandNames.to_name_list([SarBandNames.HV_DSPK, SarBandNames.VV])
['HV_DSPK', 'VV']
>>> SarBandNames.to_name_list()
['VV', 'VV_DSPK', 'HH', 'HH_DSPK', 'VH', 'VH_DSPK', 'HV', 'HV_DSPK']
Parameters:

name_list (list) – List of band names

Returns:

List of band values

Return type:

list

BQA = 'BQA'#

Landsat mask (collection 1) - BQA

QA_PIXEL = 'QA_PIXEL'#

Landsat mask (collection 2) - Quality Assessment pixel

QA_RADSAT = 'QA_RADSAT'#

Landsat mask (collection 2) - QA_RADSAT

SAA = 'SAA'#

Landsat (collection 2) mask - SAA

SR_QA_AEROSOL = 'SR_QA_AEROSOL'#

Landsat mask (collection 2, level 2) - SR_QA_AEROSOL

ST_QA = 'ST_QA'#

Landsat mask (collection 2, level 2) - ST_QA

SZA = 'SZA'#

Landsat (collection 2) mask - SZA

VAA = 'VAA'#

Landsat (collection 2) mask - VAA

VZA = 'VZA'#

Landsat (collection 2) mask - VZA