slice_pha#
- jinwu.core.slice_pha(pha: PhaData, *, emin: float | None = None, emax: float | None = None, ch_lo: int | None = None, ch_hi: int | None = None) PhaData[source]#
按能量或道范围筛选 PHA,返回新实例。
参数 - pha: 输入 PHA 数据 - emin/emax: 能量范围(keV); 需 ebounds 存在 - ch_lo/ch_hi: 道范围(优先级低于能量)
返回 - 新的 PhaData 实例
English Filter PHA by energy (needs ebounds) or channel range; returns new instance.