calcDailyMeanSD: This function smooths periodic (annual) data in the GHCN...

Description Usage Arguments Value

View source: R/calcDailyMeanSD.R

Description

First, it converts all data to DOY data (366-day-year). Then, it calculates a periodic generalized additive model from the data using cyclic cubic regression splines for smoothing. It then calculates the daily-wise standard deviations of the residuals, and again smooths using the same type of GAM. Optionally, you may plot the results.

Usage

1
calcDailyMeanSD(daily.data, unwrapped = F, plot = F)

Arguments

daily.data

GHCN data

unwrapped

Whether the data are already unwrapped

plot

Whether to create a polar plot of the climatology.

Value

A list containing the day-of-year, mean, and sd.


bocinsky/guedesbocinsky2018 documentation built on May 3, 2019, 8:59 p.m.