Skip to content

update xas input - add xas-viewer

payno requested to merge fix_29 into master

Description / Goal

upgrade the xas input

TODO list

  • plot data for xas_input acording to url, dimensions...
    • add dimensions for 2D data (.dat files for example)
    • use SpectrumViewer to display spectrum loaded
    • add a raw data viewer for spectrum
    • update automatically plot / raw data when data path change or dimension
  • add a xas-viewer application able to load and display input data (from command line)

INFO (how to use...)

Most of the modifications are visible from the xas_input. The new application xas-viewer can be used from command line:

# from a simple ASCII file:
est xas-viewer --input EXAFS_Cu.dat
# from a hdf5 file using the '@' syntax
est xas-viewer --input-spectra data@B33_test_1.h5 --input-channel energy@B33_test_1.h5
# from a hdf5 file using silx DataUrl
est xas-viewer --input-spectra "silx:///[...]B33_test_1.h5?path=/data"  --input-channel "silx:///[...]B33_test_1.h5?path=/energy"

Any warning ?

For now we provide meaning of each dimension (dimension 0 is channel, dimension1 is X...) when it looks like for x-ray larch this is the other way around for x, y... user should provide the dimension (X is dimension1, Y on dimension 2...). Not sure to know what is the best.

More info

associated materials (screenshot, test scripts...)

Screenshot_from_2020-12-11_11-08-14

Screenshot_from_2020-12-11_11-08-23

Screenshot_from_2020-12-11_11-10-55

Edited by payno

Merge request reports

Loading