cartopy.io.PostprocessedRasterSource¶
- class cartopy.io.PostprocessedRasterSource(contained_source, img_post_process)[source]¶
A
RasterSourcewhich wraps another, an then applies a post-processing step on the raster fetched from the contained source.- __init__(contained_source, img_post_process)[source]¶
- Parameters
contained_source (
RasterSourceinstance.) – The source of the raster that this container is wrapping.img_post_process (callable) – Called after each
fetch_rastercall which yields a non-None image result. The callable must accept theLocatedImagefrom the contained fetch_raster as its only argument, and must return a single LocatedImage.
Methods
__init__(contained_source, img_post_process)- param contained_source
The source of the raster that this container is wrapping.
fetch_raster(*args, **kwargs)Return a sequence of images with extents given some constraining information.
validate_projection(projection)Raise an error if this raster source cannot provide images in the specified projection.