View source: R/AtmosphericPAram.R
param_atmospheric | R Documentation |
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
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
)
env.data |
data.frame. A |
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 |
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 |
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)
A dataframe with parameters related to evapotranspiration. See details for further information.
Germano Costa Neto
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.