Skip to content

spectrochempy/spectrochempy-omnic

Repository files navigation

SpectroChemPy OMNIC Reader

A standalone reader (and soon a plugin for SpectroChemPy) that enables reading Thermo Scientific™ OMNIC™ spectroscopy files (.spa,.spg, .srs) and Surface Optics Corp. Files (.hdr, .sdr,.ddr)

Installation

pip install spectrochempy-omnic

Usage

from spectrochempy_omnic import OMNICReader as read

# Read an OMNIC file
res = read("path/to/your/file.spg")

# get results numpy arrays
data = res.data  # array of data
shape = data.shape

# get axis
x = res.x
y = res.y

xunits, xtitle = res.x_units, res.x_title
yunits, ytitle = res.y_units, res.y_title

Requirements

  • Python >=3.10
  • NumPy

License

This project is licensed under the CeCILL-B FREE SOFTWARE LICENSE AGREEMENT.

Contributing

Contributions are welcome! Please feel free to submit a Pull Request.

Issues

If you encounter any problems, please file an issue along with a detailed description.

Authors

Citation

If you use this software in your research, please cite:

@software{spectrochempy_omnic,
    title = {SpectroChemPy OMNIC Reader},
    author = {Travert, Arnaud and Fernandez, Christian},
    url = {https://github.com/spectrochempy/spectrochempy-omnic},
    version = {0.1.0},
    year = {2025}
}

About

SpectroChemPy Omnic file reader

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages