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.

No support for KEPSEISMIC lightcurves

See original GitHub issue

Problem description

Possibly more of a feature request than a bug but my searches through Lightkurve don’t return any lightcurves from the KEPSEISMIC HLSP, although the corresponding MAST searches do.

Example

import lightkurve

print(lk.search_lightcurve('KIC 1292147', mission='Kepler')) # only contains author 'Kepler'

produces

SearchResult containing 17 data products.

 #       mission      year author exptime  target_name  distance
                                     s                   arcsec 
--- ----------------- ---- ------ ------- ------------- --------
  0 Kepler Quarter 01 2009 Kepler    1800 kplr001292147      0.0
  1 Kepler Quarter 02 2009 Kepler    1800 kplr001292147      0.0
  2 Kepler Quarter 03 2009 Kepler    1800 kplr001292147      0.0
  3 Kepler Quarter 04 2010 Kepler    1800 kplr001292147      0.0
  4 Kepler Quarter 05 2010 Kepler    1800 kplr001292147      0.0
  5 Kepler Quarter 06 2010 Kepler    1800 kplr001292147      0.0
  6 Kepler Quarter 07 2010 Kepler    1800 kplr001292147      0.0
  7 Kepler Quarter 08 2011 Kepler    1800 kplr001292147      0.0
  8 Kepler Quarter 09 2011 Kepler    1800 kplr001292147      0.0
  9 Kepler Quarter 10 2011 Kepler    1800 kplr001292147      0.0
 10 Kepler Quarter 11 2012 Kepler    1800 kplr001292147      0.0
 11 Kepler Quarter 12 2012 Kepler    1800 kplr001292147      0.0
 12 Kepler Quarter 13 2012 Kepler    1800 kplr001292147      0.0
 13 Kepler Quarter 14 2012 Kepler    1800 kplr001292147      0.0
 14 Kepler Quarter 15 2013 Kepler    1800 kplr001292147      0.0
 15 Kepler Quarter 16 2013 Kepler    1800 kplr001292147      0.0
 16 Kepler Quarter 17 2013 Kepler    1800 kplr001292147      0.0

i.e. nothing with author KEPSEISMIC.

Expected behavior

A MAST search on the same target (KIC 1292147) returns the three KEPSEISMIC data products:

hlsp_kepseismic_kepler_phot_kplr001292147-20d_kepler_v1_cor-filt-inp
hlsp_kepseismic_kepler_phot_kplr001292147-55d_kepler_v1_cor-filt-inp
hlsp_kepseismic_kepler_phot_kplr001292147-80d_kepler_v1_cor-filt-inp

so I expected the search to have lines something like

...
 17 Kepler                 KEPSEISMIC-20d 1800 kplr001292147      0.0
 18 Kepler                 KEPSEISMIC-55d 1800 kplr001292147      0.0
 19 Kepler                 KEPSEISMIC-80d 1800 kplr001292147      0.0
...

Environment

  • Fedora 33
  • lightkurve 2.0.2
  • via pip 20.2.2

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
barentsencommented, Feb 23, 2021

A PR wouldn’t be that small because, ideally, it would include the following:

  • Adding lightkurve/io/kepseismic.py to introduce a reader function for Kepseismic.
  • Modifying the detect_filetype function in detect.py to detect a Kepseismic file, ideally based on a FITS header keyword that identifies it, if available.
  • Modifying the read function in read.py to route a Kepseismic file to the new Kepseismic reader.
  • Adding a simple test in tests/io/test_kepseismic.py to verify that we can indeed read in a Kepseismic file. This can use a hard-coded url of a Kepseismic light curve file.

In the reader function, it would be useful to have a docstring that mentions any quirks of interest related to the Kepseismic product (e.g. the fact that it covers all of Kepler, not just a single quarter). It will also be good to figure out if the light curves are normalized, and if so, set lc.meta["NORMALIZED"] = True.

That’s plenty of work for a single PR!! It’s of course fine to figure out what you can, and I’m happy to review/comment/edit a PR to get it perfect.

0reactions
barentsencommented, Apr 12, 2021

Thank you @scfleming! 👍

Read more comments on GitHub >

github_iconTop Results From Across the Web

Kepler Light Curves Optimized For Asteroseismology ...
KEPSEISMIC light curves are obtained from Kepler pixel-data files using large custom apertures that produce more stable light curves on ...
Read more >
Surface Rotation and Photometric Activity for Kepler Targets. I ...
We typically construct the KEPSEISMIC light curves using larger apertures than those of the PDC-MAP time-series, which leads to an increase in the...
Read more >
Full changelog - Lightkurve
Fixed a bug in CBVCorrector causing it to not work on K2 data. [#1012] ... Added support for reading KEPSEISMIC light curves. [#972]....
Read more >
arXiv:1908.05222v2 [astro-ph.SR] 15 Aug 2019
and KEPSEISMIC light curves are likely to be associ- ... lower masses, there is no sufficient evidence to support or reject that hypothesis....
Read more >
Detections of solar-like oscillations in dwarfs and subgiants ...
We then use the PDC-MAP light curves to confirm that the rotational signal does not result from pollution (instrumental or stellar) as the...
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