[AstroPy] time conversion between JD and UT

gonghang.naoc ghang.naoc at gmail.com
Thu Sep 4 07:59:06 EDT 2014

Hi all,
I am trying astropy.time to do conversion between JD and UT.
It is easier to convert UT to JD.  It seems JD equals jd1+jd2, right?  I do
not know why there are two parts since one value is enough.
However It is difficult to convert JD to UT? It seems there is no relative
manipulation in this package.

>>> from astropy.time import Time
>>> t = Time('2010-01-01 00:00:00', scale='utc')>>> t.jd1, t.jd2(2455197.5, 0.0)

Thank you.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20140904/212b7d9e/attachment.html>

More information about the AstroPy mailing list