thermalTime: Calculate thermal time using cardinal temperatures

Description Usage Arguments Value Examples

View source: R/thermalTime.R

Description

Calculate thermal time using cardinal temperatures

Usage

1
thermalTime(weather, x_temp, y_temp, method = NULL)

Arguments

weather

WeaAna object

x_temp

The cardinal temperatures

y_temp

The effective thermal time

method

The method to calculate thermal time. The default method is ( maxt + mint ) / 2 - base. The three hour temperature methods will be used if method = '3hr'

Value

A data.frame with three columns: year, day and thermalTime.

Examples

1
2
3
4
5
6
7
8
met_file <- system.file("extdata/WeatherRecordsDemo1.met", package = "weaana")
records <- readWeatherRecords(met_file)
x_temp <- c(0, 26, 34)
y_temp <- c(0, 26, 0)
res <- thermalTime(records, x_temp, y_temp)
head(res)
res <- thermalTime(records, x_temp, y_temp, method = "3hr")
head(res)

weaana documentation built on Sept. 27, 2021, 5:12 p.m.