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;Falsereads it over HTTPS every call.chunks – Dask chunks;
Noneloads eagerly.mask –
False(default, §2.5 for categorical products) keeps the 255 (Fill) sentinel withrio.nodataset;Truemasks 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.