def _pyngl(self, geobounds, **kwargs): if not pyngl_enabled(): return None truelat2 = (self.truelat1 if _ismissing(self.truelat2) else self.truelat2) _pyngl = Resources() _pyngl.mpProjection = bytes("LambertConformal") _pyngl.mpDataBaseVersion = bytes("MediumRes") _pyngl.mpLambertMeridianF = self.stand_lon _pyngl.mpLambertParallel1F = self.truelat1 _pyngl.mpLambertParallel2F = truelat2 _pyngl.mpLimitMode = bytes("Corners") _pyngl.mpLeftCornerLonF = geobounds.bottom_left.lon _pyngl.mpLeftCornerLatF = geobounds.bottom_left.lat _pyngl.mpRightCornerLonF = geobounds.top_right.lon _pyngl.mpRightCornerLatF = geobounds.top_right.lat for key, val in viewitems(kwargs): setattr(_pyngl, key, val) return _pyngl
def _pyngl(self, geobounds, **kwargs): if not pyngl_enabled(): return None _pyngl = Resources() _pyngl.mpProjection = bytes("CylindricalEquidistant") _pyngl.mpDataBaseVersion = bytes("MediumRes") _pyngl.mpCenterLatF = self._pyngl_cen_lat _pyngl.mpCenterLonF = self._pyngl_cen_lon _pyngl.mpLimitMode = bytes("Corners") _pyngl.mpLeftCornerLonF = geobounds.bottom_left.lon _pyngl.mpLeftCornerLatF = geobounds.bottom_left.lat _pyngl.mpRightCornerLonF = geobounds.top_right.lon _pyngl.mpRightCornerLatF = geobounds.top_right.lat for key, val in viewitems(kwargs): setattr(_pyngl, key, val) return _pyngl
def _pyngl(self, geobounds, **kwargs): if not pyngl_enabled(): return None _pyngl = Resources() _pyngl.mpProjection = "Mercator" _pyngl.mpDataBaseVersion = "MediumRes" _pyngl.mpCenterLatF = 0.0 _pyngl.mpCenterLonF = self._stand_lon _pyngl.mpLimitMode = "Corners" _pyngl.mpLeftCornerLonF = geobounds.bottom_left.lon _pyngl.mpLeftCornerLatF = geobounds.bottom_left.lat _pyngl.mpRightCornerLonF = geobounds.top_right.lon _pyngl.mpRightCornerLatF = geobounds.top_right.lat for key, val in viewitems(kwargs): setattr(_pyngl, key, val) return _pyngl
def _pyngl(self, geobounds, **kwargs): if not pyngl_enabled(): return None _pyngl = Resources() _pyngl.mpProjection = bytes("Stereographic") _pyngl.mpDataBaseVersion = bytes("MediumRes") _pyngl.mpCenterLonF = self.stand_lon if self._hemi > 0: _pyngl.mpCenterLatF = 90.0 else: _pyngl.mpCenterLatF = -90.0 _pyngl.mpLimitMode = bytes("Corners") _pyngl.mpLeftCornerLonF = geobounds.bottom_left.lon _pyngl.mpLeftCornerLatF = geobounds.bottom_left.lat _pyngl.mpRightCornerLonF = geobounds.top_right.lon _pyngl.mpRightCornerLatF = geobounds.top_right.lat for key, val in viewitems(kwargs): setattr(_pyngl, key, val) return _pyngl