Quasars / orange-spectroscopy

Other
51 stars 58 forks source link

Importing .spc files from OPUS #676

Open Warinf opened 1 year ago

Warinf commented 1 year ago

Hi,

We have a minor issue, that we can not open directly .spc files if taken from OPUS. If we import to GRAMS and re-export files, it works. Do you have suggestions on what could be a problem?

(I have added files as examples)

Spectra.zip

borondics commented 1 year ago

Hi, Thanks for the bug report!

Could you also send the same file that is saved directly from OPUS and then re-saved from GRAMS? Maybe then we can see the differences.

On Fri, Jun 2, 2023 at 3:58 PM Warinf @.***> wrote:

Hi,

We have a minor issue, that we can not open directly .spc files if taken from OPUS. If we import to GRAMS and re-export files, it works. Do you have suggestions on what could be a problem?

(I have added files as examples)

Spectra.zip https://github.com/Quasars/orange-spectroscopy/files/11635953/Spectra.zip

— Reply to this email directly, view it on GitHub https://github.com/Quasars/orange-spectroscopy/issues/676, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABQDIGXBTRMYQMJMLE4Q6OTXJHWRBANCNFSM6AAAAAAYYLNUII . You are receiving this because you are subscribed to this thread.Message ID: @.***>

Warinf commented 1 year ago

Thanks for the quick response.

I have attached a zip archive with D2O_GRAMS.SPC (resaved from GRAMS) and D20_OPUS.SPC (original OPUS) Spectra_OPUS_GRAMS.zip

borondics commented 1 year ago

Thanks! As far as I can see it will be a header issue. We probably need to add some code in the SPC reader.

image

Warinf commented 1 year ago

Thanks for investigating the issue!