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.5 (2025-07-10)

  • The writers for ARFF, ASC, ASCIIXY, CSV and DPT now handle writing to a binary file-like objects as well

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.5.tar.gz (44.9 kB view details)

Uploaded Source

File details

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

File metadata

  • Download URL: wai_spectralio-0.0.5.tar.gz
  • Upload date:
  • Size: 44.9 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.5.tar.gz
Algorithm Hash digest
SHA256 21ce19e63d0139a73e0fcb5b448a9d4eba12a72a060062efa63e08156bd9acc1
MD5 8bbaa8e800dddc8ffcc83edde5d60a77
BLAKE2b-256 ac912cec02d41113f332f0d714e2c5eb2fe233188594c793eaae2b3c4f582747

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