Skip to content

Commit f59362b

Browse files
authored
Merge pull request #2597 from esdc-esac-esa-int/ESA_eHST-tap_https_url
eHST queries and data using TAP and minor fixes in ESA modules
2 parents ef8be74 + d5221e5 commit f59362b

File tree

17 files changed

+480
-357
lines changed

17 files changed

+480
-357
lines changed

CHANGES.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,12 @@ hsa
1616

1717
- New module to access ESA Herschel mission. [#2122]
1818

19+
esa.hubble
20+
^^^^^^^^^^
21+
22+
- Update to TAP url to query data and download files, aligned with the new eHST Science Archive. [#2567][#2597]
23+
- Status and maintenance messages from eHST TAP when the module is instantiated. get_status_messages method to retrieve them. [#2597]
24+
- Optional parameters in all methods are kwargs keyword only. [#2597]
1925

2026
Service fixes and enhancements
2127
------------------------------
@@ -31,9 +37,8 @@ esa.hubble
3137

3238
- Refactored query_criteria to use ehst.archive table therefore making the query
3339
a lot faster. [#2524]
34-
35-
- Update TAP url to avoid 301 HTTPError. [#2567]
36-
40+
- Method query_hst_tap has been deprecated and is replaced with query_tap, with the same arguments. [#2597]
41+
- Product types in download_product method have been modified to: PRODUCT, SCIENCE_PRODUCT or POSTCARD. [#2597]
3742

3843
alma
3944
^^^^

astroquery/esa/hubble/__init__.py

Lines changed: 11 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,30 @@
1+
# Licensed under a 3-clause BSD style license - see LICENSE.rst
12
"""
2-
3-
@author: Javier Duran
4-
3+
==========
4+
eHST Init
5+
==========
56
67
European Space Astronomy Centre (ESAC)
78
European Space Agency (ESA)
89
9-
Created on 13 Aug. 2018
10-
1110
"""
1211

1312
from astropy import config as _config
13+
from astropy.config import paths
14+
import os
1415

1516

1617
class Conf(_config.ConfigNamespace):
1718
"""
1819
Configuration parameters for `astroquery.esa.hubble`.
1920
"""
20-
DATA_ACTION = _config.ConfigItem("http://archives.esac.esa.int/"
21-
"ehst-sl-server/servlet/data-action",
22-
"Main url for retriving hst files")
23-
METADATA_ACTION = _config.ConfigItem("http://archives.esac.esa.int/"
24-
"ehst-sl-server/servlet/"
25-
"metadata-action",
26-
"Main url for retriving hst metadata")
27-
TARGET_ACTION = _config.ConfigItem("http://archives.esac.esa.int/"
28-
"ehst-sl-server/servlet/"
29-
"targetresolver-action",
30-
"Main url for solving targets")
21+
EHST_TAP_SERVER = _config.ConfigItem("https://hst.esac.esa.int/tap-server/tap", "eHST TAP Server")
22+
EHST_TARGET_ACTION = _config.ConfigItem("servlet/target-resolver?", "eHST Target Resolver")
23+
EHST_MESSAGES = _config.ConfigItem("notification?action=GetNotifications", "eHST Messages")
3124
TIMEOUT = 60
3225

26+
cache_location = os.path.join(paths.get_cache_dir(), 'astroquery/ehst', )
27+
3328

3429
conf = Conf()
3530

0 commit comments

Comments
 (0)