MCPcopy Create free account
hub / github.com/NCAR/wrf-python / basemap

Method basemap

src/wrf/projection.py:375–406  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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

Callers 2

make_testFunction · 0.80
_get_proj_objFunction · 0.80

Calls 2

_basemapMethod · 0.95
basemap_enabledFunction · 0.85

Tested by 1

make_testFunction · 0.64