Skip to content

Instantly share code, notes, and snippets.

@dfm
Created September 11, 2014 17:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save dfm/d64db8c419c0ce0fd2c5 to your computer and use it in GitHub Desktop.
Save dfm/d64db8c419c0ce0fd2c5 to your computer and use it in GitHub Desktop.
K2 support in kplr
import kplr
client = kplr.API()
star = client.k2_star(202065500)
tpf = star.get_target_pixel_files()[0]
fig = tpf.plot()
fig.savefig("tpf-plot-k2-202065500.png")
with tpf.open() as f:
...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment