param_radiation: Support functions to estimate basic radiation parameters

View source: R/SradPARAM.R

param_radiationR Documentation

Support functions to estimate basic radiation parameters

Description

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

Usage

param_radiation(
  env.data,
  day.id = "DOY",
  latitude = "LAT",
  solarRadiation = NULL,
  merge = TRUE
)

Arguments

env.data

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

merge

boolean. If TRUE, calculated variables are merged to the original dataframe. Default is TRUE

Details

This functions requires day of the year, latitude, thermal radiative flux, and sky insolation which are provided by get_weather(). If one of these parameters are missing, an error will be returned.

  • n: Actual duration of sunshine (hour)

  • N: Daylight hours (hour)

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

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

Value

Returns a dataframe with parameters related to solar radiation. 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_radiation(env.data)

env.data = get_weather(lat = -13.05, lon = -56.05, country = 'BRA') %>%
           param_radiation()

#' env.data = get_weather(lat = -13.05, lon = -56.05, country = 'BRA') %>%
           param_radiation(day.id='DOY',latitude='LAT')

## End(Not run)

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