vtools.apply_climatology

apply_climatology(climate, index)[source]

Apply daily or monthly climatology to a new index

Parameters
climate: DataFrame with integer index representing month of year (Jan=1) or day of year. Must be of size 12 365,366. Day 366 will be inferred from day 365 value
index: DatetimeIndex representing locations to be inferred
Returns
DataFrame or Series as given by climate with values extracted from climatology for the month or day