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)
| 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. |