get_site_cdd_curves: Generate CDD curves for each site + year

View source: R/get_site_cdd_curves.R

get_site_cdd_curvesR Documentation

Generate CDD curves for each site + year

Description

Generate CDD curves for each site + year

Usage

get_site_cdd_curves(sites, ub, lb)

Arguments

sites:

data.frame with siteid, latitude, longitude, year, and year_day columns

ub:

the upper bound for degree day calculation in degrees Fahrenheit

lb:

the lower bound for degree day calculation in degrees Fahrenheit

Value

A data.frame with cumulative degree days for the whole year for each site, truncated to include only the last day at 0 CDD and only the first day with the max CDD for the year + site.


ecodata-technology/ecodatamisc documentation built on Feb. 13, 2024, 11:54 a.m.