pyguymer3.geo.add_OSM_map_background¶
- pyguymer3.geo.add_OSM_map_background(ax, midLat, res, /, *, debug=True, interpolation='auto', regrid_shape=750, scale=1)[source]¶
Add OpenStreetMap map tiles as a background to a Cartopy axis.
- Parameters:
axis (cartopy.mpl.geoaxes.GeoAxesSubplot) – the axis to add the OpenStreetMap map tiles as a background to
midLat (float) – the latitude of the middle of the figure (in degrees)
res (float) – the resolution of the figure (in m/px)
debug (bool, optional) – print debug statements
interpolation (str, optional) – The interpolation method used when drawing the final merged and warped image on the figure.
regrid_shape (int, optional) – The smallest dimension of the merged image of all of the tiles after it has been warped by Cartopy to be the same projection as the figure (in pixels)
scale (int, optional) – the scale of the tiles
Notes
Copyright 2017 Thomas Guymer [1]
References