Skip to content

Opening spectra

Press Open and choose a file. The dialog starts in the folder you used last.

Type Extension
Spectrometer pairs and blended tables .csv, .txt
Andor ASCII .asc
Andor SIF .sif

The chart title shows the file name.

Spectrometer pairs

A two-spectrometer instrument writes one file per spectrometer. LIBSight recognises them by spectrometer_1 and spectrometer_2 in the file name:

run17_spectrometer_1.csv
run17_spectrometer_2.csv

Open either one; the partner file with the other number is loaded with it. Each line of these files holds a wavelength followed by one or more intensity values; several values are averaged.

The two spectra are then merged into one:

  • the second spectrum is shifted by the Merge Shift from the options, to line the two spectrometers up;
  • where the two ranges overlap, the merged spectrum blends smoothly from the first into the second.

The noise level of each whole spectrum is shown as Blue and Red under Standard Deviation.

A file with neither spectrometer_1 nor spectrometer_2 in its name, and not in the blended format below, is opened on its own as spectrometer 1.

Blended tables

A .csv file whose name does not contain spectrometer_1 or spectrometer_2 is read as an already merged spectrum:

Wavelength,Intensity
214.66,120.5
214.71,118.9
...
  • The first column is the wavelength; the other columns are intensities.
  • Values may be separated by commas, semicolons or tabs.
  • Lines that do not start with a number - headers, comments - are skipped.
  • A file with several intensity columns holds several spectra; LIBSight analyses their average.

Andor files

File Content
.asc A single spectrum exported as text by the Andor software. The analysis grid is set to the file's own points
.sif The Andor camera format, often holding a whole series of spectra. LIBSight analyses every spectrum of the series and shows the results as bars - see Series of spectra. The chart title shows the number of spectra

What happens after opening

Every spectrum goes through the same steps:

  1. Filter - a running median and mean give the continuum under the lines, which is subtracted. The noise is measured stretch by stretch, so the faint UV lines of a quiet part are not lost under the noise of the bright red end; it is never taken higher than the noise of the whole spectrum.
  2. Peaks - the maxima standing above that noise become the peak list, if they look like lines: spread over their neighbouring points too (a lone hot pixel is not a line), at least 10 % above the continuum under them, and at half height no wider than 0.6 nm or 8 points of the spectrum, whichever is more: a spectrometer with 0.3 nm between its points draws a line 1.5 nm wide. A broad bump of a few counts on a bright continuum is not taken. The flat top of a line that saturates the detector is one peak, at its middle.
  3. Peak spectrum - the peaks are resampled onto the analysis grid, which spans the wavelength range of the spectrum opened and has as many points as it does - see the options.
  4. Analysis - the elements enabled in the periodic table are looked for by their key lines, and the peaks are put down to the elements found and labelled - see Identifying elements.