Reading in Previously Corrected Light Curves#

In this tutorial we will be reading in a light curve that we have already downloaded and corrected. If you have not done this, please see the plotting tutorial.

[1]:
import elk
import numpy as np

%config InlineBackend.figure_format = "retina" # Not required, only applicable for Jupyter Notebooks

# We will also need the two classes imported
from elk.ensemble import EnsembleLC
from elk.lightcurve import BasicLightcurve
[2]:
# define the path to your lightcurves
path = 'Corrected_LCs/'

# which Cluster would we like to read in
Name = "NGC 419"
[3]:
c = elk.ensemble.from_fits(path + Name + "output_table.fits")

From here, we have all of the available functions of a BasicLightcurve in elk!

Let’s look at the summary table.

[4]:
c.summary_table()
[4]:
Table length=1
namelocationradiuslog_agehas_datan_obsn_good_obswhich_sectors_goodn_failed_downloadn_bad_qualityn_scatter_lightscattered_light_sectorslc_lens
str7str18float64float64boolint64int64str8int64int64int64str10str12
NGC 41923.58271, +61.12360.0467.75True42[18, 24]002[[25, 58]][1103, 1224]

Or we can plot one of the light curves

[5]:
c.lcs[0].plot()
../_images/tutorials_reading_in_7_0.png
[5]:
(<Figure size 640x480 with 1 Axes>,
 <Axes: title={'center': 'Lightcurve for Sector 18'}, xlabel='Time $\\rm [days]$', ylabel='Flux $[e / {\\rm s}]$'>)

Note

This tutorial was generated from a Jupyter notebook that can be found here.