easysnowdata.terrain.chili.load#

easysnowdata.terrain.chili.load(aoi: Any = None, *, source: str | None = None, normalize: bool | str = False, chunks: Any = 'easysnowdata-default', mask: bool = True, **kwargs: Any) DataArray[source]#

Load CHILI for aoi from Earth Engine at the asset’s native grid.

Parameters:
  • aoi – Any form easysnowdata.aoi.parse_aoi() accepts. The grid is the smallest block of native pixels covering it, so values are never resampled.

  • source – Only "gee" today; a DEM-computed heat-load index is the planned credential-free route.

  • normalizeFalse (default) returns the native 0-255 values, "index" divides by 255 to give the 0-1 index, "minmax" (or True) rescales within the AOI — what topography.get_chili did.

  • chunks – Dask chunks; None loads eagerly.

  • mask – Kept for symmetry with the other loaders. Earth Engine already returns pixels outside the asset as NaN, so there is no sentinel to mask.

  • **kwargs – Passed to xarray.open_dataset(engine="ee").

Returns:

xarray.DataArraychili, dims latitude/longitude (or y/x when the asset’s native grid is projected), lazy unless chunks=None.

Raises:

easysnowdata.auth.CredentialError – When Earth Engine is not configured (esd.auth.login("earthengine")).