question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Downloading target from archive returns data for a different, nearby star

See original GitHub issue

It’s trying so hard to do a good job, but accidentally grabs a star 4 arcsec away (both have defined and downlinked apertures, which happen to touch each other)

from lightkurve import KeplerTargetPixelFile, LightCurve
tpf = KeplerTargetPixelFile.from_archive(6507433, quarter=8)


> Found 1 File(s)
> Downloading URL https://mast.stsci.edu/api/v0/download/file?uri=mast:Kepler/url/missions/kepler/target_pixel_files/0065/006507427/kplr006507427-2011073133259_lpd-targ.fits.gz to ./mastDownload/Kepler/kplr006507427_lc_Q011111111111111111/kplr006507427-2011073133259_lpd-targ.fits.gz ...

The star it gets is one pixel away from the one I want. My guess is that there’s a radius search behind the scenes, and there’s some bad conversations to and from RA and Dec and it’s not accounting for the fact that it knows the true KIC of the target I want? But that’s just a guess on my part.

Still ❤️ Lightkurve!

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
barentsencommented, Jun 13, 2018

True! I am happy every day I get to interact with our lovely team!

0reactions
benmontetcommented, Jun 13, 2018

It is working for me locally on v1.0b7. I am indeed a happy Ben. But let’s be honest, I am already happy every time I get a chance to interact with your lovely team!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Searching & downloading Kepler, K2, and TESS data
We will start with the case of searching for a Kepler target using its Kepler Input Catalog (KIC) ID number.
Read more >
How to download an archive and extract it without saving the ...
You can do it by telling wget to output its payload to stdout (with the flag -O- ) and suppress its own output...
Read more >
Downloading Chandra X-ray Images
go to Chandra Data Archive Observation Search Page and type in the name of the object in the Target Name box. All observations...
Read more >
DataDl - GitHub Pages
This tutorial aims to prepare you to access the existing COS data of your choice by walking you through downloading a processed spectrum,...
Read more >
Using the Interactive Exoplanet Viewer
The interactive tables display data stored in the Exoplanet Archive, including information provided by the original source, in a format that ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found