In [3]:
from astroplan import Observer, FixedTarget, get_site
from astropy.coordinates import SkyCoord
from astropy.time import Time
from time import time as t

location = get_site('Keck')
target_names = ['Vega', 'Mira', 'Sirius']
vega = FixedTarget.from_name("Vega")
targets = [FixedTarget.from_name(name) for name in target_names]
keck = Observer(location=location)
time = Time('2015-07-24 10:00:00')
start = t()
keck.calc_rise(time, targets)
end = t()
print(end-start)


90.3618428707

In [4]:
start = t()
keck.calc_rise(time, vega)
end = t()
print(end-start)


0.393373966217

In [5]:
start = t()
keck.calc_rise(time, [vega])
end = t()
print(end-start)


31.2070858479

In [ ]: