annualize (pyleoclim.utils.tsutils.annualize)¶
- pyleoclim.utils.tsutils.annualize(ys, ts)[source]¶
Annualize a time series whose time resolution is finer than 1 year
- Parameters
ys (array) – A time series, NaNs allowed
ts (array) – The time axis of the time series, NaNs allowed
- Returns
ys_ann (array) – the annualized time series
year_int (array) – The time axis of the annualized time series