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_lc
dict a dictionary containing the lightcurve data for a target star (see tessilator.make_lc for the required inputs).
- med_lc
dict the “median” lightcurve data from the neigbourhing sources.
- scc
list, size=3 List containing the sector number, camera and CCD.
- targ_name
str The name of the target
- ref_name
str The reference name for each subdirectory which will connect all output files.
- 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