Data search via MAST no longer returns correct lightcurves.
See original GitHub issueWhen searching a light curve file using an identifier (e.g. ‘16CygB’, or a KIC number), the list of lighcurves returned are from a range of different targets, instead of the requested target.
import lightkurve
data = lk.search_lightcurvefile('16CygB').download_all()
>>> data
LightCurveFileCollection of 26 objects:
KIC 100002399 (1 KeplerLightCurveFiles) Quarters: 6
KIC 100002401 (1 KeplerLightCurveFiles) Quarters: 6
KIC 100002403 (1 KeplerLightCurveFiles) Quarters: 6
KIC 100002741 (3 KeplerLightCurveFiles) Quarters: 7,11,15
KIC 100002743 (1 KeplerLightCurveFiles) Quarters: 7
KIC 100002745 (1 KeplerLightCurveFiles) Quarters: 7
KIC 100003083 (3 KeplerLightCurveFiles) Quarters: 8,12,16
KIC 100003085 (1 KeplerLightCurveFiles) Quarters: 8
KIC 100003087 (1 KeplerLightCurveFiles) Quarters: 8
KIC 100003502 (1 KeplerLightCurveFiles) Quarters: 9
KIC 100003505 (1 KeplerLightCurveFiles) Quarters: 9
KIC 100003508 (1 KeplerLightCurveFiles) Quarters: 9
KIC 100003551 (2 KeplerLightCurveFiles) Quarters: 10,14
KIC 100003554 (1 KeplerLightCurveFiles) Quarters: 10
KIC 100003557 (1 KeplerLightCurveFiles) Quarters: 10
KIC 100004031 (2 KeplerLightCurveFiles) Quarters: 13,17
KIC 12069424 (4 KeplerLightCurveFiles) Quarters: 0,1,2,5
For reference, the correct KIC number for 16 Cyg B is: 12069449, which doesn’t show up in the search at all.
I’m using lightkurve version 1.1.1.
Any ideas? @danhey has noticed this too and we think its a MAST issue, not lightkurve, but it’s important to flag it here as it will break any automated algorithm.
Issue Analytics
- State:
- Created 4 years ago
- Reactions:1
- Comments:5
Top Results From Across the Web
lightkurve.search_lightcurve
Search the MAST data archive for light curves. This function fetches a data table that lists the Light Curve Files that fall within...
Read more >Cross Correlation Search Help - MAST Archive
Use the Cross Correlation Search form to search the MAST Archive by object name or position. Names or coordinates can be specified in...
Read more >A SYSTEMATIC SEARCH FOR TRANSITING PLANETS IN ...
We present a method for searching K2 light curves for evidence of exoplanets by simultaneously fitting for these systematics and the transit signals...
Read more >TESScut and ExoMAST: Working with TESS Time Series Data
Plotting TESS light curves in Python; Using the MAST API to make an FFI cutout; Creating a movie of TPF frames in Python....
Read more >Visual inspection - TESS Science Support Center - HEASARC
LightCurve Object: Obtained from a TPF and contains light curve information derived using simple aperture photometry. LightCurveFile Object: Obtained from MAST ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
A consequence of the different target ID’s is that stitch refuses to work:
…but the following hack works around the restriction:
It looks like searching for 16 Cyg B data is confusing because the target was observed under a range of different target mask identifiers (e.g. 100002741 in Q11 & Q15, 100004031 in Q13 & Q17). This will be explained by the fact that the star is extremely bright (V~6). Kepler’s standard method of allocating masks was not designed for such bright objects, so I believe that custom masks were manually designed to observe this target (i.e. it is a very special case). The person who designed the masks and will know the full details is steve.bryson@nasa.gov .
A side-effect of using custom masks is that they are observed under awkward target mask identifiers (1000xxxxx), rather than the standard KIC identifier. Moreover, the target mask identifiers will change between Quarters for custom masks.
@ojhall94 Does that make sense? Were you able to piece the data for 16 Cyg B together? Note that the object was observed in short cadence, but
search_lightcurvefile
will only return long cadence by default.