-
Notifications
You must be signed in to change notification settings - Fork 17
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
vismodel 'cie2' and 'cie10' do not accept 390:700 rspecdata #74
Labels
Comments
@bittonp any tips on a workaround for this? |
A very dirty workaround if you're in a hurry: library(pavo)
## Create example data that cuts off at 390 nm
data(sicalis)
sicalis <- sicalis[sicalis$wl>=390, ]
## Recreate the 300-390nm range.
## WARNING: this fills the 300:390 wl range with bogus data.
## It doesn't matter for vismodel() with cie visual system but
## **it will be wrong for everything else**
sicalis <- as.rspec(sicalis, lim = c(300, 700), exceed.range = TRUE)
vismodel(sicalis, visual = "cie10") |
quick and dirty! Thank you! 👏 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Not a big issue: the vismodel parameter visual = 'cie2' and 'cie10' does not accept rspecdata that only ranges from 390:700 nm, only 300:700. Inexperienced researchers that mostly work with human visual system may not know how to get access and modify internal visual system data.
The text was updated successfully, but these errors were encountered: