wojdyr / xylib

library for reading files with x-y data from powder diffraction, spectroscopy, or other experimental methods
GNU Lesser General Public License v2.1
61 stars 18 forks source link

Extend meta data for .xsyg files and add spectrometer use #16

Closed JohannesFriedrich closed 7 years ago

JohannesFriedrich commented 7 years ago

An update to the *.xsyg file format. Now with:

wojdyr commented 7 years ago

Hi Johannes, I cannot easily merge it, it shows me:

Conflicting files xylib/xsyg.cpp

Could you rebase and update?

JohannesFriedrich commented 7 years ago

The problem should be solved now ...

wojdyr commented 7 years ago

Thanks!

wojdyr commented 4 years ago

I see that format uses different logic if detector == "Spectrometer". Do you happen to have an example file with detector="Spectrometer"?

wojdyr commented 4 years ago

I found TLSpectrum.xsyg which I used for testing, together with rfqm_uv.xsyg and XSYGExample.xsyg. Then I refactored reading xsyg files. It's mostly simplifications, whitespace changes, some typos in metadata (lexStuidoVersion, ".simulator" -> stimulator). The TLSpectrum.xsyg produced a file with a number of y columns, all with the same title "cts [1/ch]". I changed the title to a number from the XML file that precedes the y values. If it doesn't make sense please let me know. I'd like to release a new version of xylib soon.

RLumSK commented 4 years ago

Thank you! I double-checked and it looks good to me. The preceding y-values also make sense to me and the import test went well.