Open serbinsh opened 3 years ago
Would want the functionality to match something like this script:
but with more flexibility and to simplify how to do this for end users
could add the option to use github files for coefficients like in this script example
apply_plsr(..) to take plsr coefficients/permutation coefficients and input spectra matrix to generate new values in a dataframe.
Options should be: input coefficients as either R object or a specific file(s) Input reflectance as either an R matrix or a specific file wavelength prefix (e.g. "Wave_") metadata_columns - those in the input spectra to keep in the output object
I don't see this overly complicated but we will want to have a check that wavelengths match. also need to indicate if there is an intercept and where it is.
Im sure other considerations will come up.
Use EcoSIS spectra and built-in coefficients as examples
As part of this build in the Serbin et al 2019 LMA coefficients