vtools.climatology¶
- climatology(ts, freq, nsmooth=None)[source]¶
” Create a climatology on the columns of ts
- Parameters
- ts: DataFrame or Series
- DataStructure to be analyzed. Must have a length of at least 2*freq
- freq: period [“day”,”month”]
- Period over which the climatology is analyzed
- nsmooth: int
window size (number of values) of pre-smoothing. This may not make sense for series that are not approximately regular. An odd number is usually best.
- Returns:
out: DataFrame or Series Data structure of the same type as ts, with Integer index representing month (Jan=1) or day of year (1:365).