LowRank.CoupledAdjuster#
LowRank.CoupledAdjuster.py
- make_component_curves(ssd, num_components, **kwargs)#
Make a LowRankInfo object. :param ssd: The SsData object containing XR and UV data. :type ssd: SsData :param num_components: The number of components to decompose into. If None, it will be determined automatically. :type num_components: int or None :param kwargs: Additional keyword arguments for decomposition and adjustment.
- Possible keys include:
- xr_peakpositions: list of float or None
Initial peak positions for XR decomposition.
- smooth_uv: bool
If True, smooth the UV i-curve before decomposition.
- consistent_uv: bool
If True, adjust UV components to be consistent with XR components.
- ip_effect_info: IpEffectInfo or None
Information about the instrumental polarization effect.
- debug: bool
If True, enable debug mode.
- Returns:
xr_icurve (Curve) – The extracted XR i-curve.
xr_ccurves (list of ComponentCurve) – The list of XR component curves.
uv_icurve (Curve) – The extracted UV i-curve.
uv_ccurves (list of ComponentCurve) – The list of UV component curves.
- select_components(ssd, xr_ccurves, uv_ccurves)#
Select the relevant components from the decomposed curves.
- Parameters:
ssd (SsData) – The SsData object containing XR and UV data.
xr_ccurves (list of ComponentCurve) – The list of XR component curves.
uv_ccurves (list of ComponentCurve) – The list of UV component curves.
- Returns:
xr_ccurves (list of ComponentCurve) – The selected list of XR component curves.
uv_ccurves (list of ComponentCurve) – The selected list of UV component curves.