How to use the regionmask.defined_regions._ar6.ar6_cls function in regionmask

To help you get started, we’ve selected a few regionmask examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github mathause / regionmask / regionmask / defined_regions / _ar6.py View on Github external
def __init__(self):
        super(ar6_cls, self).__init__()

        self.__df = None

        self._all = None
        self._land = None
        self._ocean = None

        self._name = "IPCC AR6 WGI Reference Regions"
        self._source = "Iturbide et al., 2020 (Earth Syst. Sci. Data)"
github mathause / regionmask / regionmask / defined_regions / _ar6.py View on Github external
self._ocean = from_geopandas(
                self._df.loc[ocean],
                names="Name",
                abbrevs="Acronym",
                name=self._name + " (ocean only)",
                source=self._source,
            )

        return self._ocean

    def __repr__(self):  # pragma: no cover
        return REPR


ar6 = ar6_cls()