Five Reproducible Examples

Single spectrum, family, transmission, fluorescence and a ratio with one missing sample.

Example files

The five files were generated with deterministic formulas for this guide. Use a test Session. For each file, use Acquisition → Instruments / Spectroscopy → XAS spectra import with the specified settings. After acquiring the Dataset, use Viewers → Spectroscopy & Signals → XAS Spectra. Choose its ID from XAS source Dataset and press Open persistent XAS graph. The editor shows the variant ID to select in Plots. See the walkthrough for the viewer for each window.

1. Read a single processed spectrum

  1. Download singolo.csv and extract it from the ZIP.
  2. Set processed_single, comma and present. Keep Header row at 1 and the initial skipped rows at 0. Use energy column 1 in eV and μ(E) column 2.
  3. Acquire as xas_singolo with contract spectrum.scientific. The Dataset contains 251 pairs. At 7112 eV the value is approximately 0.85358.
  4. In the viewer, choose xas_singolo and press Open persistent XAS graph. In Plots, check that the horizontal axis is Energy [eV].
The processed spectrum in Plots, with a single curve and a horizontal axis in eV.
The processed spectrum in Plots, with a single curve and a horizontal axis in eV.

2. Plot a family of four spectra

  1. Download famiglia.dat and extract it from the ZIP.
  2. Set processed_family, whitespace and absent, with energy column 1 in keV. Keep 2 as the first spectral column and 0 as the last.
  3. Acquire xas_famiglia with contract spectrum.family. Each member has 251 points. The family coordinate runs from 1 to 4 and represents column order.
  4. In the viewer, choose xas_famiglia and press Open persistent XAS graph. One XAS spectral family row in the Series editor produces four curves, each labeled separately in the legend.
Four family curves in the same chart, with energy in keV.
Four family curves in the same chart, with energy in keV.

3. Calculate μ(E) from incident and transmitted intensities

  1. Download trasmissione.tsv and extract it from the ZIP. The first line is a comment and the second is the tab-separated header.
  2. Set raw_transmission, tab, present, Header row 1 and Physical rows before header/data 1. Use energy column 1 in eV, numerator 2 for I0 and denominator 3 for It.
  3. Acquire xas_trasmissione. From XAS source Dataset, open it with Open persistent XAS graph. At 7112 eV, ln(I0/It) is approximately 0.85358. Compare with example 1 to verify that the logarithm recovers the original synthetic value.
Persistent plot of the Dataset derived from transmission intensities.
Persistent plot of the Dataset derived from transmission intensities.

4. Sum three fluorescence channels

  1. Download fluorescenza.csv and extract it from the ZIP. The CSV uses semicolons.
  2. Set raw_fluorescence, semicolon and present. Use energy column 1 in eV, numerator 3;4;5 and denominator 2.
  3. Acquire xas_fluorescenza, select it in XAS Spectra and open the plot with Open persistent XAS graph. At 7112 eV, the sum of the three signals divided by I0 is approximately 0.138883.
Fluorescence curve derived from three channels and the reference intensity.
Fluorescence curve derived from three channels and the reference intensity.

5. Handle a zero denominator

  1. Download rapporto.dat and extract it from the ZIP.
  2. Set raw_ratio, whitespace and absent, with energy column 1 in eV. Enter 2;3 as the numerator and 4 as the denominator.
  3. Acquire as xas_rapporto with omit_samples. The row at 7120 eV has a zero denominator, leaving 250 samples in the Dataset.
  4. Open xas_rapporto from the viewer. The line plot connects the points on either side of the missing sample. Check the table to identify it.
  5. To see the acquisition fail, return to Acquisition and repeat with a different ID and error.
Ratio plot after excluding the single invalid pair.
Ratio plot after excluding the single invalid pair.