easysnowdata.snow.modis.load#

easysnowdata.snow.modis.load(aoi: Any = None, time: Any = None, *, product: str = 'MOD10A1', variables: str | Sequence[str] | None = None, source: str | None = None, granules: Any = None, resolution: float | None = None, crs: Any = None, chunks: Any = 'easysnowdata-default', mask: bool = False, **kwargs: Any) → Dataset[source]#

Load MODIS snow cover as a lazy xarray.Dataset (time, y, x).

Parameters:
  • aoi – The usual spatial and temporal inputs. clip=False on the AOI keeps whole MODIS tiles.

  • time – The usual spatial and temporal inputs. clip=False on the AOI keeps whole MODIS tiles.

  • product – "MOD10A1" (default), "MOD10A2", "MOD10A1F" or an Aqua sibling ("MYD…").

  • variables – Which data fields to read; the product’s main field by default.

  • source – "nsidc" (default) or "planetary-computer".

  • granules – A search result to load instead of searching again.

  • mask – True NaN-masks the sentinel values (cloud, night, fill …). The default keeps the raw byte with its CF flags, so nothing is lost; (ndsi_da >= 40).where(ndsi_da <= 100) is the usual binary mask.

  • crs – Reproject the native sinusoidal grid (default: keep it).

  • resolution – Reproject the native sinusoidal grid (default: keep it).

Examples using easysnowdata.snow.modis.load#

MODIS snow cover (MOD10A1, MOD10A1F, MOD10A2)

MODIS snow cover (MOD10A1, MOD10A1F, MOD10A2)

VIIRS snow cover (VNP10A1F)

VIIRS snow cover (VNP10A1F)