keparith -- perform simple mathematical operations on time series data (add, subtract, multiply, divide by a constant or the mean, median etc.)
keparith infile outfile datacol
constantfunc constant operation
infile = string
Filename for the input light curve.
outfile = string
Filename for the output light curve.
datacol = string
The column in the FITS file which will be modified
constantfunc = string
A constant term which is calculated from a simple function to the time series. The functions used can be median, mean, MAD, std, max or range, where MAD is the median absolute deviation from the median, std is the standard deviation, max is the largest value in the time series and range is the maximum minus the minimum value in the time series.
constantval = float
A constant, the value can be any positive or negative real number.
operation = string
add, subtract, divide or multiply by a constant.
clobber = boolean (optional)
Option to overwrite the output file. If clobber = no and an existing file has the same name
as outfile then the task will stop with an error.
verbose = boolean (optional)
Option for verbose mode, in which informative messages and warnings to the shell and a logfile.
logfile = string (optional)
Name of the logfile containing error and warning messages.
status = integer
Exit status of the script. It will be non-zero if the task halted with an error. This
parameter is set by the task and should not be modified by the user.
keparith allows you to add, subtract divide or multiply a time series in a FITS file by either a value that is calculated by a simple function or is given directly. The available functions are median, mean, standard deviation, max, range or median absolute deviation from the median. The error will also be correctly propagated if possible.