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_lcdict

A dictionary containing the lightcurve data for a target star (see tessilator.make_lc for the required inputs).

targ_namestr

The name of the target

t_targetsastropy.table.row.Row

Details of the target star.

scclist, size=3

A list containing the sector number, camera and CCD.

ref_namestr

The reference name for each subdirectory which will connect all output files.

mag_extr_limfloat, 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_plotbool, optional, default=False

Choose to make plots of the noise corrections.

Returns:
targ_lcdict

The updated target lightcurve dictionary, with an extra key containing the noise-corrected flux.