def strip_data_by_time(t_data, data, t_min, t_max):
    data = np.array([s for (s, t) in zip(data, t_data) if ((t >= t_min) and (t <= t_max))])
    t_data = np.array([t for t in t_data if ((t >= t_min) and (t <= t_max))])
    return (t_data, data)
def strip_data_by_time(t_data, data, t_min, t_max):
    data = np.array([s for (s, t) in zip(data, t_data) if ((t >= t_min) and (t <= t_max))])
    t_data = np.array([t for t in t_data if ((t >= t_min) and (t <= t_max))])
    return (t_data, data)