find_offset#

magicctapipe.io.find_offset(data_magic_, data_lst_, N_start=0, N_end=20, initial_time_offset=None)[source]#

Find the time offset between MAGIC and LST.

Parameters:
data_magic_str

Input filename for MAGIC

data_lst_str

Input filename for LST

N_start, N_endint

Start and stop event number for MAGIC event

initial_time_offsetfloat

The initial time offset value for search the time offset

Returns:
t_magic_ave_arrayfloat

The array of the MAGIC timestamp

event_id_magic_ave_arrayint

The array of the MAGIC event ID

time_offset_best_arrayfloat

The array of the best time offset found from the combination

n_coincident_arrayint

The array of coincidence event number