spec_time_series

spec_time_series

class spec_time_series[source]

Bases: object

Methods

import_dico_tree

rtype

None

import_material

rtype

None

import_rassine_output

rtype

Any

import_spectrum

rtype

Dict[str, Any]

import_star_info

rtype

None

import_table

rtype

None

supress_time_spectra

rtype

None

uncorrect_hole

rtype

ndarray

yarara_activity_index

rtype

None

yarara_analyse_summary

rtype

None

yarara_ccf

rtype

Dict[str, tableXY]

yarara_correct_activity

rtype

None

yarara_correct_borders_pxl

rtype

None

yarara_correct_brute

rtype

None

yarara_correct_cosmics

rtype

None

yarara_correct_frog

rtype

None

yarara_correct_mad

rtype

None

yarara_correct_oxygen

rtype

None

yarara_correct_pattern

rtype

None

yarara_correct_smooth

rtype

None

yarara_correct_telluric_gradient

rtype

None

yarara_correct_telluric_proxy

rtype

None

yarara_cut_spectrum

rtype

None

yarara_get_berv_value

rtype

float64

yarara_get_orders

rtype

ndarray

yarara_get_pixels

rtype

ndarray

yarara_map

rtype

Tuple[ndarray, ndarray, ndarray]

yarara_master_ccf

rtype

None

yarara_median_master

rtype

None

yarara_median_master_backup

rtype

None

yarara_non_zero_flux

rtype

ndarray

yarara_obs_info

rtype

None

yarara_poissonian_noise

rtype

Tuple[ndarray, ndarray]

yarara_produce_mask_contam

rtype

None

yarara_produce_mask_frog

rtype

None

yarara_retropropagation_correction

rtype

None

yarara_star_info

rtype

None

yarara_telluric

rtype

None

List of members of spec_time_series

__init__(directory)[source]
import_rassine_output(return_name=False, kw1=None, kw2=None)[source]
Return type

Any

import_star_info()[source]
Return type

None

import_table()[source]
Return type

None

import_material()[source]
Return type

None

import_dico_tree()[source]
Return type

None

import_spectrum(num=None)[source]
Return type

Dict[str, Any]

yarara_star_info(Rv_sys=None, simbad_name=None, magB=None, magV=None, magR=None, BV=None, VR=None, sp_type=None, Mstar=None, Rstar=None, Vsini=None, Vmicro=None, Teff=None, log_g=None, FeH=None, Prot=None, Fwhm=None, Contrast=None, CCF_delta=None, Pmag=None, stellar_template=None)[source]
Return type

None

yarara_master_ccf(sub_dico='matching_diff', name_ext='', rvs=None)[source]
Return type

None

yarara_poissonian_noise(noise_wanted=1 / 100, wave_ref=None, flat_snr=True, seed=9)[source]
Return type

Tuple[ndarray, ndarray]

yarara_obs_info(kw=[None, None], jdb=None, berv=None, rv=None, airmass=None, texp=None, seeing=None, humidity=None)[source]
Return type

None

yarara_get_orders()[source]
Return type

ndarray

yarara_get_pixels()[source]
Return type

ndarray

supress_time_spectra(liste=None, jdb_min=None, jdb_max=None, num_min=None, num_max=None, supress=False, name_ext='temp')[source]
Return type

None

yarara_analyse_summary(rm_old=False)[source]
Return type

None

yarara_get_berv_value(time_value, Draw=False, new=True, light_graphic=False, save_fig=True)[source]
Return type

float64

yarara_non_zero_flux(spectrum=None, min_value=None)[source]
Return type

ndarray

yarara_median_master_backup(sub_dico='matching_diff', method='mean', continuum='linear', supress_telluric=True, shift_spectrum=False, telluric_tresh=0.001, wave_min=5750, wave_max=5900, jdb_range=[- 100000, 100000, 1], mask_percentile=[None, 50], save=True)[source]
Return type

None

yarara_median_master(sub_dico='matching_diff', continuum='linear', method='max', smooth_box=7, supress_telluric=True, shift_spectrum=False, wave_min=5750, wave_max=5900, bin_berv=10, bin_snr=None, telluric_tresh=0.001, jdb_range=[- 100000, 100000, 1], mask_percentile=[None, 50], save=True)[source]
Return type

None

yarara_cut_spectrum(wave_min=None, wave_max=None)[source]
Return type

None

yarara_activity_index(sub_dico='matching_diff', continuum='linear', plot=True, debug=False, calib_std=0, optimize=False, substract_map=[], add_map=[], p_noise=1 / np.inf, save=True)[source]
Return type

None

yarara_telluric(sub_dico='matching_anchors', continuum='linear', suppress_broad=True, delta_window=5, mask=None, weighted=False, reference=True, display_ccf=False, ratio=False, normalisation='slope', ccf_oversampling=3, wave_max=None, wave_min=None)[source]
Return type

None

yarara_ccf(sub_dico='matching_diff', continuum='linear', mask=None, mask_name=None, ccf_name=None, mask_col='weight_rv', treshold_telluric=1, ratio=False, element=None, reference=True, weighted=True, plot=False, display_ccf=False, save=True, save_ccf_profile=False, normalisation='left', del_outside_max=False, bis_analysis=False, ccf_oversampling=1, rv_range=None, rv_borders=None, delta_window=5, debug=False, rv_sys=None, rv_shift=None, speed_up=True, force_brute=False, wave_min=None, wave_max=None, squared=True, p_noise=1 / np.inf, substract_map=[], add_map=[])[source]
Return type

Dict[str, tableXY]

yarara_map(sub_dico='matching_diff', continuum='linear', planet=False, modulo=None, unit=1.0, wave_min=4000, wave_max=4300, time_min=None, time_max=None, index='index', ratio=False, reference='median', berv_shift=False, rv_shift=False, new=True, Plot=True, substract_map=[], add_map=[], correction_factor=True, p_noise=1 / np.inf)[source]
Return type

Tuple[ndarray, ndarray, ndarray]

yarara_correct_pattern(sub_dico='matching_diff', continuum='linear', wave_min=6000, wave_max=6100, reference='median', width_range=[0.1, 20], correct_blue=True, correct_red=True, jdb_range=None)[source]
Return type

None

yarara_correct_smooth(sub_dico='matching_diff', continuum='linear', reference='median', wave_min=4200, wave_max=4300, window_ang=5)[source]
Return type

None

yarara_retropropagation_correction(correction_map='matching_smooth', sub_dico='matching_cosmics', continuum='linear')[source]
Return type

None

yarara_correct_telluric_proxy(sub_dico='matching_fourier', sub_dico_output='telluric', continuum='linear', wave_min=5700, wave_max=5900, reference='master', berv_shift='berv', smooth_corr=1, proxies_corr=['h2o_depth', 'h2o_fwhm'], proxies_detrending=None, wave_min_correction=4400, wave_max_correction=None, min_r_corr=0.40, sigma_ext=2)[source]
Return type

None

yarara_correct_oxygen(sub_dico='matching_telluric', continuum='linear', berv_shift='berv', reference='master', wave_min=5760, wave_max=5850, oxygene_bands=[[5787, 5835], [6275, 6340], [6800, 6950]])[source]
Return type

None

yarara_correct_telluric_gradient(sub_dico_detection='matching_fourier', sub_dico_correction='matching_oxygen', continuum='linear', wave_min_train=4200, wave_max_train=5000, wave_min_correction=4400, wave_max_correction=6600, smooth_map=1, berv_shift='berv', reference='master', inst_resolution=110000, debug=False, equal_weight=True, nb_pca_comp=20, nb_pca_comp_kept=None, nb_pca_max_kept=5, calib_std=1e-3)[source]
Return type

None

yarara_correct_activity(sub_dico='matching_telluric', continuum='linear', wave_min=3900, wave_max=4400, smooth_corr=5, reference='median', rv_shift='none', proxy_corr=['CaII'])[source]
Return type

None

yarara_correct_cosmics(sub_dico='matching_diff', continuum='linear', k_sigma=3, bypass_warning=True)[source]
Return type

None

yarara_correct_mad(sub_dico='matching_diff', continuum='linear', k_sigma=2, k_mad=2, n_iter=1, ext='0')[source]
Return type

None

yarara_produce_mask_contam(frog_file=root + '/Python/Material/Contam_HARPN.p')[source]
Return type

None

yarara_produce_mask_frog(frog_file=root + '/Python/Material/Ghost_HARPS03.p')[source]
Return type

None

yarara_correct_frog(sub_dico='matching_diff', continuum='linear', correction='stitching', berv_shift=False, wave_min=3800, wave_max=3975, wave_min_train=3700, wave_max_train=6000, complete_analysis=False, reference='median', equal_weight=True, nb_pca_comp=10, pca_comp_kept=None, rcorr_min=0, treshold_contam=0.5, algo_pca='empca')[source]
Return type

None

yarara_correct_borders_pxl(pixels_to_reject=[2, 4095], min_shift=- 30, max_shift=30)[source]
Return type

None

yarara_correct_brute(sub_dico='matching_mad', continuum='linear', reference='median', win_roll=1000, min_length=5, percent_removed=10, k_sigma=2, extended=10, ghost2='HARPS03', borders_pxl=False)[source]
Return type

None

uncorrect_hole(conti, conti_ref, values_forbidden=[0, np.inf])[source]
Return type

ndarray