easysnowdata.plotting.timeseries#

easysnowdata.plotting.timeseries(obj: DataArray | Dataset, ax: Any = None, *, variable: str | None = None, hue: str | None = None, labels: dict[Any, str] | None = None, title: str | None = None, by_water_year: bool = False, hemisphere: str = 'northern', legend: bool = True, figsize: tuple[float, float] = (9, 4), **plot_kwargs: Any) → Any[source]#

Plot a time series, one line per hue value, against calendar dates.

Parameters:
  • obj – A DataArray with a time dim, or a Dataset with variable named.

  • hue – Dimension to draw one line per value of (default: the non-time dim when there is exactly one, e.g. station).

  • labels – {hue value: legend text}; defaults to the name and elevation_m coordinates when present, else the value itself.

  • by_water_year – Overlay each water year on one October-to-September axis (month names) instead of a continuous calendar. The lines are labelled by water year, and hue must then be absent or of length one.

  • hemisphere – For by_water_year: "northern" (1 October) or "southern".

  • **plot_kwargs – Passed to Axes.plot (linewidth, alpha, color …).

Returns:

matplotlib.axes.Axes

Examples using easysnowdata.plotting.timeseries#

ERA5 reanalysis (ARCO-ERA5 and Earth Engine)

ERA5 reanalysis (ARCO-ERA5 and Earth Engine)

Sentinel-1 RTC backscatter and local incidence angle

Sentinel-1 RTC backscatter and local incidence angle

MODIS snow cover (MOD10A1, MOD10A1F, MOD10A2)

MODIS snow cover (MOD10A1, MOD10A1F, MOD10A2)

SNODAS snow water equivalent and depth (NOHRSC)

SNODAS snow water equivalent and depth (NOHRSC)

UCLA snow reanalysis (Margulis et al.)

UCLA snow reanalysis (Margulis et al.)

VIIRS snow cover (VNP10A1F)

VIIRS snow cover (VNP10A1F)

All five station networks in one call

All five station networks in one call

SNOTEL and snow courses (USDA NRCS AWDB)

SNOTEL and snow courses (USDA NRCS AWDB)

California snow pillows and courses (CDEC)

California snow pillows and courses (CDEC)

British Columbia snow stations (DataBC)

British Columbia snow stations (DataBC)

Norwegian snow stations (NVE HydAPI)

Norwegian snow stations (NVE HydAPI)

Daily snow-station archive (global_snow_networks)

Daily snow-station archive (global_snow_networks)

Yukon snow stations (AquaCache)

Yukon snow stations (AquaCache)

Water years and day of water year

Water years and day of water year