Note
Go to the end to download the full example code.
Light Curve Customisation#
When plotting light curves, plot() - and hence open() - accepts the following additional arguments.
Specifying Bands#
If only certain photometric bands are of interest, the bands parameter can be passed as a list of bands that should be included in plotting:
from ATK import query
asassn_query = query("lightcurve", targets=6050296829033196032, survey="asassn", path="example_lightcurve.fits.gz")
asassn_query.open(bands=["g"])
Note
ATK supports the following lightcurve surveys and bands:
ZTF -
ztf(g,r,i)Gaia -
gaia(g,bp,rp)ATLAS -
atlas(c,o)ASAS-SN -
asassn(g,v)TESS -
tess(Tmag)CRTS -
crts(v)
Setting Band Colours#
The colours of each band can also be chosen:
asassn_query.open(bands=["v","g"], colours=["orange","blue"])
Note
The following colours are supported: "green", "red", "blue", "orange", "purple", "black"
Choosing a Colour Map#
By default, the colour map scales relative to the mean brightness of the photometry in each band. This can be disabled by setting cmap = "flat" (default = "mean"):
asassn_query.open(cmap="flat")
Using Non-Reduced MJD#
By default, the x-axis is reduced to show the time since the earliest observation in each set of light curves (i.e. the minimum MJD across all bands is subtracted). To instead plot the unmodified MJD, pass time_format = "original":
asassn_query.open(time_format="original")
Download this Tutorial
Total running time of the script: (0 minutes 0.898 seconds)