Page 1 of 1

Old leapsec.dat file on Ancillary site

Posted: Wed Oct 20, 2021 11:19 am America/New_York
by jessica.braun
Hello,

We routinely grab the utcpole.dat and leapsec.dat file from:

https://oceandata.sci.gsfc.nasa.gov/Anc ... UTs/modis/

We noticed the leapsec.dat file has not updated since 9/26. Is there an ongoing issue with updating this file?

Thanks,
Jess Braun

Re: Old leapsec.dat file on Ancillary site

Posted: Fri Oct 22, 2021 7:03 pm America/New_York
by OB.DAAC - SeanBailey
Jess,

The file is not old. In fact, there hasn't been a leap second since 2017. The reason the file is regularly updated is because the SDPTK code used by the MODIS geolocation code checks the time stamp in the header of the file (a timestamp it adds to the file) and will stubbornly refuse to work if it is more than 3 months "old". Personally, I think it's an unnecessary check, but did ensure that a current leap second file was in place (leap seconds are only ever added in January or July, so not sure why 3 months was picked...).

The file on our site is less than a month old. Check back next week and you may find it magically has a new date (but the data - aside from the header line - will be identical). We don't updated it more frequently than monthly - unless there's a leap second to add ;)

Regards,
Sean

Re: Old leapsec.dat file on Ancillary site

Posted: Mon Oct 25, 2021 8:40 am America/New_York
by gnwiii
unless there's a leap second to add
or, thanks to global warming, subtract! Adding a second is simpler than subtracting, as you don't get the same time twice when adding, so it will not be surprising to see some problems with subtracting a leap second.