get_perturbation#

metpy.calc.get_perturbation(ts, axis=-1)[source]#

Compute the perturbation from the mean of a time series.

Parameters:
  • ts (array-like) – The time series from which you wish to find the perturbation time series (perturbation from the mean).

  • axis (int) – The index of the time axis. Default is -1

Returns:

array-like – The perturbation time series.

Notes

The perturbation time series produced by this function is defined as the perturbations about the mean:

\[x(t)^{\prime} = x(t) - \overline{x(t)}\]