create_plot¶
- tessilator.makeplots.create_plot(im_plot, clean, LS, scc, t_table, name_target, plot_dir, xy_ctr=(10, 10), xy_contam=None, p_min_thresh=0.1, p_max_thresh=50.0, ap_rad=1.0, sky_ann=(6.0, 8.0), nc='nc')[source]¶
Produce a plot of tessilator results.
This module produces a 4-panel plot displaying information from the tessilator analysis. These are:1) An TESS cut-out image of the target, with aperture and sky annulus.2) A power vs period plot from the Lomb-Scargle periodogram analysis.3) A lightcurve of the normalised flux.4) The phase-folded lightcurve.- Parameters:
- im_plot
astropy.nddata.Cutout2D The cut-out image of the target
- clean
dict The modified (cleaned) lightcurve after processing
- LS
dict The dictionary of parameters calculated by the Lomb-Scargle periodogram
- scc
list, size=3 List containing the sector number, camera and CCD
- t_table
astropy.table.Table Table containing the input data for the target
- name_target
str The name of the target
- plot_dir
str The directory to save the plots.
- XY_ctr
tuple, optional, default=(10,10) The centroid (in pixels) of the target in the TESS image.
- XY_contam
IterableorNone, optional, default =None The pixel positions of the strongest contaminants
- p_min_thresh
float, optional, default=0.1 The shortest period calculated in the Lomb-Scargle periodogram
- p_max_thresh
float, optional, default=50. The longest period calculated in the Lomb-Scargle periodogram
- ap_rad
float, optional, default=1.0 The aperture radius from the aperture photometry
- sky_ann
Iterable, size=2, optional, default=[6.,8.] The inner and outer background annuli from aperture photometry
- nc
str, optional, default=’nc’ Describes the type of noise correction applied to the lightcurve.
- im_plot
- Returns:
- Nothing returned. The resulting plot is saved to file.