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; None is 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 be None for 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.DataArrayuint8 classes with CF flag attrs; 0 (ocean) is kept as the nodata sentinel, so easysnowdata.plotting.categorical() can draw it.