Load Spectral Data
Spectral data in the AI4SH database covers four instrument types spanning ultraviolet to mid-infrared wavelengths. All spectral arrays are stored in ascending wavelength order. Each instrument requires three loading steps: register the spectrometer (wavelength axis), create observation logs (linking sampling logs to the instrument provision), and insert observations (the spectral arrays tied to individual samples).
All spectral loading is driven by:
./ai4sh/import_data/load_ai4sh_spectral_data.ipynb
Four instruments
| Instrument | Provision | Range | Bands | Type |
|---|---|---|---|---|
| FOSS DS2500 | foss ds2500 l |
400–2500 nm | 4200 | Vis-NIR reflectance |
| Si-Ware Neospectra | neospectra |
1350–2550 nm | 257 | NIR reflectance (handheld) |
| Bruker Invenio S | bruker invenio s ftir |
2501–16686 nm | 2383 | MIR reflectance (FTIR) |
| FOSS Micral | foss micral |
178–427 nm | 2491 | UV-Vis emission intensity (LIBS) |
Required loading sequence per instrument
For each of the four instruments, load in this order:
- Manage spectrometer — register the instrument and its wavelength axis
- Manage observation log — link sampling logs to the instrument provision
- Manage observation — insert spectral arrays linked to individual samples
All cells use job_file, not process_file.
Full loading sequence
FOSS DS2500
Neospectra
FTIR
LIBS
Prerequisites
Load sample data must be complete. Observation utility records (provision, provision_indicator, preparation, preservation, storage) must exist from Load utility data. FOSS DS2500 and FTIR also require a provision_serial_nr record for the instrument serial number.