errors module¶
Classes that define custom exceptions
Numpy Arrays¶
- exception pfdf.errors.ArrayError¶
Bases:
Exception
Generic class for invalid numpy arrays
- exception pfdf.errors.EmptyArrayError¶
Bases:
ArrayError
When a numpy array has no elements
- exception pfdf.errors.DimensionError¶
Bases:
ArrayError
When a numpy array has invalid nonsingleton dimensions
- exception pfdf.errors.ShapeError¶
Bases:
ArrayError
When a numpy axis has an invalid shape
Spatial Metadata¶
- exception pfdf.errors.CRSError¶
Bases:
Exception
When a coordinate reference system is invalid
- exception pfdf.errors.TransformError¶
Bases:
Exception
When an affine transformation is invalid
- exception pfdf.errors.MissingTransformError¶
Bases:
TransformError
When a required transform is missing
- exception pfdf.errors.MissingNoDataError¶
Bases:
Exception
When a required NoData value is missing
Rasters¶
- exception pfdf.errors.RasterError¶
Bases:
Exception
Generic class for invalid Raster metadata.
- exception pfdf.errors.RasterShapeError¶
Bases:
RasterError
When a raster array has an invalid shape
- exception pfdf.errors.RasterTransformError¶
Bases:
RasterError
When a raster has an invalid affine transformation
- exception pfdf.errors.RasterCRSError¶
Bases:
RasterError
When a raster has an invalid coordinate reference system
Vector Features¶
- exception pfdf.errors.FeaturesError¶
Bases:
Exception
When vector features are not valid
- exception pfdf.errors.FeatureFileError¶
Bases:
FeaturesError
When a vector feature file cannot be read
- exception pfdf.errors.NoFeaturesError¶
Bases:
FeaturesError
When there are no vector features to convert to a raster
- exception pfdf.errors.GeometryError¶
Bases:
FeaturesError
When a feature geometry is not valid
- exception pfdf.errors.CoordinateError¶
Bases:
GeometryError
When a feature’s coordinates are not valid
- exception pfdf.errors.PolygonError¶
Bases:
CoordinateError
When a polygon’s coordinates are not valid
- exception pfdf.errors.PointError¶
Bases:
CoordinateError
When a point’s coordinates are not valid
Overlap¶
- exception pfdf.errors.NoOverlapError¶
Bases:
Exception
When a dataset does not overlap a required bounding box.
- exception pfdf.errors.NoOverlappingFeaturesError¶
Bases:
NoOverlapError
,NoFeaturesError
When a vector feature dataset does not overlap a required bounding box.
Models¶
- exception pfdf.errors.DurationsError¶
Bases:
Exception
When queried rainfall durations are not recognized
Data Acquisition¶
- exception pfdf.errors.DataAPIError¶
Bases:
Exception
When an API response is not valid
- exception pfdf.errors.InvalidJSONError¶
Bases:
DataAPIError
When API JSON is not valid
- exception pfdf.errors.MissingAPIFieldError¶
Bases:
DataAPIError
,KeyError
When an API JSON response is missing a required field
- exception pfdf.errors.TNMError¶
Bases:
DataAPIError
Errors unique to the TNM API
- exception pfdf.errors.TooManyTNMProductsError¶
Bases:
TNMError
When a TNM query has too many search results
- exception pfdf.errors.NoTNMProductsError¶
Bases:
TNMError
When there are no TNM products in the search results
- exception pfdf.errors.LFPSError¶
Bases:
DataAPIError
Errors unique to the LANDFIRE LFPS API