phase_peel — DRIVE pxrd op

• Data kinds: signal × signal × table → table

• Call: import fullseye as fs; fs.ledger.phase_peel(two_theta, intensity, dictionary, max_phases=None, min_gain=0.05, min_fraction=0.005, background_order=4, sigma=None) (to call the implementation directly, import pxrd; pxrd.phase_peel(two_theta, intensity, dictionary, max_phases=None, min_gain=0.05, min_fraction=0.005, background_order=4, sigma=None); from the registry, opsdrive.get("phase_peel"))

Usage

Peels phases off a mixture 1 at a time (greedy forward selection).

> The detailed description below is the original text — the summary and the headings are translated.

段 0 は背景だけ。各段で、まだ選んでいない相を 1 つずつ足して phase_fractions を当て、rwp が最も下がる相を選ぶ。rwp の相対的な下がり幅が min_gain 未満、または選んだ相の重量分率が min_fraction 未満なら止める。

全部の相を一度に当てる phase_fractions と違い、「どの順で、どれだけ説明が進んだか」が残る(図の素材)。

返り値(dict): order(選んだ順の名前)・stages(各段の phases・weight_fraction・fit・residual・ rwp)・final(最後の段の phase_fractions の結果)。

Raises ValueError: phase_fractions と同じ。min_gain が [0, 1) の外。

References (sample data, literature)

• Sample-data catalog (download URLs / licences) — 2-D uses skimage.data (BSD/public domain) plus synthetic images; 3-D lists download URLs for real data sources (Stanford, PDS, …).

• Operator provenance and references — the sources of the research/methods this op family came from.

• The canonical algorithm (author, year) and its uses are named in the family usage guide above.

Runnable examples (verified samples that actually call this op)

• poc_pxrd_phase_peel — py -3.11 examples/poc_pxrd_phase_peel.py

Ops the type connects to (they accept table as input)

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

Same category (pxrd)

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


*Provenance: pxrd.py — DRIVE operator registry. This per-op note is generated by tools/opdocs.py md (do not hand-edit).*

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