Skip to content

Instantly share code, notes, and snippets.

@nunorc
Created March 15, 2020 23:32
Show Gist options
  • Save nunorc/22dd45a2588e00185c6ac2f9f164d419 to your computer and use it in GitHub Desktop.
Save nunorc/22dd45a2588e00185c6ac2f9f164d419 to your computer and use it in GitHub Desktop.
get the light curve
import lightkurve as lk
# retrieve the light curve file
lcf = lk.search_lightcurvefile('kepler-427', quarter=6).download()
# retrive the PDFSAP light curve from the file
lc = lcf.PDCSAP_FLUX
# plot the light curve
lc.plot()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment