

def ut2jd(ut):
    '\n    Convert times from Universal Time (UT) to Julian Date (JD)\n\n    Parameters\n    ----------\n    ut : string\n        Time in Universal Time (UT)\n\n    Returns\n    -------\n    jd : float\n        Julian Date (JD)\n    '
    [date, Time] = ut.split(';')
    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.0) + (minute / (24 * 60.0))) + (sec / ((24 * 60) * 60.0)))
    jd = (years + fracOfDay)
    return jd

dataset/ETHPy150Open OSCAAR/OSCAAR/oscaar/mathMethods.py ut2jd/original