fix_noise_lc_sim¶
- tessilator.tessilator.fix_noise_lc_sim(targ_lc, targ_name, t_targets, scc, ref_name, mag_extr_lim=3.0, make_plot=False)[source]¶
Divide the target lightcurve by the noise lightcurve
For a given sector, camera and CCD configuration, this function will search for the simulated noisy lightcurve and divide the target lightcurve by the noise lightcurve, which should mitigate some of the systematic features.
The noisy lightcurves are described in the tessimulation.py module.
- Parameters:
- targ_lc
dict A dictionary containing the lightcurve data for a target star (see tessilator.make_lc for the required inputs).
- targ_name
str The name of the target
- t_targets
astropy.table.row.Row Details of the target star.
- scc
list, size=3 A list containing the sector number, camera and CCD.
- ref_name
str The reference name for each subdirectory which will connect all output files.
- mag_extr_lim
float, optional, default=3. The tolerated difference in magnitude between the target and the range of calculated simulated lightcurves if the magnitude is out of range.
- make_plot
bool, optional, default=False Choose to make plots of the noise corrections.
- targ_lc
- Returns:
- targ_lc
dict The updated target lightcurve dictionary, with an extra key containing the noise-corrected flux.
- targ_lc