Folded Light Curve Customisation#

When plotting folded light curves, some additional arguments are available.


from ATK import query

asassn_query = query("lightcurve", targets=5346631922949364864, survey="asassn", path="example_lightcurve_5.fits.gz")
folded_data = asassn_query.apply("fold", freq=2.773227732277323, inplace=False)

Relative Magnitudes#

Each photometric band can be magnitude-subtracted (and therefore aligned with each other) by passing subtract = 'median' (default) or subtract = 'mean'.

folded_data.open(subtract="mean")
Bokeh Figure



To disable this behaviour, pass subtract = None.

folded_data.open(subtract=None)
Bokeh Figure



Aligning in Phase#

Photometry can be shifted in phase to align with a chosen feature. By default, folded light curves are aligned to a local maximum (i.e. align = 'max'). To instead align with a local minimum, pass align = 'min':

folded_data.open(align="min")
Bokeh Figure



Alternatively, pass align = 'median' or align = 'mean' to align to the median or mean magnitude, respectively:

folded_data.open(align="median")
Bokeh Figure



Setting Repetitions#

By default, photometry is repeated to show two complete modulations in brightness. The number of repetitions can be set with repeat:

folded_data.open(repeat=1)
Bokeh Figure





Download this Tutorial

Total running time of the script: (0 minutes 2.176 seconds)

Gallery generated by Sphinx-Gallery