[ANN] SPEFiles.jl a package to read Teledyne Princeton Instruments' Lightfield SPE Files

klafyvel
Tue, 04 Oct 2022 20:08:09 +0000
Package Announcements

I am very happy to announce the release of SPEFiles.jl, a package to read Lightfield SPE files.

Lightfield is software that is used by spectroscopists to control spectrometers. SPEFiles.jl provides a pure Julia reader of them, with a Tables.jl interface which allows usage with DataFrames.jl. SPEFiles.jl handles simple one-dimensional spectra, as well as more complex multi-frames, multi-ROIs 2D spectra. It also allows reading commonly used metadata such as exposure.

An example of how to use it would be :

using SPEFiles, DataFrames, CairoMakie

file = SPEFile("myfile.spe")
df = DataFrame(file)

f, ax, l = lines(df.wavelength, df.count,
    axis=(
        xlabel="Wavelength (nm)",
         ylabel="Counts",
        title="My spectrum"),
        subtitle="Exposure : $(exposure(file)) ms"
    )
)
save("myspectrum.png", f)

Contributions and sugestions are welcome !