HECATE.plots

Functions

plot_R2(phases, R2_array[, threshold, save])

Plot coefficient of determination R² of fit(s).

plot_air_snr(planet_params, stellar_params, ...)

Plot airmass and SNR at spectral order 111 (midpoint in the selected Fe I spectral lines) of spectra used.

plot_avg_out_of_transit_profile(...[, ...])

Plot average out-of-transit profile, either CCF or spectral line.

plot_local_profile(hecate, local_profiles, ...)

Plot local profiles for a given profile type (CCF or spectral line) and tomography in function of orbital phases.

plot_profile_fit(data, y_fit, phase, ...[, ...])

Plot fit of spectral line or CCF profile, and correspondent residuals.

plot_sysvel_corr_CCF(phases, tr_dur, ...[, save])

Plot stellar systemic velocity showing the R-M effect and it's correction.

plot_air_snr(planet_params: dict, stellar_params: dict, time: numpy.array, airmass: numpy.array, snr: numpy.array, save=None)[source]

Plot airmass and SNR at spectral order 111 (midpoint in the selected Fe I spectral lines) of spectra used.

Parameters:
  • 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.

  • stellar_params (dict) – dictionary containing the following stellar parameters: stellar radius, stellar mass, and effective temperature.

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

  • airmass (numpy array) – airmass at the time of observation.

  • snr (numpy array) – signal-to-noise ratio (SNR) at spectral order 111.

  • save – path to save plot.

plot_R2(phases: numpy.array, R2_array: numpy.array, threshold: float = 0.8, save: str = None)[source]

Plot coefficient of determination R² of fit(s).

Parameters:
  • phases (numpy array) – orbital phases.

  • R2_array (numpy array) – coefficient of determination scores.

  • threshold (float) – threshold to consider a fit good.

  • save – path to save plot.

plot_sysvel_corr_CCF(phases: numpy.array, tr_dur: float, tr_ingress_egress: float, in_indices: numpy.array, out_indices: numpy.array, x0: numpy.array, poly_coefs: numpy.array, x0_corr: numpy.array, save=None)[source]

Plot stellar systemic velocity showing the R-M effect and it’s correction.

Parameters:
  • phases (numpy array`) – orbital phases.

  • tr_dur (float) – transit duration.

  • tr_ingress_egress (float) – duration between ingress and egress of transit.

  • in_indices (numpy array) – array indices where planet is in transit.

  • out_indices (numpy array) – array indices where planet is not in transit.

  • x0 (numpy array) – non-corrected central RVs.

  • poly_coefs (numpy array) – linear polynomial fit coefficients.

  • x0_corr (numpy array) – corrected central RVs.

  • save – path to save plot.

plot_avg_out_of_transit_profile(avg_out_of_transit_prof: numpy.array, profile_type: str = 'CCF', save: str = None)[source]

Plot average out-of-transit profile, either CCF or spectral line.

Parameters:
  • avg_out_of_transit_prof (numpy array) – average out-of-transit profile (RV/wavelength, flux and flux error).

  • profile_type (str) – whether it’s a CCF or spectral line profile.

  • save (str) – path to save plot.

plot_profile_fit(data: numpy.ndarray, y_fit: numpy.ndarray, phase: float, profile_parameters: dict, data_type: str, observation_type: str, model: str, plot_prof_params: bool = False, save: str = None)[source]

Plot fit of spectral line or CCF profile, and correspondent residuals.

Parameters:
  • data (numpy array) – CCF profile (RV, flux and flux error) or spectral line profile (wavelength, flux and flux error).

  • y_fit (numpy array) – fitted profile flux.

  • phase (float) – orbital phase of observation.

  • profile_parameter (dict) – dictionary containing the profile parameters (central RV, width, intensity).

  • data_type (str) – whether it’s a CCF or spectral line.

  • observation_type (str) – whether it’s a local, average out-of-transit or raw CCF.

  • model (str) – type of profile model to fit.

  • plot_prof_params (bool) – whether to plot profile parameters.

  • save (str) – path to save plot.

plot_local_profile(hecate, local_profiles: numpy.array, profiles_sub_all: numpy.array, profile_type: str = 'CCF', wave_lims: list = None, ylim_plot: list = [-0.01, 0.04], line_name: str = None, photometrical_rescale: bool = False, save: str = None)[source]

Plot local profiles for a given profile type (CCF or spectral line) and tomography in function of orbital phases.

Parameters:
  • hecate – HECATE class object.

  • local_profiles (numpy array) – local profiles (RV/wavelength, flux and flux error), with shape (N_profiles, 3, N_points).

  • profiles_sub_all (numpy array) – all subtracted profiles (RV/wavelength, flux and flux error), with shape (N_profiles, 3, N_points).

  • profile_type (str) – whether it’s a CCF or spectral line profile.

  • wave_lims (list) – wavelength interval to plot (only for spectral line profiles).

  • ylim_plot (list) – y-axis limits for the plot (only for spectral line profiles).

  • line_name (str) – name of the spectral line (only for spectral line profiles).

  • photometrical_rescale (bool) – whether to rescale the local profiles by the photometric transit light curve.

  • save (str) – path to save the plot.