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

Method pyngl

src/wrf/projection.py:427–453  ·  view source on GitHub ↗

Return a :class:`Ngl.Resources` 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 will be taken from the variable. I

(self, geobounds, **kwargs)

Source from the content-addressed store, hash-verified

425 return self._cartopy()
426
427 def pyngl(self, geobounds, **kwargs):
428 """Return a :class:`Ngl.Resources` object for the map projection.
429
430 Args:
431
432 geobounds (:class:`wrf.GeoBounds`, optional): The geobounds to
433 get the extents. If set to None and using the *var* parameter,
434 the geobounds will be taken from the variable. If using a
435 file, then the geobounds will be taken from the native grid.
436
437 **kwargs: Additional PyNGL resources to set while creating the
438 :class:`Ngl.Resources` object.
439
440 Returns:
441
442 :class:`Ngl.Resources`: A dict-like object that contains the
443 PyNGL resources for the map projection.
444
445 See Also:
446
447 `PyNGL <https://www.pyngl.ucar.edu/>`_
448
449 """
450 if not pyngl_enabled():
451 raise RuntimeError("'pyngl' is not "
452 "installed or is disabled")
453 return self._pyngl(geobounds, **kwargs)
454
455 def proj4(self):
456 """Return the PROJ.4 string for the map projection.

Callers 2

make_testFunction · 0.80
_get_proj_objFunction · 0.80

Calls 2

_pynglMethod · 0.95
pyngl_enabledFunction · 0.85

Tested by 1

make_testFunction · 0.64