kepextract null option invalid
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