geestac.bands#
Module for bands.
Classes#
General Band class. |
|
Initialize a Bit. |
|
Bit Band (bits mask). |
|
Initialize a bit group. |
|
Initialize a bitmask. |
|
Categorical Band. |
|
Initialize a category. |
|
Optical Band. |
Module Contents#
- class geestac.bands.Band(name, scale, description, range=None)[source]#
General Band class.
- Parameters:
name (str) – name of the band.
scale (int | float) – spatial resolution.
description (str) – description of the band.
range (dict | None) – range of the values.
- property estimated_range: bool | None[source]#
If range exists in STAC, return whether the range is estimated or not.
- Return type:
bool | None
- property maximum_value: int | float | None[source]#
If exists in the STAC, return the maximum value.
- Return type:
int | float | None
- class geestac.bands.Bit(value, description)[source]#
Initialize a Bit.
- Parameters:
value (int) – value of the bit.
description (str) – description of the bit.
- class geestac.bands.BitBand(name, scale, description, bitmask)[source]#
Bases:
BandBit Band (bits mask).
- Parameters:
name (str) – name of the band.
scale (int | float) – spatial resolution.
description (str) – description of the band.
bitmask (Bitmask) – the bit mask.
- class geestac.bands.BitGroup(first, count, description, bits)[source]#
Initialize a bit group.
- Parameters:
first (int) – first bit.
count (int) – number of bits.
description (str) – description of the bit information.
bits (geestac.custom_types.ListNamespace[Bit]) – a ListNamespace of Bit objects.
- class geestac.bands.Bitmask(parts, total)[source]#
Initialize a bitmask.
- Parameters:
parts (geestac.custom_types.ListNamespace[BitGroup]) – a ListNamespace of BitGroup.
total (int) – total number of bits.
- class geestac.bands.CategoricalBand(name, scale, description, class_info)[source]#
Bases:
BandCategorical Band.
- Parameters:
name (str) – name of the band.
scale (int | float) – spatial resolution.
description (str) – description of the band.
class_info (geestac.custom_types.ListNamespace[Category]) – a ListNamespace with the class value as keys and the class names as values.
- class geestac.bands.Category(value, description, color=None)[source]#
Initialize a category.
- Parameters:
value (int) – value of the category.
description (str) – description of the category.
color (str | None) – color associated to the category (optional).
- class geestac.bands.OpticalBand(name, scale, description, center_wavelength=None, offset=None, multiplier=None, range=None)[source]#
Bases:
BandOptical Band.
- Parameters:
name (str) – name of the band.
scale (int | float) – spatial resolution.
description (str) – description of the band.
center_wavelength (int | float | None) – center wavelength.
offset (int | float | None) – value to “move” the raw value.
multiplier (int | float | None) – value to “multiply” the raw value (GEE calls this value ‘scale’)
range (dict | None) – range of the values.