easysnowdata.snow.mountain_snow_mask.load#

easysnowdata.snow.mountain_snow_mask.load(aoi: Any = None, *, source: str | None = None, layer: str = 'mountain_snow', cache: bool = True, chunks: Any = 'easysnowdata-default', mask: bool = False, **kwargs: Any) → DataArray[source]#

Load one layer of the mountain snow mask for aoi.

Parameters:
  • aoi – Any form easysnowdata.aoi.parse_aoi() accepts.

  • source – Only "zenodo" today.

  • layer – "mountain_snow" (default), "snow" or "clouds". The first two are categorical; "clouds" holds the cloud-indeterminacy level 0-6, which the upstream record does not define further.

  • cache – True (default) downloads the zip once into the easysnowdata cache and reads it locally; False reads it over HTTPS every call.

  • chunks – Dask chunks; None loads eagerly.

  • mask – False (default, §2.5 for categorical products) keeps the 255 (Fill) sentinel with rio.nodata set; True masks it to NaN.

  • **kwargs – Passed to rioxarray.open_rasterio.

Returns:

xarray.DataArray – The layer as uint8, with CF flag attributes on the two class layers.

Examples using easysnowdata.snow.mountain_snow_mask.load#

Mountain ranges: GMBA Mountain Inventory v2

Mountain ranges: GMBA Mountain Inventory v2

Mountain snow mask (Wrzesien et al.)

Mountain snow mask (Wrzesien et al.)

Hillshade: Natural Earth shaded relief as a basemap

Hillshade: Natural Earth shaded relief as a basemap