astropy / astroquery

Functions and classes to access online data resources. Maintainers: @keflavich and @bsipocz and @ceb8
http://astroquery.readthedocs.org/en/latest/
BSD 3-Clause "New" or "Revised" License
706 stars 398 forks source link

jplhorizons epochs kwarg should accept Time objects #1506

Open bsipocz opened 5 years ago

bsipocz commented 5 years ago

'epochs' should be Time objects or at least be able to accept Time objects.

Some discussion was here: #1488

bsipocz commented 1 year ago

Another related example (from #1652) where it would be nice to understand more time units in the epoch steps (it works with e.g. 'h', 'm', 'd', and maybe 's' doesn't even make much sense anyway :

from astroquery.jplhorizons import Horizons

s = Horizons(id='10', location='geo', id_type='majorbody', epochs={'start':'2020-01-01 00:00', 'stop':'2020-01-01 00:01', 'step':'1s'})
t = s.ephemerides(quantities='31')