Skip to content

Commit b4daf03

Browse files
committed
Fix sphinx links and headings
1 parent 4d6e353 commit b4daf03

File tree

1 file changed

+39
-31
lines changed

1 file changed

+39
-31
lines changed

docs/esa/hsa.rst

Lines changed: 39 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,21 @@
44
Herschel Science Archive (`astroquery.esa.hsa`)
55
***********************************************
66

7-
`Herschel <https://www.cosmos.esa.int/web/herschel/home/>`__ was the fourth cornerstone in ESA's Horizon 2000 science programme, designed to observe the 'cool' universe.
7+
`Herschel <https://www.cosmos.esa.int/web/herschel/home/>`__ was the fourth
8+
cornerstone in ESA's Horizon 2000 science programme, designed to observe the 'cool' universe.
89
It performed photometry and spectroscopy in the poorly explored 55-670 µm spectral range with a 3.5 m diameter
9-
Cassegrain telescope, providing unique observing capabilities and bridging the gap between earlier infrared space
10-
missions and groundbased facilities. Herschel successfully performed ~37000 science observations and ~6600 science
11-
calibration observations which are publicly available to the worldwide astronomical community through the Herschel Science Archive.
10+
Cassegrain telescope, providing unique observing capabilities and bridging the gap between earlier infrared
11+
space missions and groundbased facilities. Herschel successfully performed ~37000 science observations and
12+
~6600 science calibration observations which are publicly available to the worldwide astronomical community
13+
through the Herschel Science Archive.
1214

1315
This package allows the access to the `Herschel Science Archive <http://archives.esac.esa.int/hsa/whsa/>`__.
1416

15-
========
1617
Examples
1718
========
1819

19-
------------------------------
2020
1. Getting Herschel data
21-
------------------------------
21+
------------------------
2222

2323
.. doctest-remote-data::
2424

@@ -31,13 +31,13 @@ Examples
3131
This will download the product of the observation '1342195355' with the instrument 'PACS' and
3232
it will store them in a tar called '1342195355.tar'. The parameters available are detailed in the API.
3333

34-
For more details of the parameters check the section 6 of the 'Direct Product Access using TAP' in the 'HSA users guide' at:
35-
'http://archives.esac.esa.int/hsa/whsa/'
34+
For more details of the parameters check the section 6 of the ``Direct Product Access using TAP`` in the
35+
`HSA users guide <http://archives.esac.esa.int/hsa/whsa/>`_.
3636

3737
For more details about the products check:
38-
'https://www.cosmos.esa.int/web/herschel/data-products-overview'
38+
https://www.cosmos.esa.int/web/herschel/data-products-overview
39+
3940

40-
-------------------------------
4141
2. Getting Observation Products
4242
-------------------------------
4343

@@ -52,18 +52,20 @@ For more details about the products check:
5252
This will download the product of the observation '1342195355' with the instrument 'PACS' and
5353
it will store them in a tar called '1342195355.tar'. The parameters available are detailed in the API.
5454

55-
`Notice`: There is no difference between the product retrieved with this method and `download_data`. `download_data` is a more generic
56-
interface that allows the user to retrieve any product or metadata and `get_observation` allows the user to retrieve only observation products.
55+
.. Note:: There is no difference between the product retrieved with this method and
56+
`~astroquery.esa.hsa.HSAClass.download_data`. `~astroquery.esa.hsa.HSAClass.download_data`
57+
is a more generic interface that allows the user to retrieve any product or metadata and
58+
`~astroquery.esa.hsa.HSAClass.get_observation` allows the user to retrieve only observation products.
5759

58-
For more information check the section 6.1 of the of the 'direct Product Access using TAP' in the 'HSA users guide' at:
59-
'http://archives.esac.esa.int/hsa/whsa/'
60+
For more information check the section 6.1 of the of the ``Direct Product Access using TAP`` in the
61+
`HSA users guide`_.
62+
63+
For more details of the parameters check the section 6.2 of the ``Direct Product Access using TAP`` in the
64+
`HSA users guide`_.
6065

61-
For more details of the parameters check the section 6.2 of the 'Direct Product Access using TAP' in the 'HSA users guide' at:
62-
'http://archives.esac.esa.int/hsa/whsa/'
6366

64-
-------------------------------
6567
3. Getting Herschel Postcard
66-
-------------------------------
68+
----------------------------
6769

6870
.. doctest-remote-data::
6971

@@ -73,15 +75,16 @@ For more details of the parameters check the section 6.2 of the 'Direct Product
7375
Downloading URL http://archives.esac.esa.int/hsa/whsa-tap-server/data?&retrieval_type=POSTCARD&observation_id=1342195355&instrument_name=PACS to /home/dev/.astropy/cache/astroquery/HSA/data?&retrieval_type=POSTCARD&observation_id=1342195355&instrument_name=PACS ... [Done]
7476
'1342195355.jpg'
7577

76-
This will download the postcard (static representation in JPG-format of the final product) of the observation '1342195355' with the instrument 'PACS' and
77-
it will store them in a tar called '1342195355.jpg'. The parameters available are detailed in the API.
78+
This will download the postcard (static representation in JPG-format of the final product) of the observation
79+
'1342195355' with the instrument 'PACS' and it will store them in a tar called '1342195355.jpg'.
80+
The parameters available are detailed in the API.
81+
82+
For more details of the parameters check the section 6.2 of the ``Direct Product Access using TAP`` in the
83+
`HSA users guide`_.
7884

79-
For more details of the parameters check the section 6.2 of the 'Direct Product Access using TAP' in the 'HSA users guide' at:
80-
'http://archives.esac.esa.int/hsa/whsa/'
8185

82-
------------------------------------------
8386
4. Getting Herschel metadata through TAP
84-
------------------------------------------
87+
----------------------------------------
8588

8689
This function provides access to the Herschel Science Archive database using the Table Access Protocol (TAP) and via the Astronomical Data
8790
Query Language (`ADQL <https://www.ivoa.net/documents/ADQL/20180112/PR-ADQL-2.1-20180112.html>`__).
@@ -106,7 +109,10 @@ Query Language (`ADQL <https://www.ivoa.net/documents/ADQL/20180112/PR-ADQL-2.1-
106109
PACS-A - G345.39-3.97 -43.47405026924179 ... G345.39-3.97-1 883176
107110
PRISMAS_g34_hifi7b_1897GHz_B_C3 1.2495150652937468 ... G34.3+0.1 921086
108111

109-
-----------------------------------
112+
This will execute an ADQL query to download the first 10 observations in the Herschel Science Archive.
113+
The result of the query will be stored in the file ``results.csv``.
114+
115+
110116
5. Getting table details of HSA TAP
111117
-----------------------------------
112118

@@ -122,7 +128,7 @@ Query Language (`ADQL <https://www.ivoa.net/documents/ADQL/20180112/PR-ADQL-2.1-
122128

123129
This will show the available tables in HSA TAP service in the Herschel Science Archive.
124130

125-
-------------------------------------
131+
126132
6. Getting columns details of HSA TAP
127133
-------------------------------------
128134

@@ -138,9 +144,9 @@ This will show the available tables in HSA TAP service in the Herschel Science A
138144

139145
This will show the column details of the table 'hsa.v_active_observation' in HSA TAP service in the Herschel Science Archive.
140146

141-
-------------------------------------
147+
142148
7. Query Observations
143-
-------------------------------------
149+
---------------------
144150

145151
.. doctest-skip::
146152

@@ -162,9 +168,9 @@ This will show the column details of the table 'hsa.v_active_observation' in HSA
162168

163169
Retrieve a VOTable with the observation IDs of a given region
164170

165-
-------------------------------------
171+
166172
8. Procedure example
167-
-------------------------------------
173+
--------------------
168174

169175
First retrieve the observation IDs based on a position on the sky. To achive this, query the TAP service.
170176

@@ -194,12 +200,14 @@ For more information on how to use ADQL see:
194200

195201
After obtaining the desire ID, download the product of the observation '1342205057' with the instrument 'PACS'.
196202

203+
197204
.. doctest-skip::
198205

199206
>>> HSA.download_data(observation_id='1342205057', retrieval_type='OBSERVATION', instrument_name='PACS')
200207
Downloading URL http://archives.esac.esa.int/hsa/whsa-tap-server/data?&retrieval_type=OBSERVATION&observation_id=1342205057&instrument_name=PACS to 1342205057.tar ... [Done]
201208
'1342205057.tar'
202209

210+
203211
Reference/API
204212
=============
205213

0 commit comments

Comments
 (0)