easysnowdata.climate.koppen_geiger.load#
- easysnowdata.climate.koppen_geiger.load(aoi: Any = None, time: Any = None, *, period: str = '1991_2020', scenario: str | None = None, resolution: str = '0.1 degree', source: str | None = None, chunks: Any = True, **kwargs: Any) DataArray[source]#
Load the Köppen-Geiger classes as a categorical
xarray.DataArray.- Parameters:
aoi – Any form
parse_aoi()accepts;Noneis global.time – Ignored: the product is a set of fixed 30-year periods. Use period.
period – One of
PERIODS("1991_2020"by default).scenario – SSP for a future period (default
"ssp245"); must beNonefor a historical one.resolution –
"1 degree","0.5 degree","0.1 degree"or"1 km".chunks – Passed to
rioxarray.open_rasterio;True(default) gives a Dask-backed array.**kwargs – Forwarded to
rioxarray.open_rasterio.
- Returns:
xarray.DataArray–uint8classes with CF flag attrs; 0 (ocean) is kept as the nodata sentinel, soeasysnowdata.plotting.categorical()can draw it.