climpred.classes.HindcastEnsemble.smooth

HindcastEnsemble.smooth(smooth_kws=None, how='mean', **xesmf_kwargs)

Smooth all entries of PredictionEnsemble in the same manner to be able to still calculate prediction skill afterwards.

Parameters
  • smooth_kws (dict or str) – Dictionary to specify the dims to smooth compatible with spatial_smoothing_xesmf() or temporal_smoothing(). Shortcut for Goddard et al. 2013 recommendations: ‘goddard2013’. Defaults to None.

  • how (str) – how to smooth temporally. From [‘mean’,’sum’]. Defaults to ‘mean’.

  • **xesmf_kwargs (args) – kwargs passed to spatial_smoothing_xesmf()

Examples

>>> PredictionEnsemble.smooth({'lead': 2, 'lat': 5, 'lon': 4'})
>>> PredictionEnsemble.smooth('goddard2013')
>>> PredictionEnsemble.smooth({'lon':1, 'lat':1}, method='patch')
>>> PredictionEnsemble.smooth({'lead':2}, how='sum')