param_temperature: Support functions to estimate thermal parameters

View source: R/gdd.R

param_temperatureR Documentation

Support functions to estimate thermal parameters

Description

Calculation Of Heat According To The Growing Degree Day Model. From maximum (tmax) and minimum (tmin) temperature values, and according to the cardinal values of base temperature (Tbase) computes the daily thermal sum in ° C / day

Usage

param_temperature(
  env.data,
  Tmax = NULL,
  Tmin = NULL,
  Tbase1 = 9,
  Tbase2 = 45,
  Topt1 = 26,
  Topt2 = 32,
  merge = FALSE
)

Arguments

env.data

data.frame. A get_weather() output or A get_weather()-like dataframe.

Tmax

character. Indicates the column of maximum air temperature (Celsius).

Tmin

character. Indicates the column of minimum air temperature (Celsius).

Tbase1

numeric. Minimum cardinal value for temperature base for phenological development (Celsius).

Tbase2

numeric. Maximum cardinal value for temperature base for phenological development (Celsius).

Topt1

numeric. Lower temperature bound for phenological development (Celsius).

Topt2

numeric. Upper temperature bound for phenological development (Celsius).

merge

boolean. If TRUE, calculated variables are merged to the original get_weather() dataframe.

Details

This function requires a dataframe with all parameters listed above. If any is missing, an error will be returned. The calculated variables are:

  • GDD: Growing Degree Day (oC/day)

  • FRUE: Effect of temperature on radiation use efficiency (from 0 to 1)

  • T2M_RANGE: Daily Temperature Range (oC day)

Value

A dataframe with parameters related to atmospheric temperature. See details for further information.

Author(s)

Germano Costa Neto

Examples

## Not run: 
### Fetching weather information from NASA-POWER
env.data = get_weather(lat = -13.05, lon = -56.05, country = 'BRA')

### Calculating solar radiation
param_temperature(env.data)

## or simply:
require(tidyverse)
env.data = get_weather(lat = -13.05, lon = -56.05, country = 'BRA') %>%
           param_temperature(merge=T)

## End(Not run)

allogamous/EnvRtype documentation built on Nov. 1, 2024, 3:48 a.m.