Skip to content
Emrah DURSUN edited this page Jul 2, 2024 · 6 revisions

PyRamanGraphene

Table of Contents

Overview

PyRamanGraphene is a Python package designed for analyzing Raman spectra data, specifically tailored for graphene materials. This repository provides tools to read, normalize, fit peaks, and visualize Raman spectra, focusing on the D, G, and 2D peaks typical in graphene characterization.

Features

Installation

To install PyRamanGraphene, clone the repository from GitHub:

git clone https://github.com/EmrahDURSUN/PyRamanGraphene.git

Usage

1. Import Libraries

Ensure necessary libraries are imported:

import os
import pandas as pd
import numpy as np
import matplotlib.pyplot as plt
from lmfit.models import LorentzianModel, PseudoVoigtModel

2. Define Peak Ranges

Define peak ranges for D, G, and 2D peaks:

GRAPHENEPEAKS = [
    {"prefix": "D", "range": {"min": 1290.0, "max": 1420.0}},
    {"prefix": "G", "range": {"min": 1480.0, "max": 1700.0}},
    {"prefix": "twoD", "range": {"min": 2580.0, "max": 2790.0}},
]

3. Load and Parse Spectra Data

Load Raman spectra data from file and prepare it for analysis:

file_path = "./Data/RawData/SampleMapSpectrum.txt"

  • Read Raman shift values and spectra into a DataFrame
  • Correct the Baseline and Normalize the spectra based on G peak intensity
  • Fit the peaks using specified models

4. Fit and Plot Results

Fit the peaks using Pseudo-Voigt and Lorentzian models, then visualize results:

  • Fit each spectrum individually using defined models
  • Calculate average spectra (raw and fitted)
  • Plot average raw and fitted spectra for Pseudo-Voigt and Lorentzian fits

Contributing

Contributions to PyRamanGraphene are welcome! If you have suggestions, bug reports, or would like to add features, please fork the repository and submit a pull request.

License

GNU General Public License v3.0

References

  1. Data Science for Raman Spectroscopy - A Practical Example
  2. International interlaboratory comparison of Raman spectroscopic analysis of CVD-grown graphene