unexplained_peaks — DRIVE pxrd op

• 数据种类:table → table

• 调用: import fullseye as fs; fs.ledger.unexplained_peaks(fit_result, intensity=None, min_snr=6.0, index=True, noise=None, known_ratio=0.25, model_error=0.1)(要直接调用实现,import pxrd; pxrd.unexplained_peaks(fit_result, intensity=None, min_snr=6.0, index=True, noise=None, known_ratio=0.25, model_error=0.1);从台账取用则 opsdrive.get("unexplained_peaks"))

用法

从物相分数拟合的残差中提取字典中任何物相都无法解释的峰(未知物相的线索)。

> 以下的详细说明为原文 —— 摘要与标题已翻译。

残差(fit_result の residual、または intensity − fit)に diffraction_peaks をかけ、正の山だけを残す。既知相の強い線の上に乗った残差の山(高さが、その位置の既知相の模型の known_ratio 倍未満)は幅や形の合わなさの名残りである見込みが高いので near_known=True の印を付け、指数付けからは外す(消さずに返す)。残りが 3 本以上あれば cubic_index で立方晶として指数付けを試みる(index=True、外れ 1/3 まで許す)。既知相の格子がずれていると残差に「正と負の対」が出て偽の山になる —— その場合は phase_fractions の lattice_tolerance を先に使う。noise には azimuthal_integrate の sigma を渡すのが筋(無ければ残差の MAD から見積もる)。山の判定に使う雑音は sqrt(noise² + (model_error × 既知相の模型)²) —— 計数が多いと Poisson の σ は小さく、強い既知線の形のわずかな合わなさ(画素の箱形の広がりをガウスで近似した名残り。合成像で rwp 2〜4 %)が何千 σ の「山」に見えるので、模型そのものの相対誤差を雑音の床に入れる。

返り値(dict): two_theta・d [Å]・height・fwhm・snr・near_known(bool)・index (cubic_index の結果か None)。

Raises ValueError: fit_result が phase_fractions の形でない、長さの不一致。

参考(示例数据、文献)

• 示例数据目录(下载 URL / 许可证) —— 2-D 用 skimage.data(BSD/公有领域)加合成图,3-D 给出真实数据源(Stanford/PDS 等)的下载 URL。

• 算子来历与参考文献 —— 该算子族所依据的研究/方法出处。

• 算法的正典(作者、年份)与用途见上面的族使用指南。

可运行的示例(实际调用该算子并已验证的样例)

• poc_pxrd_phase_peel — py -3.11 examples/poc_pxrd_phase_peel.py

类型可衔接的下一个算子(可接受 table 作为输入)

course_layout · course_occupancy · course_contains · world_build · world_camera · world_move · lidar_scan · rss_longitudinal_same

同类别(pxrd)

cif_read · cubic_prototype · powder_reflections · scherrer_size · debye_ring_image · detector_two_theta · detector_calibrate · azimuthal_integrate


*Provenance: pxrd.py — DRIVE 算子登记表。本条目由 tools/opdocs.py md 自动生成(请勿手工编辑)。*

© 2026 Kazufumi Furuse — Fullseye operator documentation. Licensed under Apache-2.0.