Skip to content

ashiklom/rrtm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

504c3c7 · Aug 4, 2022

History

47 Commits
Mar 15, 2021
Aug 4, 2022
Jun 28, 2022
Apr 21, 2020
Aug 4, 2022
Jun 8, 2020
Jun 28, 2022
Jun 28, 2022
Aug 4, 2022
Mar 15, 2021
Jul 10, 2019
Aug 4, 2022
Aug 4, 2022
Aug 4, 2022
Jul 10, 2019
Jul 10, 2019
Jun 28, 2022
Mar 15, 2021
Mar 15, 2021

Repository files navigation

output
github_document

rrtm

R-CMD-check

The goal of rrtm is to provide efficient R implementations of radiative transfer models useful for vegetation remote sensing.

Installation

rrtm is not currently on CRAN, but you can install the development version of rrtm from GitHub with:

# install.packages("devtools")
devtools::install_github("ashiklom/rrtm")

Basic usage

This is a basic example of running the PROSPECT 5 leaf radiative transfer model.

library(rrtm)
out <- prospect5(1.4, 40, 10, 0, 0.01, 0.01)
plot(c(400, 2500), c(0, 1), type = "n",
     xlab = "Wavelength (nm)",
     ylab = "Spectra")
lines(400:2500, out$reflectance, col = "red")
lines(400:2500, 1 - out$transmittance, col = "blue")
legend("top", legend = c("reflectance", "1 - transmittance"),
       lty = 1, col = c("red", "blue"))

plot of chunk basic

Here is a basic example of running the PRO4SAIL radiative transfer model (PROSPECT 5 coupled to the 4SAIL canopy model and Hapke soil model).

sail_out <- pro4sail_5(N = 1.4, Cab = 40, Car = 10, Cbrown = 0,
                       Cw = 0.01, Cm = 0.01,
                       LAI = 3, soil_moisture = 0.5)

matplot(400:2500, do.call(cbind, sail_out),
        xlab = "Wavelength (nm)", ylab = "Reflectance (0-1)",
        type = "l", lty = "solid", col = 1:4)
legend("topright", c("BHR", "DHR", "HDR", "BDR"),
       lty = "solid", col = 1:4)

plot of chunk sail

About

No description, website, or topics provided.

Resources

License

Unknown, MIT licenses found

Licenses found

Unknown
LICENSE
MIT
LICENSE.md

Stars

Watchers

Forks

Packages

No packages published