errors#
pyramids_eo.errors
#
Exception hierarchy for pyramids-eo.
Every error raised by this package derives from EOError, so callers can
catch the whole family with a single except EOError.
TransformError
#
Bases: EOError
Raised when a spectral transform cannot be applied to the input.
Covers a requested component a sensor's table does not define, a band stack whose band count or band order does not match the sensor the transform was asked for, and an input that is not a band stack.
Source code in src/pyramids_eo/errors.py
ProductError
#
Bases: EOError
Raised when a satellite product cannot be parsed or is malformed.
Covers a container whose subdatasets / metadata cannot be read, a requested band / resolution / tile that the product does not contain, and any other structural problem discovered while modelling the product.
Source code in src/pyramids_eo/errors.py
UnsupportedProductError
#
Bases: ProductError
Raised when a path is opened as a product type this package cannot model.
Distinct from ProductError: the input is a valid raster, but its GDAL
driver / product family is not one the Sentinel readers understand.