Open licheng1221 opened 1 year ago
Can you tell me which spectrolab version you're running R 3.x?
Spectrolab does not automatically merge your data into one single spectra object if they have different wavelengths or band resolutions. For example, if your bands are [400, 401, 402] for spectra 1 and [399.8, 401.1, 402.3] for spectra two, spectrolab will return those data as a list of spectra objects instead of a single spectra object. You will need to use the "resample" function to merge those data.
Does that make sense?
On Wed, Mar 8, 2023, 4:13 AM Cheng Li @.***> wrote:
Hi, I have been using spectrolab for a while. And one thing I have noticed: Now with R 4.2.2, after run read_spectra() it always says: Returning a list of spectra because some files had different number of bands or band values. If you want to make those data compatible, consider resampling (with resample) and then combining them (with combine)
However, with e.g. R 3.6.3, it doesn't show this message. These are the only two R versions installed on my laptop so that I could test them.
Could you please help me better understand what this means and do I need to do anything about it? Thank you!
Best, CL
— Reply to this email directly, view it on GitHub https://github.com/meireles/spectrolab/issues/19, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAMDYKEKXJD4FW4L7YHIBYDW3BETRANCNFSM6AAAAAAVTQNX5U . You are receiving this because you are subscribed to this thread.Message ID: @.***>
Hey Dudu, I'm having the same issue. I'm using spectrolab 0.0.18. When I'm reading the example data
the spectra object contains all 9 files as expected, but I'm getting the error message:
Returning a list of
spectrabecause some files had different number of bands or band values. If you want to make those data compatible, consider resampling (with resample) and then combining them (with combine)
We could just get rid of the error...
Hi, I have been using spectrolab for a while. And one thing I have noticed: Now with R 4.2.2, after run read_spectra() it always says: Returning a list of
spectra
because some files had different number of bands or band values. If you want to make those data compatible, consider resampling (with resample) and then combining them (with combine)However, with e.g. R 3.6.3, it doesn't show this message. These are the only two R versions installed on my laptop so that I could test them.
Could you please help me better understand what this means and do I need to do anything about it? Thank you!
Best, CL