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

kepextract null option invalid #190

Open
drjenncash opened this issue May 28, 2018 · 0 comments
Open

kepextract null option invalid #190

drjenncash opened this issue May 28, 2018 · 0 comments

Comments

@drjenncash
Copy link

I am using kepextract and keep having issues with null values
kepextract itself runs fine, but the fits file it creates has value of zero instead of NULL which causes problems for any further processing I want to do on the light curve

for example, when I run kepdraw on the file created by kepextract I get:
WARNING: VerifyWarning: Invalid keyword for column 4: Column null option (TNULLn) is invalid for binary table columns of type 'E' (got -1). The invalid value will be ignored for the purpose of formatting the data in this column. [astropy.io.fits.column]
Found the following flux columns: SAP_FLUX, SAP_FLUX_ERR, PDCSAP_FLUX, PDCSAP_FLUX_ERR, RAW_FLUX
Using data column PDCSAP_FLUX on the plot...

trying to run kepcotrend on the file, I get:
WARNING: VerifyWarning: Invalid keyword for column 4: Column null option (TNULLn) is invalid for binary table columns of type 'E' (got -1). The invalid value will be ignored for the purpose of formatting the data in this column. [astropy.io.fits.column]
/home/jcash/anaconda3/lib/python3.6/site-packages/pyke/kepcotrend.py:200: RuntimeWarning: divide by zero encountered in double_scalars
chisqu += ((obs[i] - expect[i]) / err[i]) ** 2

and the cotrended curve is really bad

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

No branches or pull requests

1 participant