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 #286

Closed
pablovgd opened this issue Oct 23, 2020 · 2 comments
Closed

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

pablovgd opened this issue Oct 23, 2020 · 2 comments
Assignees
Labels
Topic: file IO Input and output (read/write) related functions

Comments

@pablovgd
Copy link

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

@eoduniyi
Copy link
Collaborator

eoduniyi commented Oct 24, 2020

Hi @pablovgd 👋

Sorry to hear you're having some difficulties. Have you tried/looked into hySpc.read.txt? If not, please take a look at the GitHub documentation and try installing it, first.

In the meantime, I will be taking a closer look at your problem/file 👁️

@eoduniyi eoduniyi self-assigned this Oct 24, 2020
@GegznaV GegznaV added the Topic: file IO Input and output (read/write) related functions label Dec 21, 2020
@GegznaV
Copy link
Collaborator

GegznaV commented Jul 10, 2021

Closing in favor to r-hyperspec/hySpc.read.spc#2

@GegznaV GegznaV closed this as completed Jul 10, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Topic: file IO Input and output (read/write) related functions
Projects
None yet
Development

No branches or pull requests

3 participants