ccf_fun#

ccf_fun(wave, spec1, spec2, extended=1500)[source]#

Compute the Cross Correlation Function for an equidistant grid in log wavelength.

Parameters:
  • wave (ndarray[Any, dtype[float64]]) – The wavelength vector of the spectrum.

  • spec1 (ndarray[Any, dtype[float64]]) – The flux vector of the spectrum.

  • spec2 (ndarray[Any, dtype[float64]]) – The binary mask used to cross-correlate.

  • extended (int) – The length of the extension of the vectors.

Return type:

Tuple[ndarray[Any, dtype[float64]], ndarray[Any, dtype[float64]]]

Returns:

  • vrad_grid (array_like) – The velocity values of the CCF elements.

  • ccf (array_like) – The values of the CCF.