def update_apex_epoch(dt):
    year = dt.year
    doy = dt.timetuple().tm_yday
    epoch = (year + (doy / (366.0 if (np.mod(year, 4) == 0) else 365.0)))
    print('Setting Apex epoch for {} to {}'.format(dt.strftime('%Y%m%d'), epoch))
    module_Apex.set_epoch(epoch)
def update_apex_epoch(dt):
    year = dt.year
    doy = dt.timetuple().tm_yday
    epoch = (year + (doy / (366.0 if (np.mod(year, 4) == 0) else 365.0)))
    print('Setting Apex epoch for {} to {}'.format(dt.strftime('%Y%m%d'), epoch))
    module_Apex.set_epoch(epoch)