@@ -12,7 +12,7 @@ space missions and groundbased facilities. Herschel successfully performed ~3700
12
12
~6600 science calibration observations which are publicly available to the worldwide astronomical community
13
13
through the Herschel Science Archive.
14
14
15
- This package allows the access to the `Herschel Science Archive <http://archives.esac.esa.int/hsa/whsa/ >`__ .
15
+ This package allows the access to the `Herschel Science Archive <http://archives.esac.esa.int/hsa/whsa/ >`_ .
16
16
17
17
Examples
18
18
========
@@ -109,7 +109,7 @@ Query Language (`ADQL <https://www.ivoa.net/documents/ADQL/20180112/PR-ADQL-2.1-
109
109
PACS-A - G345.39-3.97 -43.47405026924179 ... G345.39-3.97-1 883176
110
110
PRISMAS_g34_hifi7b_1897GHz_B_C3 1.2495150652937468 ... G34.3+0.1 921086
111
111
112
- This will execute an ADQL query to download the first 10 observations in the Herschel Science Archive.
112
+ This will execute an ADQL query to download the first 10 observations in the ` Herschel Science Archive `_ .
113
113
The result of the query will be stored in the file ``results.csv ``.
114
114
115
115
@@ -126,7 +126,7 @@ The result of the query will be stored in the file ``results.csv``.
126
126
INFO: Done. [astroquery.utils.tap.core]
127
127
['hpdp.latest_observation_hpdp', 'hpdp.vizier_links', 'hpdp.unique_observation_hpdp', 'hpdp.latest_unique_observation_requests', 'hpdp.files', 'hpdp.latest_requests', 'public.dual', 'public.image_formats', 'tap_schema.tables', 'tap_schema.columns', 'tap_schema.keys', 'tap_schema.schemas', 'tap_schema.key_columns', 'hsa.observation_science', 'hsa.proposal_coauthor', 'hsa.proposal_observation', 'hsa.instrument', 'hsa.observing_mode_per_instrument', 'hsa.spire_spectral_feature_finder_catalogue', 'hsa.hifi_spectral_line_smoothed', 'hsa.publication', 'hsa.quality_flag', 'hsa.v_active_observation', 'hsa.proposal_info', 'hsa.pacs_point_source_070', 'hsa.observing_mode', 'hsa.proposal', 'hsa.proposal_pi_user', 'hsa.spire_point_source_350', 'hsa.spire_point_source_250', 'hsa.v_publication', 'hsa.spire_point_source_500', 'hsa.pacs_point_source_100', 'hsa.v_proposal_observation', 'hsa.hifi_spectral_line_native', 'hsa.pacs_point_source_160', 'hsa.ancillary', 'hsa.metadata_expert_panels', 'pubtool.institutions', 'pubtool.v_first_pub_date', 'pubtool.v_first_pub_date_single', 'pubtool.archival_type', 'pubtool.publication', 'pubtool.publication_details', 'pubtool.authors_institutions', 'pubtool.publication_observation', 'pubtool.authors', 'updp2.latest_observation_updp', 'updp2.vizier_links', 'updp2.latest_unique_observation_requests', 'updp2.files', 'updp2.latest_requests', 'updp2.unique_observation_updp']
128
128
129
- This will show the available tables in HSA TAP service in the Herschel Science Archive.
129
+ This will show the available tables in HSA TAP service in the ` Herschel Science Archive `_ .
130
130
131
131
132
132
6. Getting columns details of HSA TAP
@@ -142,13 +142,38 @@ This will show the available tables in HSA TAP service in the Herschel Science A
142
142
INFO: Done. [astroquery.utils.tap.core]
143
143
['aor', 'bii', 'dec', 'duration', 'end_time', 'fov', 'global_science_area', 'icon_image', 'icon_location', 'image_2_5_location', 'image_location', 'ingest_queue_oid', 'instrument_oid', 'is_active_version', 'is_public', 'lii', 'naif_id', 'num_publications', 'observation_id', 'observation_oid', 'observer', 'observing_mode_oid', 'obsstate', 'od_number', 'pa', 'polygon_fov', 'position', 'prop_end', 'proposal_id', 'quality_report_location', 'ra', 'science_area', 'science_category', 'spg_id', 'start_time', 'status', 'target_name', 'urn_version']
144
144
145
- This will show the column details of the table 'hsa.v_active_observation' in HSA TAP service in the Herschel Science Archive.
145
+ This will show the column details of the table ``'hsa.v_active_observation' `` in HSA TAP service in the
146
+ `Herschel Science Archive `_.
146
147
147
148
148
- 7. Query Observations
149
+ 7. Query Region
150
+ ---------------
151
+
152
+ .. doctest-remote-data ::
153
+
154
+ >>> from astroquery.esa.hsa import HSA
155
+ >>> from astropy.coordinates import SkyCoord
156
+ >>> from astropy import units as u
157
+ >>>
158
+ >>> c = SkyCoord(ra = 100.2417 * u.degree, dec = 9.895 * u.degree, frame = ' icrs' )
159
+ >>> result = HSA .query_region(c, 0.5 )
160
+ >>> result.pprint(max_width = 100 )
161
+ aor bii ... target_name urn_version
162
+ ...
163
+ ------------------------------------------- ------------------ ... ---------------- -----------
164
+ KPOT_wlanger_1-HPoint-0007 - CII_G202.6+2.0 10.062774289985356 ... CII_G202.6+2.0-1 921022
165
+ n2264-o 9.45754288889945 ... NGC2264 919399
166
+ n2264-n 9.45754288889945 ... NGC2264 919398
167
+ n2264-n 9.450299102175919 ... NGC2264 898497
168
+ n2264-o 9.450499719127244 ... NGC2264 898535
169
+
170
+ Retrieve a VOTable with the observations metadata of a given region.
171
+
172
+
173
+ 8. Query Observations
149
174
---------------------
150
175
151
- .. doctest-skip ::
176
+ .. doctest-remote-data ::
152
177
153
178
>>> from astroquery.esa.hsa import HSA
154
179
>>> from astropy.coordinates import SkyCoord
@@ -166,15 +191,15 @@ This will show the column details of the table 'hsa.v_active_observation' in HSA
166
191
1342205056
167
192
1342205057
168
193
169
- Retrieve a VOTable with the observation IDs of a given region
194
+ Retrieve a VOTable with the observation IDs of a given region.
170
195
171
196
172
- 8 . Procedure example
197
+ 9 . Procedure example
173
198
--------------------
174
199
175
200
First retrieve the observation IDs based on a position on the sky. To achive this, query the TAP service.
176
201
177
- .. doctest-skip ::
202
+ .. doctest-remote-data ::
178
203
179
204
>>> from astroquery.esa.hsa import HSA
180
205
>>>
0 commit comments