BandNames

BandNames

class BandNames(value)[source]

Bases: sertit.misc.ListEnum

Super class for band names, do not use it.

Methods

from_list(name_list)

Get the band enums from list of band names

to_value_list([name_list])

Get a list from the values of the bands

classmethod from_list(name_list: Union[list, str]) list[source]

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 to_value_list(name_list: Optional[list] = None) list[source]

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