Agmet is a collection of functions to calculate solar position, reference evapotranspiration, and soil water balance.

The following document describes the procedures to install Agmet directly from GitHub as well as some of the functionalities embedded in this package.

Package's installation

To install Agmet in your computer with R already installed do the following

install.packages('devtools')
devtools::install_github('https://github.com/jvitorpinto/agmet.git')

Using Agmet

require(agmet)

The function stefan_boltzmann_law calculates the amount of radiation emitted by a black body as a function of its absolute temperature.

temp <- seq(273.15, 473.15, by = 0.1)
y <- stefan_boltzmann_law(temp)

plot(temp, y, type = 'l', xlab = expression(italic(T) ~ ('K')), ylab = expression('Black body emittance' ~ (W ~ m^-2)))


jvitorpinto/agmet documentation built on Jan. 30, 2023, 6:33 a.m.