Repository navigation
Fix inconsistent leaf quadrature in canopy projection and scattering - #63
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Canopy projection and scattering can currently integrate different discrete leaf populations:
Guses an independent 40-node default and normalizes the sampled PDF, while the analytic scattering kernel usesquadrature.n_leafwithout normalizing its measure. With beta(0.4, 0.7), eight inclination nodes and conservative leaves, the m=0 scattering-column normalization error is 0.103257. This produces artificial absorption/scattering even though leaf reflectance plus transmittance is one.Use a shared normalized leaf-area quadrature for projection, bi-Lambertian scattering and 4SAIL. Add
quadraturetoG,component_Gandbulk_G, and propagate the selected resolution through phase normalization and mixed-component weights.Gnow defaults toCanopyQuadrature().n_leaf; the explicitnLegoverride remains available. No outgoing-flux or APAR renormalization is applied. The patch version is bumped to 0.2.1 for downstream compatibility gating.Validation on Julia 1.12.6:
Run:
julia --project=. test/runtests.jl.Companion PR: RemoteSensingTools/vSmartMOM.jl#243 (draft until CanopyOptics 0.2.1 is available). It passes
canopy.canopy_quadratureinto extinction preparation and requires CanopyOptics 0.2.1. This fixes the geometry/accounting inconsistency; it does not remove the physical approximation error of a two-stream closure.