satellitetools.common.classes
Common classes for gee and aws_cog process.
@author: Olli Nevalainen (Finnish Meteorological Institute)
Attributes
Classes
str(object='') -> str |
|
Data source for the data request. |
|
Area of interest (AOI) class. |
|
Module Contents
- class satellitetools.common.classes.StrEnum[source]
Bases:
str,enum.Enumstr(object=’’) -> str str(bytes_or_buffer[, encoding[, errors]]) -> str
Create a new string object from the given object. If encoding or errors is specified, then the object must expose a data buffer that will be decoded using the given encoding and error handler. Otherwise, returns the result of object.__str__() (if defined) or repr(object). encoding defaults to sys.getdefaultencoding(). errors defaults to ‘strict’.
Initialize self. See help(type(self)) for accurate signature.
- class satellitetools.common.classes.DataSource[source]
Bases:
enum.StrEnumData source for the data request.
Initialize self. See help(type(self)) for accurate signature.
- class satellitetools.common.classes.AOI(name: str, geometry: str | shapely.geometry.Polygon | shapely.geometry.MultiPolygon, geometry_crs: str, tile: str = None)[source]
Area of interest (AOI) class.
Attributes: name: str
Name of the AOI.
- geometry: Union[str, Polygon]
Geometry of the AOI. Can be either a WKT string or a shapely Polygon.
- geometry_crs: str
Coordinate reference system of the geometry.
- tile: str
Sentinel-2 tile ID.
Initialize the AOI class.
Parameters: name: str
Name of the AOI.
- geometry: Union[str, Polygon]
Geometry of the AOI. Can be either a WKT string or a shapely Polygon.
- geometry_crs: str
Coordinate reference system of the geometry.
- tile: str
Sentinel-2 tile ID.