geodat.nc.running_climatology

geodat.nc.running_climatology(var, appendname, runave_window, step, need_anom=True)[source]

Calculate the running climatology, with anomaly

Parameters:
  • var (geodat.nc.Variable) –
  • appendname (bool) – whether to append “_c” to the varname of the output
  • runave_window (int) – size of the running average window
  • step (int) – step for slicing the array
  • need_anom (bool) – whether anomaly is returned
Returns:

climatology (geodat.nc.Variable), anomaly (None or geodat.nc.Variable if need_anom is True)

Example

If the time axis is monthly, compute a running climatology with a 30-year window, with appended name and anomaly returned, like this:

>>> running_climatology(var,True,30,12,True)
Fork me on GitHub