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

astropy fails to download IERS-A table when offline #60

Open
scriptorron opened this issue Jan 14, 2024 · 2 comments
Open

astropy fails to download IERS-A table when offline #60

scriptorron opened this issue Jan 14, 2024 · 2 comments

Comments

@scriptorron
Copy link
Owner

From time to time astropy wants to download the latest IERS-A table from internet. If the Pi is offline this will raise an error. The automated download can be disabled with:

from astropy.utils.iers import conf
conf.auto_max_age = None

Preferred solution is to replace astropy by the same library used in KStars. This would also remove the discrepancy between the positions calculated by KStars and astropy.

@scriptorron
Copy link
Owner Author

See more information about the IERS data download: https://docs.astropy.org/en/stable/utils/iers.html

Probably it is also needed to set:

astropy.utils.iers.conf.iers_degraded_accuracy = "ignore"

Make a configuration setting in the INI file to allow data download for setups with internet access.

I checked if I can replace astropyby the library (libnova) used in KStars. There are arguments against it:

  • astropy is likely more accurate than libnova
  • astropy is anyway needed to create FITS images

@scriptorron
Copy link
Owner Author

Download of IERS data is disabled now.

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

1 participant