pad_ts: Pad a timeseries with a year at the start and the end

View source: R/pad_ts.R

pad_tsR Documentation

Pad a timeseries with a year at the start and the end

Description

This function pads a timeseries with a year of data at the start and the end of the timeseries. One year of LAI data is added to the start and end of the timeseries based on median daily LAI for the timeserires. This is done so that a smoothed seasonal cycle can be retrieved from the timeseries using the phenofit R package for the entire timeseries. .

Usage

pad_ts(ts, t_res)

Arguments

ts

timeseries

t_res

The temporal resolution of the LAI data

Value

Returns a timeseries with an additional year added to the start and end of the timeseries


psavoy/StreamLightUtils documentation built on April 5, 2022, 11:05 p.m.