pytesmo.time_series.filtering module
Created on Oct 16, 2013
@author: Christoph Paulik christoph.paulik@geo.tuwien.ac.at
- pytesmo.time_series.filtering.moving_average(Ser, window_size=1, fillna=False, min_obs=1)[source]
Applies a moving average (box) filter on an input time series
- Parameters:
Ser (pandas.Series (index must be a DateTimeIndex or julian date)) –
window_size (float, optional) – The size of the moving_average window [days] that will be applied on the input Series Default: 1
fillna (bool, optional) – Fill nan values at the center window value
min_obs (int) – The minimum amount of observations necessary for a valid moving average
- Returns:
Ser – moving-average filtered time series
- Return type: