eoio.readers.planetscope.layout module#

eoio.readers.planetscope.layout - helper for PlanetScope product layout parsing.

class eoio.readers.planetscope.layout.PlanetScopeLayout(image_file: str)[source]#

Bases: object

Layout helper for PlanetScope products. Solely responsible for filesystem/path logic. No heavy dependencies.

Note: It is assumed (in conjunction with the reader-factory and processor-factory), that the path handed to the eoio reader is the image (tif) file path, incl the file name and that there might be more then one PlanetScope dataset in the same folder.

image_file: str#
mask_file() str[source]#

Return list of available mask file paths based on image file name and path (None if none found).

metadata_files() List[str] | None[source]#

Return list of available metadata file paths based on image file name and path (None if none found).

exception eoio.readers.planetscope.layout.PlanetScopeLayoutError[source]#

Bases: ValueError

Raised when a PlanetScope layout is missing expected files/structure.