CanopyOptics.jl

A package to compute canopy scattering properties

Package Features

  • Use leaf angle distributions to compute bi-Lambertian and dorsiventral canopy scattering matrices
  • Compute closed-form cosine Fourier moments for symmetric and dorsiventral bi-Lambertian canopy kernels
  • Choose an opt-in conservative discrete angular measure shared by bi-Lambertian scattering and leaf emission geometry
  • Couple dielectric leaf surfaces (Stern–Allen smooth cones, Beckmann microfacets, epicuticular wax dispersion) with internal mesophyll budgets into an energy-conserving, Helmholtz-reciprocal 4×4 leaf BSDF
  • Compose diffuse and specular leaf-surface scattering models additively or via coupled BSDF quadrature
  • Request scalar or Stokes-expanded canopy Z matrices with npol
  • Combine leaf and wood canopy components with separate angle distributions
  • Differentiate leaf budgets and canopy Z matrices with ForwardDiff
  • Compute leaf reflectance, transmittance, and material absorptance with PROSPECT-PRO, separated chlorophyll a/b multi-pigment bases, Leaf-SIP, and continuous N_tot >= 1 dorsiventral stacks
  • Compute single-zone and two-zone dorsiventral internal fluorescence escape and photosystem excitation partitioning on CPU and CUDA
  • Compute complex microwave dielectric ε(T, f) of water, ice, soil and leaves

Z-matrix convention

Canopy scattering matrices use Z[i_out, j_in]: rows are outgoing streams and columns are incoming streams. Z⁺⁺ is same-sign transmission and Z⁻⁺ is sign-change reflection. The leaf single-scattering albedo ϖ = R + T is not folded into Z; layer solvers multiply by ϖ separately. For conservative bi-Lambertian leaves, the m = 0 column integral of Z⁺⁺ + Z⁻⁺ is therefore approximately 2 under the quadrature weights.

Specular components include their Fresnel/roughness strength in the returned Z contribution. If a downstream RT solver multiplies canopy Z by a separate single-scattering albedo, it must provide a matching effective albedo when using specular or diffuse+specular composite leaves.

Microwave dielectric models

A growing set of materials implements the dielectric function, returning the complex relative permittivity ε(T, f) (loss as positive imaginary part):

MaterialTypeDomain
Pure liquid waterLiquidPureWater0.2–1000 GHz, 265–310 K
Salt waterLiquidSaltWater+ salinity 0–45 PSU
Pure icePureIce0.2–1000 GHz, 233–273 K
Moist soilSoilMWDobson model, 0.3–18 GHz
Fresh leafLeafUlabyElRayes19870.2–20 GHz, gravimetric moisture 0–0.7

All five share the contract dielectric(model, T_kelvin, f_GHz). New materials are added by extending the dielectric function on a fresh <: AbstractMaterial subtype — see src/utils/dielectric.jl for the existing methods. The vegetation hierarchy (AbstractVegetation) is the entry point for a planned microwave-canopy expansion.

Installation

The latest release of CanopyOptics can be installed from the Julia REPL prompt with

julia> ]add https://github.com/RemoteSensingTools/CanopyOptics.jl

Documentation & API Reference

TopicConceptual GuidesStructured API Reference
Leaf Optics & BSDFPROSPECT budgets, Leaf surfaces and BSDF, Dorsiventral and multi-pigment, Model evaluationsLeaf Optics & BSDF
Excitation & Leaf FluorescencePigment excitation, Internal leaf emission, Emission spectraExcitation & Leaf Fluorescence
Canopy Structure & ScatteringAngular normalization, TutorialsCanopy Structure & Scattering
FourSAIL & Microwave DielectricsFourSAIL & Dielectric TutorialsFourSAIL & Microwave Dielectrics
Full Module & Symbol Index—Overview & Symbol Index