Return a :class:`matplotlib.mpl_toolkits.basemap.Basemap` object for the map projection. Args: geobounds (:class:`wrf.GeoBounds`, optional): The geobounds to get the extents. If set to None and using the *var* parameter, the geobounds w
(self, geobounds, **kwargs)
| 373 | return "{}({})".format(self.__class__.__name__, args) |
| 374 | |
| 375 | def basemap(self, geobounds, **kwargs): |
| 376 | """Return a :class:`matplotlib.mpl_toolkits.basemap.Basemap` object |
| 377 | for the map projection. |
| 378 | |
| 379 | Args: |
| 380 | |
| 381 | geobounds (:class:`wrf.GeoBounds`, optional): The geobounds to |
| 382 | get the extents. If set to None and using the *var* parameter, |
| 383 | the geobounds will be taken from the variable. If using a |
| 384 | file, then the geobounds will be taken from the native grid. |
| 385 | |
| 386 | **kwargs: Keyword arguments for creating a |
| 387 | :class:`matplotlib.mpl_toolkits.basemap.Basemap`. By default, |
| 388 | the domain bounds will be set to the native projection, the |
| 389 | resolution will be set to 'l', and the other projection |
| 390 | parameters will be set by the information in the file. |
| 391 | |
| 392 | Returns: |
| 393 | |
| 394 | :class:`matplotlib.mpl_toolkits.basemap.Basemap`: A Basemap |
| 395 | object for the projection. |
| 396 | |
| 397 | See Also: |
| 398 | |
| 399 | :class:`matplotlib.mpl_toolkits.basemap.Basemap` |
| 400 | |
| 401 | """ |
| 402 | if not basemap_enabled(): |
| 403 | raise RuntimeError("'mpl_toolkits.basemap' is not " |
| 404 | "installed or is disabled") |
| 405 | |
| 406 | return self._basemap(geobounds, **kwargs) |
| 407 | |
| 408 | def cartopy(self): |
| 409 | """Return a :class:`cartopy.crs.Projection` subclass for the |