Import Your First IR/Raman Dataset
Start with a small, representative dataset. Ten to fifty spectra are enough to verify file reading, axes, and plots before you import a full calibration set.
Recommended First Files
Use one of:
.csvwith one row per sample and spectral variables as columns.jdxor.dxJCAMP-DX spectra.npyor.npzarrays.matmatrix data- vendor files after installing
spectra-sherpa[scp]
Import Checklist
- Open Data > Import.
- Select the file or files.
- Check Files for the exact names and extensions received by SpectraSherpa.
- Check Metadata for inferred labels, units, and source information.
- Check Data Matrix for row count, column count, and axis direction.
- Save the dataset to My Dataset if you want to reuse it in workflows.
Calibration Data
For PLS or classification, make target values explicit. Prefer a CSV or metadata file with stable sample IDs rather than relying on row order alone.
Before training, confirm:
- samples line up with reference values
- replicate spectra are either grouped intentionally or separated intentionally
- units are recorded
- target columns are named clearly
Common First Workflow
Run a PCA template first. PCA quickly shows whether spectra cluster, whether preprocessing is needed, and whether any sample looks obviously misaligned or outlying.