科研 Skill
电子探针显微表征分析
microscopy
Covers electron and probe microscopy for materials characterization: SEM, TEM/STEM/EELS/EDS, and AFM, including drift correction, segmentation. Use for microscopy image analysis workflows.
SKILL.md
Microscopy
Overview
SEM, TEM, and AFM all produce spatially resolved images of a material's surface or internal structure, at scales from microns down to atomic resolution. They share a substantial image-analysis workflow — drift/distortion correction, segmentation, feature/particle sizing — even though the physical contrast mechanisms (secondary/backscattered electrons for SEM, transmitted/diffracted electrons for TEM, tip-sample force for AFM) are entirely different.
When to use this skill
Activate when the request involves:
- SEM, scanning electron microscopy, TEM, transmission electron microscopy, STEM, EELS, EDS/EDX, AFM, atomic force microscopy
- Terms: secondary electron, backscattered electron, bright-field/dark-field, particle sizing, segmentation, tip artifact
- File formats:
.dm3/.dm4(Gatan),.emd,.tif(common microscope export),.ibw/.spm(AFM) - "Segment particles in this SEM image," "analyze this EELS spectrum image," "measure roughness from AFM"
Which reference to read
| You have... | Read |
|---|---|
| SEM images (secondary/backscattered electron, EDS elemental maps) | references/sem.md |
| TEM images, diffraction, or STEM/EELS/EDS spectrum imaging | references/tem.md |
| AFM topography, phase, or force data | references/afm.md |
For electron diffraction specifically (SAED, acquired in a TEM), see diffraction/references/electron-diffraction.md.
Core usage — shared image processing
Drift correction (cross-correlation registration across a stack)
import numpy as np
from skimage.registration import phase_cross_correlation
from scipy.ndimage import shift as ndi_shift
def correct_drift(image_stack):
"""image_stack: (n_frames, height, width). Registers each frame to the first."""
reference = image_stack[0]
corrected = [reference]
for frame in image_stack[1:]:
shift_estimate, _, _ = phase_cross_correlation(reference, frame, upsample_factor=10)
corrected.append(ndi_shift(frame, shift_estimate))
return np.array(corrected)
Particle/feature segmentation and sizing
from skimage.filters import threshold_otsu
from skimage.measure import label, regionprops
from skimage.morphology import remove_small_objects
def segment_and_measure(image, min_size_px=20):
binary = image > threshold_otsu(image)
binary = remove_small_objects(binary, min_size=min_size_px)
labeled = label(binary)
return [
{"area_px": r.area, "equivalent_diameter_px": r.equivalent_diameter, "eccentricity": r.eccentricity}
for r in regionprops(labeled)
]
Convert pixel measurements to physical units using the image's calibrated pixel size (from instrument metadata) before reporting — see Validation & Pitfalls.
Validation & Pitfalls
Canonical reference: Williams & Carter, Transmission Electron Microscopy (2nd ed., 2009), and Goldstein et al., Scanning Electron Microscopy and X-Ray Microanalysis (4th ed., 2017), for instrument-level physics across both techniques.
- Pixel-to-physical-unit calibration is instrument- and magnification-setting-specific and must be read from image metadata, not assumed constant. Reporting particle sizes without confirming the actual calibration for that specific image (not a remembered "typical" value) is a common source of systematically wrong measurements.
- Segmentation threshold choice (Otsu or any automatic method) can fail on images with uneven illumination, charging artifacts (SEM), or low contrast — visually verify segmentation results against the raw image on a representative sample before trusting automated measurements at scale.
- "The image looks clear" is not the same as "the sample is representative" — imaging a small field of view at high magnification risks sampling bias; report how many fields/particles were measured and whether they were selected systematically (e.g. a grid pattern) rather than by eye, which biases toward visually striking (often larger, more distinct) features.
示例提示词
我有一批TEM图像需要做漂移校正和颗粒尺寸分布统计。
所属插件
安装该插件会一并获得同领域的 42 个 Skill / MCP。
同插件的其他科研 Skill
- 贝叶斯优化材料发现Covers Bayesian optimization for materials and chemistry design: surrogate models, acquisition functions, batch/constrained BO. Use when planning sample-efficient experiments or simulations.
- CALPHAD热力学计算工作流Covers CALPHAD computational thermodynamics: database selection, equilibrium/metastable calculations, binary/ternary phase diagrams. Use when predicting phase stability or solidification paths.
- 材料第一性原理与分子动力学模拟Routes first-principles and classical materials simulation (DFT, MD, ML potentials) to the right specialized workflow. Use as an entry point for any simulation-based materials task.
- 蠕变力学建模与验证Selects, calibrates, and validates creep deformation and rupture models under sustained thermomechanical load, covering rate prediction. Use when assessing long-term high-temperature components.
- 晶体塑性有限元建模Covers crystal plasticity and CPFE modeling of metals: slip systems for FCC/BCC/HCP, Schmid factors. Use when simulating texture- and orientation-dependent plastic deformation.
- 衍射结构表征Covers diffraction-based structure characterization (XRD, neutron, SAED): space group determination, Rietveld refinement, phase identification. Use for any diffraction-pattern analysis technique.
- EBSD织构分析Analyzes EBSD orientation maps for grain size, misorientation, phase, and texture, with pole figures and twin-boundary identification. Use for electron backscatter diffraction workflows.
- 电化学性能测试分析Covers electrochemical characterization: cyclic voltammetry, battery cycling analysis, EIS. Use for electrochemistry-specific data analysis distinct from general materials characterization.
- 金属疲劳寿命评估Builds, calibrates, and validates fatigue assessments for metals and components: stress-life, strain-life, multiaxial critical-plane. Use when predicting fatigue life or crack growth.
- 多物理场有限元建模Covers finite element modeling for coupled materials, mechanics, and transport problems: weak-form construction, boundary conditions, mesh choice. Use for multiphysics FEM simulations.
- 连续尺度有限元力学建模Covers continuum-scale mechanical, thermal, and multiphysics simulation with Abaqus/COMSOL conventions, mesh generation. Use for macroscale FEM consuming measured or computed material properties.
- 断裂力学评估与建模Selects, constructs, and validates fracture-mechanics assessments: LEFM checks, elastic-plastic fracture mechanics. Use when assessing cracked materials or components.
- 高斯过程材料回归建模Covers Gaussian process regression for materials and chemistry datasets: descriptor selection, kernel design. Use when a probabilistic surrogate model with uncertainty is needed.
- 自驱动实验室闭环材料发现Covers combinatorial synthesis, robotic experimentation. Use for autonomous or robotics-driven experimental campaigns, a less standardized domain.
- 材料数据库可复现访问Covers reproducible API access to materials databases (Materials Project, AFLOW, OQMD, NOMAD, COD, ICSD-style sources): authentication. Use when programmatically querying these databases.
- 材料数据库跨库查询Covers querying public materials databases beyond Materials Project: AFLOW, OQMD, NOMAD, JARVIS. Use when pulling or comparing data from these live, API-integrated resources.
- 材料数据标准与互操作Covers data interoperability standards for materials science: CIF crystal files, the OPTIMADE query API. Use when structuring or exchanging materials data between tools.
- 材料结构特征化Covers converting structures, compositions, and trajectories into ML feature vectors: Magpie-style elemental statistics. Use when building inputs for materials ML models.
- 材料科学图表绘制规范Covers publication-quality figure conventions for materials science plots: phase diagrams, pole figures, stress-strain curves. Use when the deliverable is a figure, not just an analysis result.
- 材料信息学性质预测Covers ML for materials property prediction and generative design: descriptor-based models, crystal GNNs (CGCNN/MEGNet-class). Use for materials informatics distinct from interatomic potentials.
- 材料生命周期评估Covers life-cycle assessment for materials and manufacturing routes: goal/scope definition, functional units, inventory construction. Use for environmental-impact studies of materials.
- 材料科学文献检索Covers formulating literature search queries for materials science questions and synthesizing/citing results responsibly. Requires a web search tool; it cannot substitute for one.
- 工程材料选型设计Selects engineering materials via material indices and Ashby charts, ranking candidates by performance per cost or mass. Use when picking a material class for a design constraint.
- 材料统计方法与实验设计Covers statistics shared across materials characterization and simulation: design of experiments. Use for cross-cutting statistical treatment of materials data.
常见问题
电子探针显微表征分析能做什么?
Covers electron and probe microscopy for materials characterization: SEM, TEM/STEM/EELS/EDS, and AFM, including drift correction, segmentation. Use for microscopy image analysis workflows。
如何安装电子探针显微表征分析?
在科搭 Codar 左侧点击「插件」,在「组件」页签搜索「电子探针显微表征分析」并安装;在 Claude Code 或 Codex 中可以发送本页的安装提示词,或下载 Skill 包后解压到 ~/.claude/skills 或 ~/.codex/skills。
电子探针显微表征分析需要哪些权限?
该科研 Skill没有声明额外权限;执行具体操作时仍由 Agent 按自身规则请求确认。
电子探针显微表征分析经过官方审核吗?
是。SpeedSkills 收录的每个版本都会记录内容摘要与权限声明,当前版本已通过安全审核。