sisppeo.readers.reader.Reader

class sisppeo.readers.reader.Reader(input_product, requested_bands, geom=None, **_ignored)[source]

Bases: abc.ABC

Abstract class inherited by every specific reader.

__init__(input_product, requested_bands, geom=None, **_ignored)[source]

Inits Reader with specific settings.

Parameters
  • input_product – The path of the input product (multispectral spaceborne imagery).

  • requested_bands – A list of bands to be extracted.

  • geom – A dict containing geographical information that define the ROI. 4 keys: geom (a shapely.geom object), shp (a path to an ESRI shapefile), wkt (a path to a wkt file) and srid (an EPSG code).

  • **_ignored – Unused kwargs sent to trash.

Methods

__init__(input_product, requested_bands[, geom])

Inits Reader with specific settings.

create_ds()

Creates a xr.Dataset out of Reader params and extracted information.

extract_bands()

Opens the input product and extracts bands and metadata.

abstract create_ds()[source]

Creates a xr.Dataset out of Reader params and extracted information.

abstract extract_bands()[source]

Opens the input product and extracts bands and metadata.