determine_fitrng

raccoon.ccf.determine_fitrng(fitrng, rv, ccf, imin=None, verb=True)

Determine which points of the CCF use for the fit.

Parameters:
fitrngstr or float
rv, ccf1d array

CCF datapoints. rv only needed if fitrng is float. ccf only needed for fitrng equal to maxabs, maxcl, float or all (actually for all only need the array size).

iminint or None (default None)

Position (array index) of the minimum. If None (default) look for the absolute minimum in ccf.

Returns:
ifit1, ifit2int

Indices of the start and end datapoints of the RV and CCF arrays to use to fit. Select data using array slicing. No need to add + 1 to ifit2 when doing array slicing.