Skip to content
New issue

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

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

Already on GitHub? # to your account

Add in spec.response, convolution options to rrtm #4

Open
serbinsh opened this issue Sep 1, 2021 · 1 comment
Open

Add in spec.response, convolution options to rrtm #4

serbinsh opened this issue Sep 1, 2021 · 1 comment

Comments

@serbinsh
Copy link

serbinsh commented Sep 1, 2021

We should bring in the spec response, FWHM response function tools into rrtm

library(PEcAnRTM)
data(sensor.rsr)
 refl <- PEcAnRTM::spectral.response(as.vector(rrtm::prospect5(mod.params[i,"N.mu"],mod.params[i,"Cab.mu"],
                                                                mod.params[i,"Car.mu"],
                                                                mod.params[i,"Cbrown.mu"],mod.params[i,"Cw.mu"],
                                                                mod.params[i,"Cm.mu"])$reflectance), 'licor')

Would like to remove the depends on PEcAn RTM.

this is probably not to challenging to move from RTM to rrtm

@serbinsh
Copy link
Author

serbinsh commented Jan 13, 2022

@ashiklom I just created a new branch that added rsr based on the pecan rtm implementation. Will make a PR now

> refl <- rrtm::spectral.response(as.vector(rrtm::prospect5(1.38,41,9,0.06,0.00560,0.002)$reflectance), 'licor')
> trans <- rrtm::spectral.response(as.vector(rrtm::prospect5(1.38,41,9,0.06,0.00560,0.002)$transmittance), 'licor')
> 1-trans-refl
[1] 0.9511892 0.9066594 0.1452508

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

No branches or pull requests

1 participant