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