processWTH: Basic Processing Tools for Enriching get_weather outputs

View source: R/processWTH.R

processWTHR Documentation

Basic Processing Tools for Enriching get_weather outputs

Description

A wraper of param_padiation(), param_atmospheric(), and param_temperature() for evaluating get_weather() datasets. Calculates a series of parameters based on the get_weather() object.

Usage

processWTH(
  env.data,
  PREC = NULL,
  Tdew = NULL,
  Tmin = NULL,
  Tmax = NULL,
  RH = NULL,
  Rad = NULL,
  G = NULL,
  Alt = 600,
  Tbase1 = 9,
  Tbase2 = 45,
  Topt1 = 26,
  Topt2 = 32,
  alpha = 1.26
)

Arguments

env.data

data.frame. A get_weather() output.

PREC

character. Indicates the column of precipitation.

Tdew

character. Indicates the column of dew/frost.

Tmin

character. Indicates the column of minimum temperature.

Tmax

character. Indicates the column of maximum temperature.]

RH

character. Indicates the column of reative humidity.

Rad

character. Indicates the column of solar radiation. This parameter can be calculated from Param_Radiation().

G

numeric. Flux of heat conducted into the ground. Default is 0.

Alt

numeric. Elevation above sea level (meters)

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).

alpha

Alpha of Priestley & Taylor's (1972) equation. Default is 1.26, which fit data from most sources.

Details

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

  • n: Actual duration of sunshine (hour)

  • N: Daylight hours (hour)

  • RTA: Extraterrestrial radiation (MJ/m^2/day)

  • SRAD: Solar radiation (MJ/m^2/day)

  • SPV: Slope of saturation vapour pressure curve (kPa.Celsius)

  • VPD: Vapour pressure deficit (kPa)

  • ETP: Potential Evapotranspiration (mm.day)

  • PEPT: Deficit by Precipitation (mm.day)

  • 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

Returns a get_wheather() object with an additional set of parameters calculated from the nasapower data.

Author(s)

Germano Costa Neto

Examples

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

### Returning calculated parameters merged to the \code{get_weather()} dataframe
processWTH(env.data)

## End(Not run)

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