def time2npa(lt):
    """ convert pd.datetime.time to numpy array

    Parameters
    ----------

    lt : pd.datetime.time

    Returns
    -------

    ta : numpy array
        time in seconds

    """
    ta = (lt.microsecond*1e-6+
    lt.second+
    lt.minute*60+
    lt.hour*3600)
    return(ta)