eoio.readers.planetscope.reader module#

eoio.readers.planetscope.reader - PlanetScope data reader implementation.

class eoio.readers.planetscope.reader.PlanetScopeReader(path: Path | str, vars_sel: Dict[str, Any] | None = None, subset: Dict[str, Any] | None = None, read_params: Dict[str, Any] | None = None)[source]#

Bases: BaseRasterReader

Base File Reader for PlanetScope SuperDove data, containing 8 bands (“8b” in image tif filename).

all_read_params = {'chunks': "None/{'x':X,'y':Y}", 'include_uncertainties': 'True/False', 'metadata_level': 'all/basic/None', 'save_extracted': 'True/False', 'use_chunks': 'True/False'}#
default_read_params: Dict[str, Any] = {'chunks': None, 'include_uncertainties': False, 'metadata_level': 'all', 'save_extracted': False, 'use_chunks': False}#
static get_extension() str[source]#

Return the extension of the extracted PlanetScope product.

Must be “.tif” as multiple Planetscope products are usually stored in the same directory, each with their corresponding .xml and .json files.

meas_var_res: Dict[str, Any] = {'B1': 3, 'B2': 3, 'B3': 3, 'B4': 3, 'B5': 3, 'B6': 3, 'B7': 3, 'B8': 3}#
open_dataset() Dataset[source]#

Read the product and return an xarray.Dataset.

resolve_subset(subset: Dict[str, Any] | None) ResolvedROISubset | None[source]#

Resolve the subset of the PlanetScope product.

Parameters:

subset – Subset of the PlanetScope product.

Returns:

Resolved ROI Subset.

exception eoio.readers.planetscope.reader.PlanetScopeReaderError[source]#

Bases: ValueError

Raised when a PlanetScope reader is coming across an input it can not handle.