Skip to main content

Python library for reading/writing various NIR, MIR, XRF spectroscopy data formats.

Project description

Python library for reading/writing various NIR, MIR, XRF spectroscopy data formats.

Supported formats:

  • ADAMS spectra (.spec, .spec.gz)

  • ARFF (row-wise)

  • ASC

  • ASCII XY

  • CAL (FOSS)

  • CSV (row-wise)

  • DPT

  • MPS (XRF)

  • NIR (FOSS)

  • OPUS (Bruker)

  • OPUS ext (Bruker)

  • SPA (Thermo Scientific)

Changelog

0.0.4 (2025-07-03)

  • added method read_fp to SpectrumReader and write_fp to SpectrumWriter to make use of file-like objects directly

0.0.3 (2025-06-25)

  • added read/write support for spectra in CSV files (row-wise)

  • added read/write support for spectra in ARFF files (row-wise)

  • the ADAMS writer now outputs the Sample ID as well

0.0.2 (2025-06-18)

  • fixed access of output_sampledata flag of ADAMS Writer

  • added setter for sample data in Spectrum class

  • the NIR Reader no longer skips the reference values

  • serialization of constituents in FOSS NIR header is now more robust

0.0.1 (2025-04-14)

  • initial release

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

wai_spectralio-0.0.4.tar.gz (44.7 kB view details)

Uploaded Source

File details

Details for the file wai_spectralio-0.0.4.tar.gz.

File metadata

  • Download URL: wai_spectralio-0.0.4.tar.gz
  • Upload date:
  • Size: 44.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.12.3

File hashes

Hashes for wai_spectralio-0.0.4.tar.gz
Algorithm Hash digest
SHA256 2a4351c892d99a72c333731caad182f0c6705f8b6b9eb99d6b0c1e2f4fe856da
MD5 f28f3e12d6aa99aa26ae0eb1d091b7c2
BLAKE2b-256 c04e8be31af02f43bb7983ad1cecbffad83a71744e6e9b7459ad40199c29018a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page