Description
Recent dates don't seem to be included in the IERS table when I force a fresh download
Expected behavior
I expected to convert a recent date
Actual behavior
astropy.utils.iers.iers.IERSRangeError: (some) times are outside of range covered by IERS table.
Steps to Reproduce
# Put your Python code snippet here.
from astropy.utils.data import download_file
from astropy.time import Time, TimeDelta
from astropy.utils import iers
url = 'https://maia.usno.navy.mil/ser7/finals2000A.all'
filename = download_file(url, cache=False) # Force download of latest copy
dat = iers.IERS_Auto.read(file=filename)
iers.IERS.iers_table = dat
iers.conf.auto_download = False
(Time.now()-TimeDelta(3)).ut1 #Raises Error
# astropy.utils.iers.iers.IERSRangeError: (some) times are outside of range covered by IERS table.
for i in range(1000):
try:
LastDate = (Time('2021-01-11')+TimeDelta(i)).ut1
except iers.iers.IERSRangeError:
print(Time('2021-01-11')+TimeDelta(i))
break
# 2022-02-06 00:00:00.000 is the first date that cannot be converted
System Details
Python 3.9.12 (main, Apr 5 2022, 06:56:58)
[GCC 7.5.0]
Numpy 1.21.5
pyerfa 2.0.0
astropy 5.0.4
Scipy 1.7.3
Matplotlib 3.5.1
Description
Recent dates don't seem to be included in the IERS table when I force a fresh download
Expected behavior
I expected to convert a recent date
Actual behavior
astropy.utils.iers.iers.IERSRangeError: (some) times are outside of range covered by IERS table.
Steps to Reproduce
System Details
Python 3.9.12 (main, Apr 5 2022, 06:56:58)
[GCC 7.5.0]
Numpy 1.21.5
pyerfa 2.0.0
astropy 5.0.4
Scipy 1.7.3
Matplotlib 3.5.1