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.

  1. 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 = eV and Processed mu(E) column = 2. Add the CSV, set xas_singolo to Dataset ID and spectrum.scientific to Proposed contract, then press Import. For queue details, see how to acquire the file.
  2. 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 show Ready to open xas_singolo in the persistent graph editor..
XAS Spectra Viewer with xas_singolo selected. The status confirms the ID before opening the plot.
XAS Spectra Viewer with xas_singolo selected. The status confirms the ID before opening the plot.
  1. 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_x and Y = spectral_y. The viewer sets these bindings automatically. If you only want to read the curve, press Close.
The editor opens after Open persistent XAS graph. The title identifies the variant and the XAS spectrum row shows the prefilled bindings.
The editor opens after Open persistent XAS graph. The title identifies the variant and the XAS spectrum row shows the prefilled bindings.
  1. 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.
Plots shows the same p0001 variant selected and the xas_singolo curve on the right.
Plots shows the same p0001 variant selected and the xas_singolo curve on the right.

Compare four scans in the viewer

  1. Acquire famiglia.dat as xas_famiglia, then return to Viewers → Spectroscopy & Signals → XAS Spectra. In XAS source Dataset choose the new source.
The single dataset and the family are available in the viewer selector.
The single dataset and the family are available in the viewer selector.
  1. Check that the status shows xas_famiglia and press Open persistent XAS graph. The editor shows one XAS spectral family row. That single row groups by parameter_value to produce the four curves.
The editor opened by the viewer shows the XAS spectral family row bound to xas_famiglia in variant p0002.
The editor opened by the viewer shows the XAS spectral family row bound to xas_famiglia in variant p0002.
  1. 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.
In Plots, variant p0002 shows all four xas_famiglia curves on the same energy scale.
In Plots, variant p0002 shows all four xas_famiglia curves on the same energy scale.

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.

In a session without compatible spectra, the viewer shows why the button is disabled.
In a session without compatible spectra, the viewer shows why the button is disabled.

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.scientific and contains spectral_x pairs, spectral_y. A family has contract spectrum.family and adds member_id and parameter_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.