raman-fitting

Fit Raman spectral peaks to extract positions, widths, and intensities.

127|27|Updated Mar 27, 2026
One-click install
npx skills add https://github.com/lazyFrogLOL/Harness_Engineering --skill raman-fitting-lazyfroglol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: raman-fitting
Source: https://github.com/lazyFrogLOL/Harness_Engineering/tree/main/skills/raman-fitting
Command: npx skills add https://github.com/lazyFrogLOL/Harness_Engineering --skill raman-fitting-lazyfroglol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill reduces manual and error-prone fitting of Raman spectra by guiding users through data exploration, baseline correction, selection of physical peak models, constrained numerical fitting, and robust validation against expected material signatures.

Core Features & Use Cases

  • Baseline subtraction and preprocessing: recommendations for linear, polynomial, and asymmetric least squares methods and guidance on when each is appropriate.
  • Peak model selection and fitting: support for Lorentzian, Gaussian, Voigt, and pseudo-Voigt shapes and procedures for multi-peak deconvolution.
  • Physical constraints and validation: recommended bounds for peak positions and FWHM, positivity constraints for intensities, residual analysis, R² reporting, and checks for parameters hitting bounds.
  • Code design guidance: modular fitting functions, reuse patterns, and sanity-check utilities to ensure reproducible analyses.
  • Use Case: extracting G, D, and 2D peak parameters from graphene Raman measurements with uncertainties and fit diagnostics for publication or QC.

Quick Start

Use the raman-fitting skill to fit the G and 2D peaks in my Raman spectrum, perform baseline correction, and return fitted parameters with uncertainties and an R² score.

Frequently Asked Questions about raman-fitting

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I fit Raman spectral peaks for graphene and extract G, D, and 2D peak parameters?

Raman peak fitting for graphene extracts G, D, and 2D peak positions, widths, and intensities using constrained numerical fitting. It supports Lorentzian, Gaussian, Voigt, and pseudo-Voigt models to resolve overlapping peaks and return parameters with uncertainties and goodness-of-fit metrics.

What is the best way to perform baseline correction on Raman spectroscopy data before peak deconvolution?

Baseline correction for Raman spectroscopy data uses linear, polynomial, and asymmetric least squares methods. Selecting the appropriate baseline subtraction approach ensures accurate multi-peak deconvolution by removing background interference before fitting spectral peaks.

Can I apply physical parameter bounds and positivity constraints when fitting overlapping Raman peaks?

Fitting overlapping Raman peaks enforces physical parameter bounds for peak positions and FWHM, alongside positivity constraints for intensities. This constrained fitting approach ensures physically valid results and includes residual analysis to check if parameters hit bounds.

How do I validate Raman peak fitting results and calculate goodness-of-fit metrics like R²?

Raman peak fitting validation calculates R² scores and performs residual analysis to verify fit quality. It checks fitted parameters against expected graphene material signatures and flags instances where physical bounds are hit, ensuring robust fit diagnostics.

Does this Raman peak fitting approach support both research publication and quality control scenarios?

Raman peak fitting supports both research publication and quality control scenarios for carbonaceous materials. It provides modular fitting functions and sanity-check utilities to ensure reproducible analyses, returning fitted parameters with uncertainties suitable for rigorous scientific validation.