param_atmospheric: Support functions to estimate atmospheric parameters

View source: R/AtmosphericPAram.R

param_atmosphericR Documentation

Support functions to estimate atmospheric parameters

Description

Core of functions to estimate atmospheric parameters related to evapotranspiration. Fore more details about the equations see de FAO-evapotranspiration publication http://www.fao.org/3/X0490E/x0490e07.htm#atmospheric

Usage

param_atmospheric(
  env.data,
  PREC = NULL,
  Tdew = NULL,
  Tmin = NULL,
  Tmax = NULL,
  RH = NULL,
  Rad = NULL,
  G = NULL,
  Alt = 600,
  alpha = 1.26,
  merge = FALSE
)

Arguments

env.data

data.frame. A get_weather()-like output with additional solar radiation information. If a get_weather() is provided, no further argument is required but G and alpha.

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)

alpha

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

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:

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

Value

A dataframe with parameters related to evapotranspiration. 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
env.data = param_radiation(env.data, merge = TRUE)

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

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

## End(Not run)

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