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

Error at running spliceCorrection() #58

Closed
aloboa opened this issue Jun 28, 2023 · 2 comments
Closed

Error at running spliceCorrection() #58

aloboa opened this issue Jun 28, 2023 · 2 comments

Comments

@aloboa
Copy link

aloboa commented Jun 28, 2023

Given
https://www.dropbox.com/s/k999cou1tn4gjp3/certec100020.asd
I do:

testraw <- readASD("certec100020.asd", out_format = 'list')
testrefl <- data.frame(Wavelength=testraw$certec100020.asd$wavelength, Reflectance=testraw$certec100020.asd$reflectance)
ggplot(data=testrefl) +
  geom_line(aes(x=Wavelength, y=Reflectance), linewidth=0.1) +
  geom_point(aes(x=Wavelength, y=Reflectance))

But:

testreflspcor <-  spliceCorrection(testrefl$Reflectance, wav=testrefl$Wavelength)
Error in spliceCorrection(testrefl$Reflectance, wav = testrefl$Wavelength) : 
  object 'index_b' not found

A bug or something I'm not understanding?
An example in the doc would be much appreciated.

@aloboa
Copy link
Author

aloboa commented Jun 29, 2023

Works fine with version 0.2.7 -- cakes
Please add the example.

@aloboa aloboa closed this as completed Jun 29, 2023
@aloboa
Copy link
Author

aloboa commented Jun 29, 2023

Actually, I have to state
testreflspcor <- spliceCorrection(testrefl$Reflectance, wav=testrefl$Wavelength ,splice = c(1000, 1800))

instead of the default splice=c(1000, 1830)
It might be specific to the FS3 I'm using.

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