Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bad time format keyword in TPF/lightcurve file #113

Open
lacalaca85 opened this issue Sep 16, 2017 · 2 comments
Open

Bad time format keyword in TPF/lightcurve file #113

lacalaca85 opened this issue Sep 16, 2017 · 2 comments
Labels

Comments

@lacalaca85
Copy link

I was working on this one: ktwo220142950-c08_spd-targ.fits, when kepconvert failed with the following:

Exception: ERROR -- KEPCONVERT: error converting time to ktwo220142950-c08_spd-targ.lc.txt: format must be one of ['jd', 'mjd', 'decimalyear', 'unix', 'cxcsec', 'gps', 'plot_date', 'datetime', 'iso', 'isot', 'yday', 'fits', 'byear', 'jyear', 'byear_str', 'jyear_str']

Apparently units are "BJD-2454833" in the light curve file generated by kepextract instead of the ones above.

@mirca mirca added the bug label Sep 16, 2017
@lacalaca85
Copy link
Author

Update: not limited to SC files. Same error for C7 and C10 files. This happens with python3.5 and Anaconda.

Tried with python2.7, got a different one:

KEPCONVERT started at: Mon Sep 25 09:31:29 2017
Traceback (most recent call last):
File "/Users/lmolnar/.conda/envs/py27/bin/kepconvert", line 11, in
sys.exit(kepconvert_main())
File "/Users/lmolnar/.conda/envs/py27/lib/python2.7/site-packages/pyke/kepconvert.py", line 432, in kepconvert_main
args.baddata, args.overwrite, args.verbose, args.logfile)
File "/Users/lmolnar/.conda/envs/py27/lib/python2.7/site-packages/pyke/kepconvert.py", line 120, in kepconvert
if kepio.fileexists(outfile):
File "/Users/lmolnar/.conda/envs/py27/lib/python2.7/site-packages/pyke/kepio.py", line 300, in fileexists
if not os.path.isfile(file_):
File "/Users/lmolnar/.conda/envs/py27/lib/python2.7/genericpath.py", line 37, in isfile
st = os.stat(path)
TypeError: coercing to Unicode: need string or buffer, bool found

@mirca mirca changed the title Bad time format keyword in SC TPF/lightcurve file Bad time format keyword in TPF/lightcurve file Sep 25, 2017
@barentsen
Copy link
Member

Thanks for reporting this @lacalaca85.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants