def sec_2_index(secs, fr=2048, offset=0):
    """

    :param numpy.ndarray secs: time in seconds to be converted
    :param float fr: dampling frequency
    :param float offset: offset in seconds
    :return: time in samples
    :rtype: numpy.ndarray
    """
    return (secs*fr - offset*fr).astype(int)