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

Method _pyngl

src/wrf/projection.py:664–683  ·  view source on GitHub ↗
(self, geobounds, **kwargs)

Source from the content-addressed store, hash-verified

662 return _cf_params
663
664 def _pyngl(self, geobounds, **kwargs):
665 if not pyngl_enabled():
666 return None
667
668 _pyngl = Resources()
669 _pyngl.mpProjection = "Mercator"
670 _pyngl.mpDataBaseVersion = "MediumRes"
671 _pyngl.mpCenterLatF = 0.0
672 _pyngl.mpCenterLonF = self._stand_lon
673
674 _pyngl.mpLimitMode = "Corners"
675 _pyngl.mpLeftCornerLonF = geobounds.bottom_left.lon
676 _pyngl.mpLeftCornerLatF = geobounds.bottom_left.lat
677 _pyngl.mpRightCornerLonF = geobounds.top_right.lon
678 _pyngl.mpRightCornerLatF = geobounds.top_right.lat
679
680 for key, val in viewitems(kwargs):
681 setattr(_pyngl, key, val)
682
683 return _pyngl
684
685 def _basemap(self, geobounds, **kwargs):
686 if not basemap_enabled():

Callers

nothing calls this directly

Calls 2

pyngl_enabledFunction · 0.85
viewitemsFunction · 0.85

Tested by

no test coverage detected