sta2stac.analysers.processing module#

class sta2stac.analysers.processing.Processing(logger_properties: dict)[source]#

Bases: object

A class to process the items attributes. For example, it can be used to convert the date-time to the ISO format, convert the bbox to the GeoJSON format, and process the items attributes to create the collection spatial and temporal extent. :param logger_properties: A dictionary containing the logger properties. :type logger_properties: dict

bbox(bbox: list, geometry: str | list)[source]#

Convert the bbox to the GeoJSON format.

collection(date_times_list: list)[source]#

Process the items attributes to create the collection temporal extent.

datetime(date_time: str)[source]#

Convert the date-time to the ISO format.

geometry(bbox: list, geometry_type: str)[source]#

Convert the bbox to the GeoJSON format.

item(harvesting_vars: dict)[source]#

Process the items attributes to create the item temporal extent.

logger_properties: dict#

A dictionary containing the logger properties.