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

Problem reading large area scan (raman) with read.spc #2

Open
GegznaV opened this issue Jul 10, 2021 · 0 comments
Open

Problem reading large area scan (raman) with read.spc #2

GegznaV opened this issue Jul 10, 2021 · 0 comments

Comments

@GegznaV
Copy link
Member

GegznaV commented Jul 10, 2021

@r-hyperspec/r-hyperspec, as I understand, now repo of hySpc.read.spc is a better place for issue cbeleites/hyperSpec#286

The original message by @pablovgd:


Hi all

Recently I encountered some problems when reading .spc files of large-area scans with the function read.spc(). Reading .spc files of single spectrum .spc files works fine, but multiple spectra large area scans don't seem to work.
I get the following error:

> read.spc('LAS pseudotsuga 40x.spc')
Error in if (hdr$fzinc == 0) hdr$fzinc = subhdr$subnext - subhdr$subtime : 
  missing value where TRUE/FALSE needed

Strange thing is that it only happens with files I export from the program WITec Project Four. Even stranger is that other .spc files of large-area scans exported by the same program by my tutor are working just fine.
Any idea how to fix this error?
I'll add the .spc to this post as well.
LAS pseudotsuga 40x.zip

Thanks in advance!

Kind regards
Pablo


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