科研 Skill

振动电子核磁谱学表征

spectroscopy

Covers vibrational, electronic, and nuclear spectroscopy for materials characterization: XPS, Raman, FTIR, and solid-state NMR. Use for spectroscopic data analysis.

发布者 Codar安全审核通过v0.1.0更新于 2026-11-18

SKILL.md

Spectroscopy

Overview

XPS, Raman, FTIR, and solid-state NMR all identify chemical/structural information from a spectrum (binding energy, Raman shift, wavenumber, or chemical shift respectively) — different physics, but a shared analysis workflow: baseline correction, peak fitting, and peak assignment against reference data. This skill covers what's shared and routes to technique-specific references.

When to use this skill

Activate when the request involves:

  • XPS, X-ray photoelectron spectroscopy, Raman spectroscopy, FTIR, infrared spectroscopy, solid-state NMR
  • Terms: binding energy, oxidation state, peak fitting, baseline correction, chemical shift, wavenumber
  • File formats: .vms/.xy (XPS), .spc/.txt (Raman/FTIR common exports)
  • "Fit peaks in this XPS/Raman/FTIR spectrum," "identify oxidation state," "assign these NMR peaks"

Which reference to read

You have...Read
XPS (oxidation state, surface composition)references/xps.md
Raman spectroscopyreferences/raman.md
FTIR / infrared spectroscopyreferences/ftir.md
Solid-state NMRreferences/nmr.md

Core usage — shared peak fitting

Baseline correction (asymmetric least squares — works across all four techniques)

import numpy as np
from scipy import sparse
from scipy.sparse.linalg import spsolve

def als_baseline(intensity, lam=1e5, p=0.01, n_iter=10):
    """Asymmetric least squares baseline (Eilers & Boelens, 2005) — standard,
    technique-agnostic baseline correction for peaked spectra."""
    L = len(intensity)
    D = sparse.diags([1, -2, 1], [0, -1, -2], shape=(L, L - 2))
    D = lam * D.dot(D.transpose())
    w = np.ones(L)
    W = sparse.spdiags(w, 0, L, L)
    for _ in range(n_iter):
        W.setdiag(w)
        baseline = spsolve(W + D, w * intensity)
        w = p * (intensity > baseline) + (1 - p) * (intensity < baseline)
    return baseline

Peak fitting (Voigt profile — appropriate for most XPS/Raman/FTIR peaks)

from lmfit.models import VoigtModel

def fit_peak(x, y, center_guess):
    model = VoigtModel()
    params = model.guess(y, x=x)
    params["center"].set(value=center_guess)
    result = model.fit(y, params, x=x)
    return result   # result.params gives fitted center, amplitude, sigma, gamma

Everything technique-specific — peak assignment tables, reference databases, artifact profiles — is in the references above.

Validation & Pitfalls

  • Peak shape (Gaussian, Lorentzian, or Voigt) should be chosen based on the physical broadening mechanism, not fit convenience — instrumental broadening tends toward Gaussian, natural/lifetime broadening toward Lorentzian; a Voigt profile (convolution of both) is a reasonable general default, but forcing a pure Gaussian or Lorentzian fit on data that doesn't match can bias fitted peak positions and areas.
  • Baseline correction parameters (like lam/p above) change fitted peak areas, sometimes substantially, and are not neutral defaults — report the method and parameters used, and check sensitivity when a quantitative (not just qualitative) claim depends on peak area.

示例提示词

我有一批XPS谱图需要做基线校正和分峰拟合确定氧化态。

所属插件

材料表征、性能与材料信息学面向实验与数据驱动的材料研究:XRD/电镜/谱学/热分析/力学测试等表征,合成与加工,电化学与半导体表征,相场、CALPHAD 与连续介质力学,材料数据库、特征工程、贝叶斯优化与主动学习,选材与生命周期评价。

安装该插件会一并获得同领域的 42 个 Skill / MCP。

同插件的其他科研 Skill

常见问题

振动电子核磁谱学表征能做什么?

Covers vibrational, electronic, and nuclear spectroscopy for materials characterization: XPS, Raman, FTIR, and solid-state NMR. Use for spectroscopic data analysis。

如何安装振动电子核磁谱学表征?

在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「振动电子核磁谱学表征」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。

振动电子核磁谱学表征需要哪些权限?

该科研 Skill没有声明额外权限;执行具体操作时仍由 Agent 按自身规则请求确认。

振动电子核磁谱学表征经过官方审核吗?

是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。