# kepft: calculate and store a Fourier Transform from a Kepler time series¶

pyke.kepft.kepft(infile, outfile=None, fcol='SAP_FLUX', pmin=0.1, pmax=10.0, nfreq=100, plot=False, overwrite=False, verbose=False, logfile='kepft.log')

kepft – Calculate and store a Fourier Transform from a Kepler time series

kepft calculates the discrete Fourier transform for a user-provided Kepler time series. The result is stored in a new FITS file that is a direct copy of the input file but with an additional table extension containing the power spectrum.

Parameters: infile : str The name of a MAST standard format FITS file containing a Kepler light curve within the first data extension. outfile : str The name of the output FITS file with a new extension containing the Fourier spectrum. fcol : str The name of the FITS table column in extension 1 of infile upon which the Fourier transform will be calculated. pmin : float [day] The minimum of the period range over which the Fourier transform will be calculated. pmax : float [day] The maximum of the period range over which the Fourier transform will be calculated. nfreq : int The number of uniform frequency steps between $$1/pmax$$ and $$1/pmin$$ that the Fourier transform will be calculated. plot : bool Plot the output Fourier spectrum? overwrite : bool Overwrite the output file? verbose : bool Print informative messages and warnings to the shell and logfile? logfile : str Name of the logfile containing error and warning messages.

Examples

\$ kepft kplr002436324-2009259160929_llc.fits --pmin 0.5
--pmax 100 --nfreq 1000 --plot --verbose