pqc.features.feature_extraction

Add feature columns for PTA QC diagnostics.

This module provides helpers that compute per-TOA covariates such as orbital phase, solar elongation, and observatory geometry. These features can be used for feature-domain structure tests or detrending before detection.

See also

pqc.features.backend_keys.ensure_sys_group: Backend grouping helpers. pqc.detect.feature_structure: Feature-domain structure diagnostics.

Functions

add_altaz_features(df, parfile, *[, ...])

Add elevation, airmass, and parallactic angle using telescope locations.

add_feature_columns(df, parfile, *[, ...])

Add configured feature columns for QC.

add_freq_bin(df, *[, freq_col, nbins, out_col])

Add a linear frequency-bin index column.

add_orbital_phase(df, parfile, *[, mjd_col])

Add orbital phase in [0, 1) using PB and T0 from the parfile.

add_solar_elongation(df, parfile, *[, mjd_col])

Add solar elongation (deg) between pulsar and Sun at each MJD.