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.

Default search radius fails for some sources that were assigned custom apertures (bright stars, galaxies, TRAPPIST-1).

See original GitHub issue

Problem description

The default search_targetpixelfile() radius of 0.0001 arcsec fails for these bright high proper motion stars with custom apertures:

EPIC ID Campaign new name N Custom Aps
229002496 10 Bright Stars.gam Vir 1
236607658 111 Bright Stars.36 Oph 1
236607658 112 Bright Stars.36 Oph 1
246721980 13 Bright Stars.rho Tau 2
247599022 13 Bright Stars.tau Tau 1

Example

import lightkurve as lk

lk.search_targetpixelfile(229002496) #Current default: radius=0.0001 arcseconds

Yields: No data found for target "229002496".

Expected behavior

This source has a proper motion of ~600 mas/yr. A larger radius finds the source:

lk.search_targetpixelfile(229002496, radius=3) #arcseconds

Yields:

SearchResult containing 2 data products.

 target_name            productFilename                         description                    distance     
------------- ----------------------------------- --------------------------------------- ------------------
ktwo200084004 ktwo200084004-c101_lpd-targ.fits.gz Target Pixel Long Cadence (KTL) - C10-1 2.1207652756154594
ktwo200084004 ktwo200084004-c102_lpd-targ.fits.gz Target Pixel Long Cadence (KTL) - C10-2 2.1207652756154594

Note that these sources were assigned custom apertures owing to their large saturation bleed trails, so their TPF files get indexed by 200084004, rather than through the conventional EPIC ID 229002496.

Environment:

  • lightkurve version 1.0.0 dev:
  • source:

Issue Analytics

  • State:open
  • Created 4 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
barentsencommented, Apr 17, 2019

One workaround we discussed is to have Lightkurve let the user know about nearby targets in the search error message. For example: No data found for target "229002496". Targets were found X arcseconds away; try increasing the search area using the `radius` keyword.

0reactions
barentsencommented, Apr 26, 2019

(Also, it would be worthwhile to open astroquery and investigate the UserWarning raised. It doesn’t make sense.)

Read more comments on GitHub >

github_iconTop Results From Across the Web

K2 Archived Data Release Notes - GitHub Pages
42 moving objects were tiled with LC custom strip apertures. 7 bright stars were assigned 24-pixel diameter LC disk apertures to capture the...
Read more >
identifying bright stars: Topics by Science.gov
Exceeding the LimitFirst discovered in the 1980s, ULXs are rare sources that have nonetheless been found in all types of galaxies. Though the...
Read more >
KEPLER TRANSIT DEPTHS CONTAMINATED BY A ...
Here we investigate how a suspicious source in the KIC caused an erroneous crowding correction in the PDCSAP light curves of Kepler-445. As...
Read more >
Observing Bright Stars and their Planets from the Earth and ...
The discovery and characterization of extrasolar planets is a leading fron- tier of science, which is limited by our ability to extract real...
Read more >
pair of sub-Neptunes transiting the bright K-dwarf TOI-1064 ...
We report the discovery and characterization of a pair of sub-Neptunes ... stars in a given aperture and determining which sources are bright...
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