nirs4all-formats¶
Rust-first, low-level readers for NIRS and spectroscopy file formats, with matching Python / R / WebAssembly / C bindings and conformance checks against reference loaders.
nirs4all-formats auto-detects each file by content, decodes it through a single Rust
registry, and returns a canonical, provenance-tracked SpectralRecord model. It
does no modelling itself — it produces the records that
nirs4all consumes.
Start here: Getting started · Installation · Usage guide · Supported formats
Getting started
- Getting started
- Installation
- Usage guide
- Supported formats
- Status legend
- Generic & tabular
- FT-NIR / FT-IR / UV-Vis vendors
- Field spectroscopy
- Hyperspectral cubes
- Sun photometers
- HDF5, containers & standards
- Exchange & standards-track
- Raman & adjacent (decoded, adjacent to core NIRS)
- Detected & deliberately refused (not NIRS)
- Not yet supported — help us by sending samples
- Don’t see your format?
Reference
Format reference
- Allotrope ADF
- Allotrope ASM JSON
- ANDI/MS NetCDF
- AnIML XML
- ASD FieldSpec
- Avantes AvaSoft
- Bruker OPUS
- BUCHI NIRCal
- DigitalSurf SUR / PRO
- ENVI Spectral Library & Standard Cubes
- ERDAS LAN / AVIRIS (Indian Pines)
- Excel Spectral Tables
- Felix Instruments F-750
- FGI HDF5 + XML
- Foss / WinISI
- Thermo / Galactic GRAMS SPC
- Hamamatsu HPD-TA IMG
- Generic HDF5 NIRS Datasets
- Horiba LabSpec / JobinYvon
- JASCO JWS
- JCAMP-DX
- MATLAB MAT / R RData Datasets
- Metrohm Vision / Vision Air
- EMSA/MAS MSA (ISO 22029)
- mzML
- Generic NetCDF NIRS Datasets
- Thermo Nicolet OMNIC
- NumPy NPY / NPZ
- Ocean Optics / Ocean Insight
- OpenSpecy Raman / (FT)IR
.rds - Parquet NIRS Tables
- PerkinElmer Spectrum / IR
- PP Systems UniSpec SC / DC
- Renishaw WDF
- Row-Oriented Spectral Tables
- Consumer Physics SCiO CSV
- Shimadzu UVProbe
- Si-Ware API JSON / CSV
- Si-Ware NeoSpectra
- Spectral Evolution / PSR SED
- Spectral Matrix Exports
- Sun Photometer Text Exports
- SVC / GER SIG
- Delimited Spectral Tables (one spectrum per row)
- Princeton TriVista TVF
- USGS SPECPR / Spectral Library Text
- VIAVI MicroNIR
- WiTec WIP / WID
The nirs4all ecosystem¶
Main Python modelling library — pipelines, SpectroDataset, predictions.
Portable C-ABI PLS/NIRS engine (libn4m) + bindings.
Dataset-assembly bridge → SpectroDataset.
Curated DOI-pinned NIRS dataset catalog (n4a-datasets).
Portable aggregate distribution (Rust + bindings).
Reproducible, OOF/leakage-safe ML coordinator.
Typed sample-aligned multi-source data contracts.