SlstrView#

class SlstrView(value)[source]#

Bases: ListEnum

Sentinel-3 SLSTR views: nadir view (n) and oblique view (o)

Used in the context:
  • “an” and “ao” refer to the 500 m grid, stripe A, respectively for nadir view (n) and oblique view (o)

  • “bn” and “bo” refer to the 500 m grid, stripe B

  • “cn” and “co” refer to the 500 m grid, stripe C

  • “in” and “io” refer to the 1 km grid

  • “fn” and “fo” refer to the F1 channel 1 km grid

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_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"]
NADIR = 'n'#

Nadir view (n)

OBLIQUE = 'o'#

Oblique view (o)