FourSAIL & Microwave Dielectrics
This page documents the FourSAIL four-stream turbid-medium canopy radiative-transfer solver, complex microwave relative permittivity models $\varepsilon(T, f)$ (dielectric), and deprecated compatibility aliases.
FourSAIL Canopy Radiative Transfer
CanopyOptics.FourSAILGeometry — Type
FourSAILGeometry(LAD; sza_deg, vza_deg, raa_deg, quadrature=CanopyQuadrature())Geometry and leaf-angle coefficients for a 4SAIL canopy solve.
The expensive geometry/LAD integration is wavelength independent and is done once here. foursail! then evaluates one wavelength per kernel work item from leaf reflectance, leaf transmittance, soil reflectance, and LAI.
CanopyOptics.FourSAILGeometrySet — Type
FourSAILGeometrySet(LAD; sza_deg, vza_deg, raa_deg, quadrature=CanopyQuadrature())
FourSAILGeometrySet(geometries)Structure-of-arrays storage for many FourSAILGeometry values. This is the preferred input for phase-space/LUT solves because the kernel can evaluate all (wavelength, angle) pairs in one launch.
CanopyOptics.FourSAILResult — Type
FourSAILResult(rddt, rsdt, rdot, rsot, taus, rsos, rsost, rsodt)Primary 4SAIL reflectance/transmittance factors:
rddt: bi-hemispherical reflectance over canopy plus soilrsdt: directional-hemispherical reflectance for solar illuminationrdot: hemispherical-directional reflectance for the view directionrsot: bidirectional reflectance factortaus: total solar-direction canopy transmission (tsd + tss)rsos: direct single-scattering canopy contributionrsost: direct/direct contribution (rsosplus directly transmitted soil)rsodt: diffuse/multiple-scattering contribution, sorsot = rsost + rsodt
CanopyOptics.foursail — Function
foursail(leaf_reflectance, leaf_transmittance, soil_reflectance,
geometry, LAI; hotspot=0)
foursail(leaf_reflectance, leaf_transmittance, soil_reflectance,
geometry_set, LAI; hotspot=0, mode=:full)Allocate outputs and evaluate 4SAIL over all wavelengths. For array inputs the batched kernel path is used; for scalar inputs this returns a scalar FourSAILResult.
CanopyOptics.foursail! — Function
foursail!(rddt, rsdt, rdot, rsot, taus, leaf_ρ, leaf_τ, soil_ρ,
geom, lai; hotspot=0, mode=:full)
foursail!(result::FourSAILResult, leaf_ρ, leaf_τ, soil_ρ,
geom, lai; hotspot=0, mode=:full)Evaluate 4SAIL in place over a wavelength vector using one KernelAbstractions work item per wavelength (or (wavelength, angle) pair for FourSAILGeometrySet) and return the populated FourSAILResult.
soil_ρ may be a scalar, a wavelength vector, or (for FourSAILGeometrySet) a (n_wavelength, n_angle) matrix. All array arguments must use 1-based indexing (throws ArgumentError on offset axes).
In :full mode, rsot = rsost + rsodt decomposes the bidirectional reflectance factor into direct/direct (rsost) and diffuse/multiple-scattering (rsodt) contributions. In :single mode, diffuse equations are skipped (rsot = rsost, rsodt = 0, and diffuse-stream outputs are filled with zero).
See also foursail, FourSAILGeometry, FourSAILGeometrySet.
Reference
Verhoef, W. (1984). Light scattering by leaf layers with application to canopy reflectance modeling: the SAIL model. Remote Sens. Env. 16, 125–141; extended in Verhoef et al. (2007), 4SAIL.
Microwave Dielectric Permittivity (ε(T, f))
CanopyOptics.AbstractMaterial — Type
AbstractMaterialSupertype for materials supporting microwave complex permittivity evaluation via dielectric.
CanopyOptics.AbstractWater — Type
AbstractWater <: AbstractMaterialSupertype for liquid and frozen water permittivity models.
CanopyOptics.AbstractSoil — Type
AbstractSoil <: AbstractMaterialSupertype for moist-soil microwave permittivity models.
CanopyOptics.AbstractVegetation — Type
AbstractVegetation <: AbstractMaterialSupertype for leaf, needle, branch, and trunk microwave permittivity models.
CanopyOptics.LiquidPureWater — Type
LiquidPureWater()Singleton material tag for pure liquid water in dielectric.
CanopyOptics.LiquidSaltWater — Type
LiquidSaltWater{FT<:Real}(S)
LiquidSaltWater(; S = 10.0)Saline liquid water material parameterized by salinity S in practical salinity units (PSU, valid on [0, 45]).
Fields
S::FT: salinity inPSU(0 <= S <= 45).
Examples
julia> LiquidSaltWater(S = 35.0)
LiquidSaltWater{Float64}(35.0)CanopyOptics.PureIce — Type
PureIce()Singleton material tag for pure water ice in dielectric.
CanopyOptics.SoilMW — Type
SoilMW{FT<:Real}(sand_frac, clay_frac, mᵥ, ρ)
SoilMW(; sand_frac = 0.2, clay_frac = 0.1, mᵥ = 0.35, ρ = 1.7)Dobson–Ulaby microwave soil material parameterized by texture fractions, volumetric moisture, and bulk density.
Fields
sand_frac::FT: sand mass fraction in[0, 1].clay_frac::FT: clay mass fraction in[0, 1].mᵥ::FT: volumetric soil water content in[0, 1].ρ::FT: dry soil bulk density ing cm⁻³(typical value1.7).
Examples
julia> s = SoilMW(sand_frac = 0.3, clay_frac = 0.2, mᵥ = 0.25, ρ = 1.6);
julia> s.mᵥ
0.25CanopyOptics.LeafUlabyElRayes1987 — Type
LeafUlabyElRayes1987{FT<:Real}(M_g, σ)
LeafUlabyElRayes1987(; M_g = 0.5, σ = 1.27)Dual-dispersion microwave leaf dielectric model of Ulaby & El-Rayes (1987), combining a non-dispersive residual term, a free-water Debye component, and a bound-water Cole–Cole-like component across 0.2–20 GHz.
Pass to dielectric together with temperature T in K (accepted for signature consistency) and frequency f in GHz.
Fields
M_g::FT: gravimetric leaf moisture content in[0, 0.7].σ::FT: effective ionic conductivity of free water inS m⁻¹(typical1.27).
Reference
Ulaby, F. T. & El-Rayes, M. A. (1987). Microwave Dielectric Spectrum of Vegetation – Part II: Dual-Dispersion Model. IEEE TGRS 25(5), 550–557; Ulaby & Long (2014), Chapter 11, Section 11-9.
CanopyOptics.dielectric — Function
dielectric(mod::LiquidSaltWater, T, f)Compute the complex relative permittivity ε(T, f) of saline liquid water following Ulaby & Long (2014, Chapter 4, Eqs. 4.19–4.21), using the +i ε'' loss sign convention.
Arguments
mod::LiquidSaltWater: saline water model supplying salinitySin[0, 45]PSU.T::Real: temperature inK(265 <= T <= 310).f::Real: frequency inGHz.
Examples
julia> w = LiquidSaltWater(S = 10.0);
julia> round(dielectric(w, 283.0, 10.0); digits = 4)
51.7925 + 38.323imdielectric(mod::LiquidPureWater, T, f)Compute the complex relative permittivity ε(T, f) of pure liquid water following Ulaby & Long (2014, Chapter 4), using the +i ε'' loss sign convention.
Arguments
mod::LiquidPureWater: pure liquid water tag.T::Real: temperature inK(265 <= T <= 310).f::Real: frequency inGHz.
Examples
julia> round(dielectric(LiquidPureWater(), 283.0, 10.0); digits = 4)
53.4531 + 38.0686imdielectric(mod::PureIce, T, f)Compute the complex relative permittivity ε(T, f) of pure water ice following Ulaby & Long (2014, Chapter 4, Eqs. 4.22–4.25), valid for 233 <= T <= 273.15 K.
Arguments
mod::PureIce: pure water ice tag.T::Real: temperature inK(233 <= T <= 273.15).f::Real: frequency inGHz.
Examples
julia> round(real(dielectric(PureIce(), 253.0, 10.0)); digits = 4)
3.1702dielectric(mod::SoilMW, T, f)Compute the complex relative permittivity ε(T, f) of moist soil following the Dobson semi-empirical mixing model in Ulaby & Long (2014, Chapter 4, Eqs. 4.66–4.70).
Arguments
mod::SoilMW: soil texture, moisture, and bulk-density parameters.T::Real: temperature inK(265 <= T <= 310).f::Real: frequency inGHz.
Examples
julia> s = SoilMW(sand_frac = 0.2, clay_frac = 0.2, mᵥ = 0.3, ρ = 1.7);
julia> real(dielectric(s, 283.0, 10.0)) > 10
truedielectric(mod::LeafUlabyElRayes1987, T, f)Compute the complex relative permittivity ε(f) of a fresh leaf with gravimetric moisture mod.M_g at frequency f in GHz (0.2 <= f <= 20) following Ulaby & El-Rayes (1987):
\[\varepsilon = \varepsilon_r + v_{fw}\,\varepsilon_{fw} + v_b\,\varepsilon_b .\]
Temperature T in K is accepted for signature consistency with other dielectric methods. Uses the +i ε'' loss sign convention.
Examples
julia> leaf = LeafUlabyElRayes1987(M_g = 0.5);
julia> round(dielectric(leaf, 295.0, 5.0); digits = 4)
14.4008 + 4.6895imReference
Ulaby & El-Rayes (1987), IEEE TGRS 25(5), 550–557 (Eqs. 11–14); Ulaby & Long (2014), Chapter 11, Section 11-9.
Deprecated Compatibility Aliases
CanopyOptics.createLeafOpticalStruct — Function
createLeafOpticalStruct(λ_bnds = (399.5:2500.5)u"nm")Deprecated constructor for LeafOpticalProperties; call LeafOpticalProperties(λ_bnds) instead.
CanopyOptics.createMultiPigmentOpticalStruct — Function
createMultiPigmentOpticalStruct(λ_bnds = (399.5:2500.5)u"nm"; basis = :calibrated_in_vivo, FT = ...)Deprecated constructor for MultiPigmentOpticalProperties; call MultiPigmentOpticalProperties(λ_bnds; basis = ...) instead.
CanopyOptics.dirVector — Function
dirVector(θ, ϕ)Deprecated constructor from polar angle θ and azimuth ϕ; use direction_from_angles instead.
CanopyOptics.dirVector_μ — Type
dirVector_μ(μ, ϕ)Deprecated alias for DirectionCosine.