mpas_analysis.shared.time_series.compute_moving_avg

mpas_analysis.shared.time_series.compute_moving_avg(ds, movingAveragePoints=12)[source]

Compute the rolling mean of a data set

Parameters:
  • ds (xarray.Dataset) – a dataset to be averaged

  • movingAveragePoints (int, optional) – The number of points (months) over which to perform the rolling average of the data set

Returns:

ds (xarray.Dataset) – The anomaly of the rolling time mean from the start of the simulation