hipercam.hlog

hlog is a sub-module for reading in the log files written by reduce. It defines a class to hold log files and a simple one to represent time series to allow quick development of scripts to plot results.

For example, suppose a log file ‘eg.log’ has been written with 2 CCDs, ‘1’ and ‘2’, and that CCD ‘2’ has apertures labelled ‘t’ and ‘c’ for target and comparison. Then the following commands would load it, divide target by comparison and plot the result with matplotlib:

>> import matplotlib.pyplot as plt >> import hipercam as hcam >> >> hlog = hcam.hlog.Hlog.read(‘ts.log’) >> targ = hlog.tseries(‘2’,’t’) >> comp = hlog.tseries(‘2’,’c’) >> >> ratio = targ / comp >> ratio.mplot(plt, ‘r’) >> plt.show()

Classes

Hlog

Class to represent a HiPERCAM log as produced by reduce.

Tseries(t, y, ye, mask)

Class representing a basic time series with times, y values, y errors and flags.