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.

"Keyword 'MISSION' not found." for some fits files

See original GitHub issue

Problem description

Some Kepler light curve fits files downloaded with the wget scripts at https://archive.stsci.edu/kepler/publiclightcurves.html do not have the MISSION keyword in their headers (especially quarter 1 data for KIC 9821777 and above?). This missing keyword renders the data inaccessible to lightkurve. I have not been able to set the mission attribute manually either. Can this attribute be None if the keyword is not in the header as is done for “Campaign” for Kepler data?

Example

import lightkurve
klf = lightkurve.KeplerLightCurveFile(path='kplr009821777-2009166043257_llc.fits')  
print(klf.PDCSAP_FLUX)

Expected behavior

Should print the flux array, but instead returns KeyError: “Keyword ‘MISSION’ not found.”

Environment:

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

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
barentsencommented, Jul 4, 2018

(Many thanks @keatonb for bringing this issue to our attention 👍 👍 👍 )

0reactions
texadactylcommented, Jul 5, 2018

Is that why their domain is down?

Read more comments on GitHub >

github_iconTop Results From Across the Web

"Keyword 'MISSION' not found." for some fits files #180 - GitHub
This missing keyword renders the data inaccessible to lightkurve. I have not been able to set the mission attribute manually either. Can this ......
Read more >
FITS File Headers
The main headers are parsed into sections, and all science data files (RAW, ... keywords are also populated from the MPDB and are...
Read more >
ASC FITS File Designers' Guide ASC-FITS-2.1.0
ASC FITS File Designers Guide. 5. All HDUs are to contain the DATASUM and CHECKSUM keywords, so that they are properly. checksummed, in...
Read more >
Opening fits files with no SIMPLE keyword in python
I have a large number of fits files that I'm unable to open becuase of a missing SIMPLE keyword. When I try to...
Read more >
Columns & Keywords for FITS Event List - HEASARC - NASA
Within the context of the HEASARC FITS files, an Event List is defined ... Some missions only record the time of each event...
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