def ut2jdSplitAtT(ut):

    [date, Time] = ut.split('T')
    Time = Time.strip()
    [year, month, day] = date.split('-')
    [hour, minute, sec] = Time.split(':')
    year = int(year)
    month = int(month)
    day = int(day)
    hour = int(hour)
    minute = int(minute)
    sec = float(sec)
    
    if month == 1 or month == 2:
        month += 12
        year -= 1
    a = year/100
    b = a/4
    c = 2-a+b
    d = day
    e = np.floor(365.25*(year+4716))
    f = np.floor(30.6001*(month+1))
    years = c+d+e+f-1524.5
    fracOfDay = (hour/24.) + (minute/(24*60.)) + (sec/(24*60*60.))
    jd = years + fracOfDay
    return jd
Convert times from Universal Time (UT) to Julian Date (JD), splitting
dataset/ETHPy150Open OSCAAR/OSCAAR/oscaar/mathMethods.py/ut2jdSplitAtT