cubic_index — DRIVE pxrd op

• 数据种类:signal × scalar → table

• 调用: import fullseye as fs; fs.ledger.cubic_index(two_theta, wavelength, lattices=('P', 'I', 'F', 'diamond'), tolerance=0.05, n_first=6, max_unindexed=0)(要直接调用实现,import pxrd; pxrd.cubic_index(two_theta, wavelength, lattices=('P', 'I', 'F', 'diamond'), tolerance=0.05, n_first=6, max_unindexed=0);从台账取用则 opsdrive.get("cubic_index"))

用法

按立方晶系为峰标定指数,确定晶格(P / I / F / diamond)与晶格常数 a [Å]。

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

1/d² = N / a² なので、1 本目の山に許される N の小さい方から n_first 個を当てて a を仮に決め、全部の山を最も近い許される N に割り当て、a を最小二乗で追い込み(割り当て → 追い込みを 2 回)、計算と観測の 2θ の差が tolerance [deg] 以内の候補だけを残す(外れる山が max_unindexed 本までなら、それを除いて残す —— 不純物や偽の山が 1 本混じっただけで全部を捨てないため。除いた山は unindexed に返す)。候補どうしは de Wolff の M 型の性能指数 M = Q_last / (2 ε̄ N_calc)(Q = 1/d²、ε̄ = |ΔQ| の平均、N_calc = 最後の観測線までに許される計算線の数) で比べる —— P は何にでも合うが計算線が多いぶん M が下がる。外した山がある候補は (指数の付いた割合)⁴ で割り引く(経験的な重み。強い山を捨てて計算線の少ない格子に逃げるのを防ぐ)。

返り値(dict): lattice・a・a_sigma(残差からの標準誤差)・two_theta(指数の付いた山)・hkl((n, 3))・ N・residual_deg(観測 − 計算)・fom・missing(範囲内で許されるのに観測に無い N の list)・unindexed (外した山)・candidates(全候補の要約)。当てはまる候補が無ければ lattice = None(立方晶でない・山の取り違え)。

Raises ValueError: 山が 2 本未満・非有限・(0, 180) の外、波長が非正、格子の綴り違い。

参考(示例数据、文献)

• 示例数据目录(下载 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.