Data Import
Summary
How data gets in: upload your own files, import curated reference datasets, generate synthetic spectra, or search the NIST/HITRAN libraries. Everything lands in My Dataset, which workflows read from. Includes what to check before trusting an import.
The Data tab is where spectra enter SpectraSherpa. It turns your files, reference entries, examples, or generated spectra into a dataset that a workflow can analyze — and it makes the contents of that dataset visible before you commit to modeling.
For the ownership and admission rules shared by local files, paid uploads, built-in examples, provider-hosted references, and synthetic data, see Datasets and Providers.
The Data Tab at a Glance
The Data tab has six areas. Four bring data in, Multi-well records acquisition plans, and My Dataset is where you inspect and prepare data for analysis.
| Area | What it does |
|---|---|
| Upload | Bring in your own CSV, JCAMP-DX, NumPy, MATLAB v4/v5/v7.3, qualified PLS_Toolbox DSO, and instrument files. |
| Import | Add reference and example datasets from curated catalogs. |
| Synthesis | Generate synthetic spectra, including Beer-Lambert mixtures derived from NIST or HITRAN references. |
| Library | Search and import NIST and HITRAN reference spectra. |
| Multi-well | Plan samples, mixtures, plate layouts and acquisition matching. |
| My Dataset | The reusable store of everything you have brought into the current project. |
Everything Packages into My Dataset
Upload, Import, Synthesis, and Library all save their result into the same place — My Dataset, the project's reusable dataset store. Whichever path you use, the result is a named entry there.
For the usual GUI path, save a selection in My Dataset and bind the workflow's data source to it. The node registry and Python SDK also support explicitly bound file/data sources; My Dataset is not a claim that every workflow must use a database entry. The common GUI pattern is:
bring data in once → it lands in My Dataset → point one or more workflows at it.
Duplicate a workflow and keep the same dataset, or swap in a different My Dataset entry, without re-importing.
Upload Your Own Files
Open Data > Upload, click Load, set how the files should be read, then add them to My Dataset. Stage one or more files before committing them in a batch.
Formats. The native registry reads .csv, JCAMP-DX (.jdx, .dx, .jcamp), NumPy (.npy, .npz), MATLAB v4/v5 and v7.3/HDF5 .mat workspaces, the qualified Eigenvector PLS_Toolbox DSO contract in either MATLAB storage family, qualified Galactic SPC (.spc), one-dimensional Bruker OPUS (.opus or a numeric suffix), qualified Thermo OMNIC SPA/SPG/SRS (.spa, .spg, .srs), and qualified Renishaw WiRE WDF (.wdf). OPUS, multi-object MATLAB workspaces, and independent-XYXY SPC files may contain several typed results, so choose the exact scientific result when binding the file to a workflow. DSO and WDF map data remain n-dimensional with their exact axes and topology. Installing spectra-sherpa[scp] does not add ingestion formats. See Supported File Types for the current matrix and export guidance.
Options you set at upload. For CSV especially, these determine how the numbers are interpreted:
- Stage —
raw,preprocessed, orsynthetic. This labels where the data sits in the analysis lifecycle. - CSV data shape — choose spectra when the columns are ordered wavelengths or wavenumbers, or feature table when the columns are independent variables (for example, lab measurements). This sets the dataset's data role and changes how plots and axes are interpreted.
- CSV interpretation — the preview recommends one closed layout: headered or unheaded X/Y, using either decimal points or decimal commas. Supplier CSVs may use comma, semicolon, or tab delimiters. An unheaded two-column file is structurally ambiguous, so review the recommendation explicitly; the chosen profile is saved with the source and replayed by workflows and exported SDK code rather than being guessed again.
- Target column — the column holding reference values for supervised models (concentration, property, class).
- Target type — continuous for regression targets or categorical for class labels.
After upload, always open the inspection panels (below) to confirm the file read the way you intended.
For a DSO with more than two dimensions, the preview reports the complete native shape and per-dimension roles. It does not flatten the data into a plausible-looking matrix. Inspect the axis sets, class sets, and inclusion state, then add Dimension Projection with one explicit index for every inner mode before connecting a two-dimensional chemometric operation. A qualified two-dimensional image DSO exposes both its unfolded pixel table and an explicitly named image-cube result. The latter can feed a manually added PARAFAC node without projection; its source spatial mask is retained and honored. No PARAFAC analysis starter is included in 0.6.0.
Using your own data
Running Local OSS places no hosted limits on imports, and your data stays on your machine. The 0.6 hosted trial refuses customer scientific uploads and runs only its server-issued starters and qualified registered references. Subscription Cloud and Enterprise Hybrid have separately governed customer-data policies.
Import Reference and Example Datasets
Data > Import lists curated catalogs you can add with a click — ideal for learning a workflow before using your own data:
- Spectra Scientific Synthetic Benchmarks — synthetic FTIR and atmospheric-gas sets with known ground truth, including HITRAN-derived component spectra.
- Eigenvector Research (NIR/OES) — strongly recommended chemometrics examples such as corn, diesel NIR, IDRC shootout, CGL, and metal-etch OES. Use the provider link on the card, then return to Import downloaded file. SpectraSherpa does not retrieve or redistribute the source and admits the reviewed reference only after exact size and SHA-256 verification.
- OES Datasets — optical-emission process-monitoring data.
- Scikit-learn Datasets — tabular feature-table datasets for non-spectroscopic examples.
Select one or more entries, give the dataset a name, and add it to My Dataset.
For synthetic references with native concentration targets, My Dataset > Sample details shows the row-aligned concentrations and their recorded units. Choose a concentration in Target to enable supervised analysis; a separate sample-table upload is not required. These values are synthetic ground truth, not independent laboratory measurements. Viewing them does not alter the source dataset or its scientific identity.
Generate Synthetic Spectra
Data > Synthesis builds synthetic FTIR datasets from line-by-line or reference data, which is useful for method development and benchmarking when ground truth is known. You choose components, define concentration profiles, and set acquisition parameters:
- Source — NIST Quantitative IR (with a resolution and apodization choice) or HITRAN/HAPI (with wavenumber range, temperature, and pressure).
- Components — search by name, formula, or CAS and add the species in the mixture.
- Concentration profiles — shape each component's concentration across the generated samples.
- Generation — number of samples, path length, and added noise.
HITRAN sources fetch live and need your own API key and egress permission. See Reference Libraries and Synthesis for the scientific detail and citation guidance.
Import from the NIST and HITRAN Libraries
Data > Library searches reference spectra and imports them into My Dataset.
- NIST spectra read from the local library — search by compound, formula, or CAS, Load Spectrum to preview, and add entries to a basket. Add All adds every visible row at once, with compound-level de-duplication that keeps the highest-resolution entry.
- HITRAN spectra are fetched live and require a HITRAN API key (Settings > API Keys) and egress permission; requests are queued as background jobs with progress status.
When importing several spectra onto one grid, the default range mode keeps the widest span; very large combined grids are bounded for performance.
My Dataset: The Reusable Store
A My Dataset entry is a named dataset scoped to your project. It collects the files from every ingestion path and carries the metadata a workflow needs — sample and variable counts, spectral axis and units, data role, and any target values.
Because datasets live in the project, not inside a single workflow:
- one dataset can feed multiple workflows (sheets) in the same project;
- you can duplicate a workflow and keep the same dataset, or, when its source is a Collection Load node, choose a different saved selection in its Inspector Dataset list;
- your data stays scoped to you (and your project) — it is not shared implicitly.
Build a portfolio in My Dataset
A portfolio is a named, reusable analysis selection within a source dataset. It records selected files and data stage, the chosen scientific result when a file contains several, and any selected target and validation-group column. Saved sample corrections also retain their inclusion choices and reason. Saving a portfolio does not copy or rewrite the original measurements.
For example, keep an uncurated selection for review and save a second selection with a documented exclusion. Reuse either selection in PCA and PLS workflows without importing the source again.
- In My Dataset, focus the source dataset and inspect its files and metadata. Check the files to include; the shared overlay is a preview, not a merge.
- Confirm the data stage, target type and units, and any validation group. Review sample inclusion separately from plot sampling.
- Under Save dataset, enter a Portfolio name and click Save portfolio. If correcting samples, supply the requested reason. Keep distinct corrections separate when the interface requires it.
- Use Show beside a saved entry to restore its selection. Show Default returns to the source's default selection.
- Click Workflow from My Dataset. Analysis Starter uses the active selection; an existing Collection Load node can choose a saved selection in its Inspector.
The interface uses both “dataset” and “portfolio”: the source holds the data; the portfolio records which selection an analysis should use. Different saved selections can feed different workflow sheets. Changing the current preview does not rewrite earlier runs or silently rebind an existing workflow.
Duplicating a sheet keeps its verified Data Portfolio selection and records a new binding for the copy; the original sheet's selection history stays intact. If that portfolio is no longer available, choose a current portfolio before duplicating the sheet.
For registered reference data, selecting a response preserves the full sample table and original source identity. When both native responses and table columns provide that response, their values must agree; selection does not silently replace conflicting reference values.
For plate-based work, Multi-well supplies the acquisition plan; its matches become measured metadata only after a separate review and publication.
Inspect Before You Model
Three panels make a dataset's contents visible before it enters a workflow. Reviewing them is the cheapest way to catch a bad import:
- Files — the file names, extensions, and reader path used, plus the data-matrix shape per file and its stage.
- Metadata — sample count, variable count, technique, and the spectral axis title and units. Axis title/units and the data quantity are editable here when a file did not declare them.
- Data Matrix — a preview of the matrix with per-column statistics (min/max/mean/std, missing fraction) and, when a target is present, its type and class breakdown. Spectra render as an overlay; feature tables render as distributions.
Explicit missing values remain visible in this inspection. They are not
silently replaced with zeros, interpolated, or imputed. A dataset containing
them can be inspected, plotted, quality-reviewed, exported, and subsetted, but
numerical preprocessing and fitting refuse until the scientist removes or
repairs the affected rows or variables. When OMNIC processing history declares
a terminal blanked interval, use preprocess.clip_range to retain the measured
region before SNV, smoothing, derivatives, baseline correction, selection, or
modeling.
Data Semantics That Matter
A dataset is more than a grid of numbers. A few properties decide whether a model is meaningful:
- Data role. Spectra (
X_spectra) means the columns are ordered points on a physical axis — wavenumber, wavelength, time, or m/z — and are plotted as continuous spectra. Feature table (X_features) means the columns are independent variables and are summarized as distributions. The role is set at upload (CSV data shape) or inferred from the axis, and you can correct it. - Spectral axis and units. Confirm the coordinate quantity as well as its units. Wavelength, absolute wavenumber, and Raman shift are different quantities; an unlabeled numeric axis does not establish any of them. Supply missing source metadata explicitly before an operation that requires it.
- Sample identity. Inspect retained identifiers separately from display labels and generated row positions. A readable label or matching row count does not prove that two files describe the same specimens. Use an explicit, unique identifier mapping when attaching a sample table, and verify the resulting order.
- Targets. A target can be embedded as a column in the same file (set the target column at upload) or attached from a separate source in the workflow using the Attach Target node. Either way, confirm the target type — continuous for regression, categorical for classification.
Calibration Caution
When spectra and reference values arrive from separate files, align by stable sample identity whenever possible. A row-order join can train a model that looks numerically successful while quietly learning mismatched targets — one of the most common and most costly calibration mistakes. The inspection panels and matching sample counts are your first checks; sample IDs are the reliable one.
Preview and workflow selection
Comparison preview displays the checked datasets and files without changing the workflow source. Workflow binding uses the active dataset and its selected view. Feature-table previews show pairwise relationships, with distributions on the diagonal. Hover points for sample and target identity. Row/feature limits shown beside a plot apply to that preview, not the stored dataset.
Virtual Fab experiment ZIP
Select a generated Virtual Fab experiment ZIP in Data → Load → Files or ZIP. The native reader presents one dataset for each measurement step and channel, combining the selected lots and wafers. Different steps can use different wavelength grids and representations. The existing process panel filters by material, batch/wafer, processing step, metrology tool and time before adding samples to My Dataset. Thickness references remain named targets in nm; wafer IDs remain specimen IDs for independent wafer splitting.
Inside the ZIP, sherpa/ holds one CSV per measurement location and step,
with wavelength first and all channels on the same grid, plus a manifest of
targets and selection metadata. Sherpa reads this section directly. The separate
reproducibility/ section contains the complete fabrication recipe and optical
dispersion definitions for reopening the full Virtual Fab workbench. Sherpa does
not parse that section or expose it as model features or additional controls.
No generator installation, pyElli dependency or separate conversion is needed.
The SDK's native ingestion returns the same explicit step/channel assets.