fix_noise_lc_local

tessilator.tessilator.fix_noise_lc_local(targ_lc, med_lc, scc, targ_name, ref_name, make_plot=False)[source]

Apply a flux-corrected key to the target lightcurve dictionary, and make a plot of the corrections if required.

This function uses the lightcurve data from neighbouring sources.

Parameters:
targ_lcdict

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

med_lcdict

the “median” lightcurve data from the neigbourhing sources.

scclist, size=3

List containing the sector number, camera and CCD.

targ_namestr

The name of the target

ref_namestr

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

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.