satellitetools.common.classes

Common classes for gee and aws_cog process.

@author: Olli Nevalainen (Finnish Meteorological Institute)

Attributes

logger

Classes

StrEnum

str(object='') -> str

DataSource

Data source for the data request.

AOI

Area of interest (AOI) class.

RequestParams

Module Contents

class satellitetools.common.classes.StrEnum[source]

Bases: str, enum.Enum

str(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.

satellitetools.common.classes.logger[source]
class satellitetools.common.classes.DataSource[source]

Bases: enum.StrEnum

Data source for the data request.

Initialize self. See help(type(self)) for accurate signature.

GEE = 'gee'[source]
AWS = 'aws_cog'[source]
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.

name[source]
geometry[source]
geometry_crs[source]
tile = None[source]
__repr__() str[source]
class satellitetools.common.classes.RequestParams(*args, **kwargs)[source]