Getting Started with XAS Spectra
Try the viewer with a single curve and a family of four spectra.
What XAS Spectra does
An XAS spectrum shows how X-ray absorption changes with photon energy. In GX-TXT, use XAS Spectra to inspect one scan or overlay scans in a family. For example, identify where the signal rises sharply or compare curve shapes over the same energy range. About the technique, Advanced Light Source.
XAS Spectra Viewer is where you choose the source. The viewer reads a Session Dataset, sets Energy [eV] or Energy [keV] on the horizontal axis depending on the source, sets mu(E) on the vertical axis, and creates a plot variant. For a family, it produces a trace for each value of the family coordinate. It then opens PlotSpec v2 Series, the shared GX-TXT editor. The plot appears in the Plots tab of the main window.
To view and zoom into a spectrum directly in a viewer, follow the Curve Viewer workflow. It uses the same XAS Datasets.
- Acquisition
- Prepares a Dataset from a file. Choose the columns and, for raw signals, how to derive the quantity to plot.
- XAS Spectra Viewer
- Select the Dataset and build the initial plot with the spectral bindings already set.
- PlotSpec v2 Series and Plots
- These show the series configuration and the rendered curves. Inspect points, select family members, change styles and save the configuration. To normalize a spectrum or estimate the edge energy E0, use XAS normalization in Analysis.
Open XAS Spectra and view the first curve
Use a test Session. If you already have an acquired XAS spectrum, go to step 2. Otherwise, follow the example with the synthetic CSV.
- Prepare the source. Download singolo.csv and extract it from the ZIP. In Acquisition → Instruments / Spectroscopy → XAS spectra import, set
processed_single,comma,present, Energy column = 1, Energy unit =eVand Processed mu(E) column = 2. Add the CSV, setxas_singoloto Dataset ID andspectrum.scientificto Proposed contract, then press Import. For queue details, see how to acquire the file. - Open the viewer. In the main window, open Viewers → Spectroscopy & Signals → XAS Spectra. In XAS Spectra Viewer, open XAS source Dataset and choose
xas_singolo. Even if the menu suggests an ID, check that it is the one you want. The status should showReady to open xas_singolo in the persistent graph editor..

- Create the plot from the viewer. Press Open persistent XAS graph. In PlotSpec v2 Series, note the ID in the window title, here
p0001. The table shows a XAS spectrum row with Dataset =xas_singolo, X =spectral_xand Y =spectral_y. The viewer sets these bindings automatically. If you only want to read the curve, press Close.

- Read the result in Plots. Return to the main window and open Plots. Press Refresh if needed and select Plot pNNNN with the same ID as in the editor. The right pane shows a curve with energy in eV and signal mu(E). In the synthetic example the curve rises sharply near 7112 eV. With Select data you can trace plotted points back to Dataset rows.

Compare four scans in the viewer
- Acquire famiglia.dat as
xas_famiglia, then return to Viewers → Spectroscopy & Signals → XAS Spectra. In XAS source Dataset choose the new source.

- Check that the status shows
xas_famigliaand press Open persistent XAS graph. The editor shows one XAS spectral family row. That single row groups byparameter_valueto produce the four curves.

- Close the editor, go to Plots and select the new ID. The legend distinguishes the four members. In this file, numbers 1–4 indicate column order, and energy is in keV. See select individual members to compare only curves 2 and 4.

Recognize a missing source
The window can open without an eligible spectrum. No XAS spectra are available in the current Session. indicates this condition. The menu and button stay disabled. Open a Session with an XAS spectrum or acquire the data, then reopen the viewer from the Viewers tab.

Check what the Dataset measures. XAS source Dataset filters by data contract. In the test it also listed an IR spectrum with wavenumber in cm⁻¹. The plot used the XAS labels Energy and μ(E). Choose a source with verified XAS energy and absorption quantities. For an IR curve, use the IR viewer or configure a Dataset plot for its quantities.
Distinguish the file, Dataset and plot
- Source file
- Acquisition keeps a RAW copy and its fingerprint. Select the text table in Acquisition.
- Dataset
- The Session’s canonical numeric data. A single spectrum has contract
spectrum.scientificand containsspectral_xpairs,spectral_y. A family has contractspectrum.familyand addsmember_idandparameter_value. If a file contains only spectrum columns and lacks a physical coordinate, the import uses indices starting at 1 as coordinates. - Persistent plot
- A Plot Dataset variant that keeps data references, series and presentation settings. To reopen it after closing the Session, use Save configuration in the main window as shown in the chapter on plots.
Help and version
In the source window, Help → User Manual… or F1 opens the installed manual. Help → About Module… identifies the viewer module. This guide was tested with GX-TXT 0.9.8.10-dev-112-p011 and XAS Spectra viewer 1.0.5.