Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consider using pre-calculated t12 / t21 values #60

Open
ashiklom opened this issue May 10, 2023 · 0 comments
Open

Consider using pre-calculated t12 / t21 values #60

ashiklom opened this issue May 10, 2023 · 0 comments

Comments

@ashiklom
Copy link
Contributor

ashiklom commented May 10, 2023

In PROSPECT, for a given refractive index, the t12 and t21 values are completely independent of the PROSPECT parameters.

https://github.com/RemoteSensingTools/CanopyOptics.jl/blob/main/src/core/prospect.jl#L57

The computational impact here is minuscule, but if you're looking to shave a few extra nanoseconds off the execution (especially for iterative PROSPECT inversion; this may also slightly streamline the automatic differentiation), you can pre-calculate t12 and t21 for default values of the refractive index in loadProspect.jl and pass those fixed quantities to the remaining PROSPECT routines.

Something to consider.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant