[AstroPy] upcoming leap second

Aldcroft, Thomas aldcroft at head.cfa.harvard.edu
Mon Dec 19 16:07:57 EST 2016


On Sun, Dec 18, 2016 at 11:20 PM, Andrew Williams <andrew at physics.uwa.edu.au
> wrote:

>
> There's a new leap second coming up in a couple of weeks, and the latest
> IERS data downloaded by astropy 1.2.1 (http://maia.usno.navy.mil/ser
> 7/finals2000A.all) doesn't seem to include it - either that, or leap
> second calculations don't use that downloaded data.
>

That's correct, currently leap seconds are handled entirely within ERFA
using static data.


>
> According to this thread:
>
> https://github.com/astropy/astropy/issues/5532
>
> Astropy 1.3 should include the new leap second - is it still due out today?
>
> Also, we've got a few machines running Python 2.6.6, and astropy 1.0.3,
> and upgrading to a Python 2.7 variant so we can use the latest astropy
> will take a lot of work (and won't happen before the end of the year).
> How and where can I find the relevant data table in 1.0.3 to update the
> leap second data? Will I need to download astropy 1.0.3 source, edit
> cextern/erfa/dat.c and compile and install manually, or can I tweak some
> other data file in the copy I have installed using 'pip'?
>

For your Python 2.6 installation doing the source tweak you mentioned
should work and be something you can do right now.  See for example this
(unmerged) PR:

  https://github.com/astropy/astropy/pull/5395/files

The updated ERFA library with the leap second will be included in 1.0.11,
which will be released before Dec. 31 according to Erik T.

- Tom


>
> Andrew
> _______________________________________________
> AstroPy mailing list
> AstroPy at scipy.org
> https://mail.scipy.org/mailman/listinfo/astropy
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/astropy/attachments/20161219/0e549d90/attachment.html>


More information about the AstroPy mailing list