HECATE.get_data
Functions
|
Fetch ESPRESSO white-light CCFs data. |
|
Fetch ESPRESSO spectra. |
- get_CCFs(planet_params: dict, stellar_params: dict, directory_path: str = '/home/telmo/phd_seminar/Eduardos_code/white_light_ccfs/', day: str = '2021-08-11', index_to_remove: str = 'last', plot: bool = True)[source]
Fetch ESPRESSO white-light CCFs data.
- 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: effective temperature and error, superficial gravity and error, metallicity and error.
directory_path (str) – path where the white light CCFs are stored.
day (str) – in case where the target was observed in more than one night, choose the one to use.
index_to_remove (str) – in case the user wants to remove a given CCF a priori.
plot (bool) – whether to plot the CCF profiles colored by orbital phase.
- Returns:
CCFs (numpy array) – matrix with the CCF profiles (RV, flux and flux error), with shape (N_CCFs, 3, N_points).
time (numpy array) – time of observations in BJD.
airmass (numpy array) – airmass at the time of observation.
berv (numpy array) – BERV at time of observation.
bervmax (numpy array) – maximum BERV.
snr (numpy array) – signal-to-noise ratio of observation.
list_ccfs (str) – list of CCFs file path and names.
- get_spectra(directory_path: str = '/home/telmo/phd_seminar/Eduardos_code/telluric_corrected_spectra/', day: str = '2021-08-11', type_spec: str = 'SKY', index_to_remove: str = 'last')[source]
Fetch ESPRESSO spectra.
- Parameters:
directory_path (str) – path where the spectra are stored.
day (str) – in case where the target was observed in more than one night, choose the one to use.
type_spec (str) – type of spectra to be retrieved (e.g., S1D_TELL_CORR_A).
index_to_remove (str) – in case the user wants to remove a given spectra a priori.
- Returns:
spectra (numpy array) – matrix with the spectra (wavelenth in air, flux, flux error and quality flag), with shape (N_spectra, 4, N_pixels).
time (numpy array) – time of observations in BJD.
airmass (numpy array) – airmass at the time of observation.
berv (numpy array) – BERV at time of observation.
bervmax (numpy array) – maximum BERV.
snr (numpy array) – signal-to-noise ratio of observation.
rv (numpy array) – radial velocity of observation.
list_spectra (str) – list of spectra file path and names.