Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow local IERS file redux #426

Closed
jchiang87 opened this issue Oct 6, 2023 · 4 comments
Closed

Allow local IERS file redux #426

jchiang87 opened this issue Oct 6, 2023 · 4 comments
Milestone

Comments

@jchiang87
Copy link
Collaborator

For running at Theta, we need to reimplement the fix described at #200

@jchiang87 jchiang87 added this to the imSim 2.0 milestone Oct 6, 2023
@cwwalter
Copy link
Member

cwwalter commented Oct 6, 2023

It looks like relative to when we dealt with this before there is now a new option:

iers.conf.auto_max_age = None
https://docs.astropy.org/en/stable/utils/iers.html

which stops the check but would require us to prestige it in the "Standard" area, so I think the previous

iers.conf.iers_auto_url = 'file:/srv/finals2000A.all'

is still better assuming that it still works.

@jchiang87
Copy link
Collaborator Author

For this morning's tests at Theta, I did try adding just that line, but it still tried to download the file, so I needed to set the iers_auto_url to point to a local copy.

@jchiang87
Copy link
Collaborator Author

Apparently astropy also wants to download a leap second file:

Downloading https://hpiers.obspm.fr/iers/bul/bulc/Leap_Second.dat
|===========================================| 1.3k/1.3k (100.00%)         0s

We can provide an alternative location by also setting iers.conf.iers_leap_second_auto_url to a local file URL, but it's easier just to disable downloads entirely. This can be done with

from astropy.utils import iers
iers.conf.auto_download = False
iers.conf.iers_degraded_accuracy = 'warn'

@jchiang87
Copy link
Collaborator Author

This effectively closed by #427

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants