desesonalized_nan_area_mean#

mhm_tools.common.metrics.tsm.desesonalized_nan_area_mean(data, time_index=None)[source]#

Create a one-year daily climatology from a multi-year gridded time series.

Parameters:
  • data (np.ndarray) – Array with shape (time, y, x).

  • time_index (array-like, optional) – Time stamps matching the first dimension of data. If provided, values are grouped by calendar day and returned as a 366-day climatology. Feb 29 is interpolated as the mean of Feb 28 and Mar 1.