keprange: define time ranges interactively for use with other PyKE tasks

pyke.keprange.keprange(infile, outfile=None, datacol='SAP_FLUX', rinfile='', overwrite=False, verbose=False, logfile='keprange.log')

keprange – Define time ranges interactively for use with other PyKE tasks.

A number of PyKE tasks, e.g. kepdetrend, kepoutlier, require the user to specify ranges in time over which to operate. keprange provides a visual and interactive tool with which to define time ranges and store them within an ASCII file. Choices are made using a GUI. Use the left-button of your mouse to select ranges. An existing ASCII file can be loaded, a new ASCII file can be written, the list of times can be cleared or printed using the buttons on the GUI.


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 ASCII file storing time ranges for future use in other PyKE tools.

rinfile : str

An existing ASCII file containing time ranges in Barycentric Julian Date (BJD) can be uploaded into the task. This can be used as a basis for a new set of time ranges. This argument is optional and is not prompted for automatically. If no ascii file will be input then rinfile=None will clear the argument buffer after a previous use.

datacol : str

The datacol name containing data stored within extension 1 of infile. This data will be plotted against time so that the user can choose appropriate time ranges.

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.


$ keprange kplr002436324-2009259160929_llc.fits --verbose