computeccf
- raccoon.ccf.computeccf(w, f, c, wm, fm, rv, ron=None, forig=None)
Wrapper for the fortran functions ccflibfort.computeccf, ccflibfort.computeccferr, computeccferrfluxorig.
Compute the CCF error only if ron is not None (default). Not computing the error makes the execution slightly faster.
- Parameters:
- w, f1d array like, same shape
Spectrum (1d, i.e. for 1 order). Wavelength units must be consistent with mask wavelength wm.
- c1d array like, same shape as w and f
Blaze function, to take into account the observed flux. If no blaze, input an array with ones, e.g. c = np.ones_like(w).
- wm, fm1d array like, same shape
Mask position (wm) and weight (fm).
- rv1d array-like
RV array for which the mask is Doppler-shifted.
- ronfloat
Read out noise. If None (default), no CCF error is computed.
- forig1d array
Original spectrum flux (before correcting for order ratios).
- Returns:
- ccf, ccferr1d array