> ## Documentation Index
> Fetch the complete documentation index at: https://docs.chemolytic.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Spectra

> View, archive, and manage spectra in your project.

A spectrum is one measurement from your sensor: a curve of intensity values across wavelengths or wavenumbers. Spectra are the raw input to all model training in Chemolytic.

## Spectra page

Go to **Spectra** in the project sidebar.

<Frame>
  <img src="https://mintcdn.com/chemolytic/Z4NdeoejDDDPqHhB/images/screenshots/spectra/spectra-overlay.png?fit=max&auto=format&n=Z4NdeoejDDDPqHhB&q=85&s=a247390404abe73caff3f2a0bec9a8f8" alt="Spectra page showing a sensor filter, chart preview, and table of spectra rows with sample name and sparkline" width="1714" height="1196" data-path="images/screenshots/spectra/spectra-overlay.png" />
</Frame>

The page has three sections:

1. **Filters**: sensor selector, search box, archive tabs (Active / Archived / All)
2. **Chart preview**: shows all spectra for the selected sensor overlaid
3. **Table**: one row per spectrum with sample name, sensor, creation date, and a sparkline preview

### Sensor filter

The sensor dropdown is the most important filter. Each sensor has its own x-axis, so you cannot meaningfully overlay spectra from different sensors. The chart preview only appears when a sensor is selected.

<Note>
  We're working on multi-sensor plotting. The first version will support overlaying spectra from sensors of the **same model** (since they share the same x-axis). A later release will support overlaying across different models with automatic alignment.
</Note>

### Archive tabs

| Tab          | Shows                               |
| ------------ | ----------------------------------- |
| **Active**   | Non-archived spectra (default view) |
| **Archived** | Archived spectra                    |
| **All**      | Both active and archived            |

### Search

Type in the search box to filter the visible rows by sample name.

### Sort

Toggle between **Newest first** and **Oldest first** using the sort button.

### Plan limits

The plan limit on spectra per project is shown at the top. Archived spectra count toward the limit. Delete archived spectra you no longer need to free up quota.

## Viewing a spectrum

Click any row in the table to open the spectrum detail panel.

<Frame>
  <img src="https://mintcdn.com/chemolytic/Z4NdeoejDDDPqHhB/images/screenshots/spectra/spectrum-detail.png?fit=max&auto=format&n=Z4NdeoejDDDPqHhB&q=85&s=28369f0cd23e3a982d65f79a800ed1d5" alt="Spectrum detail panel showing the interactive chart, metadata, and creation info" width="1714" height="1196" data-path="images/screenshots/spectra/spectrum-detail.png" />
</Frame>

The detail panel shows:

* The interactive chart for this spectrum
* Sample name and linked sensor
* Sensor units (x and y)
* Metadata extracted from the original file (if any)
* Creation date and spectrum ID

## Archiving a spectrum

Archive is a **reversible** soft delete. Archived spectra:

* Are hidden from the Active tab
* Cannot be used in new datasets or analyses
* Still count toward your plan's spectra limit
* Can be unarchived at any time

To archive, open a spectrum and click **Archive**, or select multiple rows and click **Archive N** in the selection toolbar.

To unarchive, switch to the **Archived** tab, open a spectrum, and click **Unarchive**.

<Tip>
  Use archive when you want to remove a spectrum from active modelling (because it's an outlier or measurement error) but might still need it later for reference.
</Tip>

## Deleting a spectrum

Delete is **permanent**. Deleted spectra cannot be recovered.

<Warning>
  You can only delete spectra that have been **archived first**. The delete button is hidden on active spectra. Archive a spectrum before you can delete it.
</Warning>

<Steps>
  <Step title="Archive the spectrum">
    From the Active tab, archive any spectra you want to delete.
  </Step>

  <Step title="Switch to the Archived tab">
    Click the **Archived** tab.
  </Step>

  <Step title="Delete">
    Open the spectrum (or select multiple) and click **Delete**. A confirmation dialog appears with the warning "Irreversible action".
  </Step>
</Steps>

## Bulk operations

Select multiple spectra using the row checkboxes. A toolbar appears at the bottom of the page with the count and action buttons:

* **Archive N** (when on Active tab)
* **Unarchive N** (when on Archived tab)
* **Delete N** (when on Archived or All tab)

<Frame>
  <img src="https://mintcdn.com/chemolytic/Z4NdeoejDDDPqHhB/images/screenshots/spectra/bulk-toolbar.png?fit=max&auto=format&n=Z4NdeoejDDDPqHhB&q=85&s=e4c4aa43271e3109152693bd1ffe6a52" alt="Selection toolbar showing selected spectra count, archive button, and delete button" width="1714" height="1196" data-path="images/screenshots/spectra/bulk-toolbar.png" />
</Frame>

## Spectra and samples

Every spectrum is linked to exactly one sample. If the sample doesn't exist when you upload, Chemolytic creates it automatically using the name from the file or extracted from the filename. See [Uploading spectra](/data/uploading-spectra) for full details.

<Warning>
  If you delete a sample, **all its spectra are deleted as well**. This cannot be undone.
</Warning>

## Spectra and sensors

Every spectrum is linked to exactly one sensor. The sensor's x-axis (point count and range) is locked when the first spectrum is uploaded. All subsequent spectra must match.

If you need a different x-axis for the same instrument (different resolution or range), create a new sensor.
