cartopy.io.srtm.SRTM3Source¶
- class cartopy.io.srtm.SRTM3Source(downloader=None, max_nx=3, max_ny=3)[source]¶
A source of SRTM3 data, which implements Cartopy’s RasterSource interface.
- __init__(downloader=None, max_nx=3, max_ny=3)[source]¶
- Parameters
downloader (
cartopy.io.Downloader
instance or None) – The downloader to use for the SRTM3 dataset. If None, the downloader will be taken usingcartopy.io.Downloader.from_config
with (‘SRTM’, ‘SRTM3’) as the target.max_nx – The maximum number of x tiles to be combined when producing a wider composite for this RasterSource.
max_ny – The maximum number of y tiles to be combined when producing a taller composite for this RasterSource.
Methods
__init__
([downloader, max_nx, max_ny])- param downloader
The downloader to use for the SRTM3 dataset. If None, the
combined
(lon_min, lat_min, nx, ny)Return an image and its extent for the group of nx by ny tiles starting at the given bottom left location.
fetch_raster
(projection, extent, ...)Fetch SRTM elevation for the given projection and approximate extent.
single_tile
(lon, lat)srtm_fname
(lon, lat)Return the filename for the given lon/lat SRTM tile (downloading if necessary), or None if no such tile exists (i.e.
validate_projection
(projection)Raise an error if this raster source cannot provide images in the specified projection.
Attributes