cross_corr

hipparchus.cross_corr(spectrum, template, start_lam=-2, end_lam=2, n_steps=1000, sigma=None, spread_factor=10)[source]

Cross-correlation of the spectrum and template.

Parameters
spectrumSpectrum

Spectrum object (may be an order of an echelle spectrum).

templateTemplate

Template object to correlate against the spectrum.

start_lamfloat

Start wavelength relative to mean wavelength

end_lamfloat

End wavelength relative to mean wavelength

n_stepsint

Number of steps to compute the CCF over between start_lam and end_lam

sigmafloat

Gaussian smoothing filter width (standard deviation)

spread_factorfloat

Gaussian smoothing filter width spread scaling factor

Returns
ccfCCF

Cross-correlation object.