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

# Raman

> Vibrational spectroscopy for material composition and crystal quality

Raman analysis processes spectroscopy files, reads acquisition settings from filenames, and corrects each spectrum before detecting peaks. Spectra are stored on a common Raman shift axis so that results from different files can be compared directly.

## Overview

The Raman pipeline processes data in three stages:

1. **File parsing**: reads the spectral axis and intensity from uploaded .txt or .csv spectroscopy files
2. **Metadata extraction**: reads laser power, exposure time, accumulation count, and excitation wavelength from the filename, along with descriptive details such as sample identity and measurement location
3. **Spectrum processing**: removes cosmic-ray spikes, normalizes intensity by laser power and exposure (when known), calibrates the shift axis against silicon (when a silicon peak is present), subtracts the background, and detects peaks

### Key Metrics

| Metric | What It Tells You |
| - | - |
| Raman shift | Spectral position in cm⁻¹. |
| Intensity | Scattering intensity after spike removal and background subtraction, normalized by laser power and exposure when known. |

> [tab] Guide
>
> ### Adding Data
>
> Upload .txt or .csv spectroscopy files through the data page. Each file should contain a Raman shift column and an intensity column. Processing starts automatically once the upload completes.
>
> To enable intensity normalization, include the laser power and exposure time in the filename, for example `SampleA_center_532nm_2mW_30s_10ac.txt`. See [Photoluminescence](https://docs.atomscale.ai/platform/characterization/photoluminescence.md) for the full filename convention.
>
> ### Viewing Results
>
> Once processing completes, the workspace displays an interactive spectrum chart.
>
> **Region filter**: Use the **Regions** dropdown above the chart to show or hide detected peaks. Each **Detected Peak** is shown as a shaded band on the chart.
>
> **Series filter**: Use the **Series** dropdown to show or hide the intensity trace.
>
> A configuration drawer is accessible via the gear icon, though no configuration options are available yet.

> [tab] Technical Details
>
> ### Analysis Pipeline
>
> The Raman pipeline processes each uploaded file through three stages.
>
> #### Stage 1: File Parsing
>
> The file is parsed into a spectral axis and intensity. Tab-, comma-, and semicolon-delimited files are supported. Multi-column map or line-scan files are reduced to a single representative spectrum (the median across positions when there are three or more). If the axis is in nm, it is converted to Raman shift when the excitation wavelength is known from the filename; otherwise the spectrum is stored on its original axis.
>
> #### Stage 2: Metadata Extraction
>
> The pipeline reads laser power, exposure time, accumulation count, and excitation wavelength from the filename, along with descriptive details such as sample identity and measurement location.
>
> #### Stage 3: Spectrum Processing
>
> * **Despiking**: cosmic-ray spikes are removed from the spectrum.
> * **Power and exposure normalization**: when both laser power and exposure time are found in the filename, intensity is divided by their product (and by the accumulation count, when present). If either is missing, intensity is not normalized.
> * **Shift calibration**: when the spectrum contains a clear silicon peak within 15 cm⁻¹ of 520.7 cm⁻¹, the axis is shifted so that the peak lands at 520.7 cm⁻¹. Spectra without a credible silicon peak, or with an offset larger than 10 cm⁻¹, are left uncalibrated.
> * **Background subtraction**: a SNIP baseline is subtracted to remove fluorescence background.
> * **Peak detection**: peaks are detected and fitted. Features within 5 cm⁻¹ of zero shift (laser line leakage) are excluded.
>
> The corrections that were applied, including whether normalization ran and the calibration shift, are recorded with the results. API only


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.