pysteps.visualization.basemaps.plot_map_cartopy¶
-
pysteps.visualization.basemaps.
plot_map_cartopy
(crs, extent, scale, drawlonlatlines=False, drawlonlatlabels=True, lw=0.5, subplot=None)¶ Plot coastlines, countries, rivers and meridians/parallels using cartopy.
- Parameters
- crs: object
Instance of a crs class defined in cartopy.crs. It can be created using utils.proj4_to_cartopy.
- extent: scalars (left, right, bottom, top)
The coordinates of the bounding box.
- drawlonlatlines: bool
Whether to plot longitudes and latitudes.
- drawlonlatlabels: bool, optional
If set to True, draw longitude and latitude labels. Valid only if ‘drawlonlatlines’ is True.
- scale: {‘10m’, ‘50m’, ‘110m’}
The scale (resolution) of the map. The available options are ‘10m’, ‘50m’, and ‘110m’.
- lw: float
Line width.
- subplot: tuple of int (nrows, ncols, index) or SubplotSpec_ instance, optional
The subplot where to place the basemap. By the default, the basemap will replace the current axis.
- Returns
- ax: axes
Cartopy axes. Compatible with matplotlib.