hispecdrp.primitives.utils.ccf.ccf_peak

Sub-pixel CCF peak location on a coarse velocity grid (seeding / scout only).

These helpers locate a raw CCF extremum for Gaussian-fit seeds and auto-center scouts. They are not used as the pipeline final RV estimator (that is the Gaussian centroid from calc_ccf_metrics() / fit_ccf_rv()).

Functions

_ccf_raw_grid_subpixel_peak_m_s(vm, y, *[, ...])

Sub-pixel location of a raw CCF extremum on the velocity grid.

_ccf_raw_grid_subpixel_peak_nearest_disc_max_m_s(vm, y)

Sub-pixel raw CCF location using the better of the global-maximum and minimum branches, chosen by proximity to the discrete velocity at argmax(y).

_collapse_duplicate_velocity_samples_m_s(vm, y)

Sort by velocity and average CCF values at duplicate vm knots.

_subpixel_peak_cubic_spline_m_s(vm_w, z_w)

Location of the maximum via cubic spline + bounded optimization on velocity.

_ccf_raw_grid_subpixel_peak_nearest_disc_max_m_s(vm, y)[source]

Sub-pixel raw CCF location using the better of the global-maximum and minimum branches, chosen by proximity to the discrete velocity at argmax(y).