get_on_off_times

Data_Reduction.DSN.logs.get_on_off_times(eaclog)

Get the times when the antenna is on-source or off-source.

This parses an EAC macro log for the times when the antenna is on source and when it is off. It also gets the offset amount and direction and the source name. It returns a list of [on time, off time, source, offset, deg] list.

:param eaclog : The full path to an EAC macro response file. :type eaclog : str

Returns

(list of lists) The sublist consist of:: - on_time: UNIX timestamp for when the antenna is on-source - offtime: UNIX timestamp for when the antenna is off-source - source: name of the source (string) - direction: direction of the offset (string) - amount: the amount of the offset (degrees, float)