HECATE.build_CCF

Classes

build_CCF

Class to build CCFs from spectra and a spectral line-list.

class build_CCF[source]

Bases: object

Class to build CCFs from spectra and a spectral line-list. Method adapted from iCCF.meta.espdr_compute_CCF_fast of iCCF package.

Parameters:
  • time (numpy array) – time of observations in BJD.

  • planet_params (dict) – dictionary containing the following planetary parameters: orbital period, system scale, planet-to-star radius ratio, mid-transit time, eccentricity, argument of periastron, planetary inclination and spin-orbit angle.

  • spectra (numpy array) – matrix with the spectra (wavelenth in air, flux, flux error and quality flag), with shape (N_spectra, 4, N_pixels).

  • RV_reference (numpy array) – RV grid for interpolation.

  • mask (numpy array) – spectral line-list to perform cross-correlation.

  • berv (numpy array) – BERV at time of observation.

  • bervmax (numpy array) – maximum BERV.

  • plot (bool) – whether to plot CCFs in function of

compute_CCF(ll, flux, error, quality, RV_reference, mask, berv, bervmax, mask_width=0.5, plot=True)[source]

performs cross-correlation between a given spectrum and the line-list following the procedure of iCCF.

__init__(time: numpy.array, planet_params: dict, spectra: numpy.array, RV_reference: numpy.array, mask: numpy.array, berv: numpy.array, bervmax: numpy.array, plot: bool = False)[source]
static compute_CCF(ll: numpy.array, flux: numpy.array, error: numpy.array, quality: numpy.array, RV_reference: numpy.array, mask: numpy.array, berv: float, bervmax: float, mask_width: float = 0.5, plot: bool = True)[source]

Performs cross-correlation between a given spectrum and the line-list following the procedure of meta.espdr_compute_CCF_fast of iCCF.

Parameters:
  • ll (numpy array) – wavelength array in air.

  • flux (numpy array) – flux array.

  • error (numpy array) – flux error array in air.

  • quality (numpy array) – quality flag array in air.

  • RV_reference (numpy array) – RV grid.

  • mask (numpy array) – spectral line-list.

  • berv (float) – BERV value.

  • bervmax (float) – maximum BERV value.

  • mask_width (float) – width of pixel, predefined to 0.5 km/s (ESPRESSO).

  • plot (bool) – wether to plot the computed CCF.

Returns:

  • ccf_flux (numpy array) – computed CCF flux.

  • ccf_error (numpy array) – computed CCF flux error.

  • ccf_quality (numpy array) – quality flags of used spectra.