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

Refactor astroquery.heasarc to use VO protocols #2997

Open
wants to merge 9 commits into
base: main
Choose a base branch
from
5 changes: 5 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,11 @@ New Tools and Services
Service fixes and enhancements
------------------------------

heasarc
^^^^^^^

- Refactor heasarc to use the VO backend. The old Heasarc class is now HeasarcBrowser [#2997]

mpc
^^^

Expand Down
17 changes: 17 additions & 0 deletions astroquery/heasarc/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
The initial version of this was coded in a sprint at the
"Python in astronomy" workshop in April 2015 by Jean-Christophe Leyder,
Abigail Stevens, Antonio Martin-Carrillo and Christoph Deil.

Updates to use the XAMIN service was added by Abdu Zoghbi

"""
from astropy import config as _config

Expand All @@ -27,6 +30,20 @@ class Conf(_config.ConfigNamespace):
30,
'Time limit for connecting to HEASARC server.')

VO_URL = _config.ConfigItem(
'https://heasarc.gsfc.nasa.gov/xamin/vo',
'Base Url for VO services')

TAR_URL = _config.ConfigItem(
'https://heasarc.gsfc.nasa.gov/xamin/TarServlet',
'URL for the xamin tar servlet'
)

S3_BUCKET = _config.ConfigItem(
'nasa-heasarc',
'The name of the AWS S3 bucket that contain the HEASARC data'
)


conf = Conf()

Expand Down