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.

inconsistency in search_targetpixelfile (some cases)

See original GitHub issue

Problem description

Given coordinates, the result of search_targetpixelfile will be reported including TIC ID matches. When one of TIC ID reported is supplied in the search_targetpixelfile, the tpf cannot be searched instead.

Example

import lightkurve as lk
from astropy.coordinates import SkyCoord

ra, dec = 47.0935, -60.1725
c = SkyCoord(ra=ra,dec=dec,unit='deg')
res = lk.search_targetpixelfile(c, mission='TESS')

SearchResult containing 2 data products.

target_name                     productFilename                        description     distance
----------- ------------------------------------------------------- ------------------ --------
  220571983 tess2018234235059-s0002-0000000220571983-0121-s_tp.fits Target pixel files      0.0
  220571983 tess2018263035959-s0003-0000000220571983-0123-s_tp.fits Target pixel files      0.0

Then if the reported TIC ID is supplied instead:

res = lk.search_targetpixelfile(220571983, mission='TESS')

No data found for target “220571983”.

It appears this only happens for some targets only, e.g. [ra,dec=(80.0694 -51.9997), tic id=219423302] also. Other queries with matching TIC ID and coordinate should generally work, but this may be a hint of some inherent bug in search_targetpixelfile or data source.

Expected behavior

Environment:

  • platform (e.g. Linux, OSX, Windows): Linux
  • lightkurve version (e.g. 1.0b6): 1.0.1
  • installation method (e.g. pip, conda, source): pip

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
scflemingcommented, Jun 24, 2019

Or, automatically append an appropriate string based on the specific mission, if you still would like users to supplay a numerical ID only…

0reactions
gullycommented, Aug 19, 2019

The core issue here is closed by #558, and the issue of TRAPPIST-1’s custom aperture getting missed is a duplicate of #499.

Read more comments on GitHub >

github_iconTop Results From Across the Web

inconsistency in search_targetpixelfile (some cases) #533
Problem description Given coordinates, the result of search_targetpixelfile will be reported including TIC ID matches.
Read more >
Check and Fix Search Index Inconsistencies
Fix inconsistencies between the search index and the content repository. Use Cases. In Hippo Repository nodes and properties are indexed by Lucene. The...
Read more >
35 Common Merchant Center Errors + How to Fix Them
A complete guide of the 35 most common Merchant Center errors plus how to prevent and fix them. Price mismatch, missing shipping, incorrect...
Read more >
Target Pixel Files - TESS Science Support Center - HEASARC
You can search for a TPF using the search_targetpixelfile() function. This will search for the right file in the MAST data archive. Note...
Read more >
Geometric Calibration for Cameras with Inconsistent Imaging ...
Some studies [6,7,8,9] have explored different calibration targets, such as lines, square patterns, circles, ring patterns and special markers, ...
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