Skip to content

Commit 3fe1395

Browse files
Jorge Fernandez HernandezJorge Fernandez Hernandez
authored andcommitted
EUCLIDPCR-1863 update information related to datalink
1 parent d979134 commit 3fe1395

File tree

1 file changed

+3
-21
lines changed

1 file changed

+3
-21
lines changed

docs/esa/euclid/euclid.rst

Lines changed: 3 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1169,7 +1169,7 @@ To find out the resources associated with a given source:
11691169
>>> datalink = Euclid.get_datalinks(ids=ids)
11701170

11711171

1172-
The query below retrieves a random sample of Euclid sources having spectra, i.e., ancillary products.
1172+
The query below retrieves a random sample of Euclid sources having spectra.
11731173

11741174
.. Skipping authentication requiring examples
11751175
.. doctest-skip::
@@ -1213,27 +1213,9 @@ The following example shows how to retrieve the DataLink products (1D Spectra) a
12131213
.. Skipping authentication requiring examples
12141214
.. doctest-skip::
12151215

1216-
>>> from astroquery.esa.euclid import Euclid
1217-
>>> params_dict = {}
1218-
>>> params_dict['ID']=','.join(str(item) for item in results['object_id'])
1219-
>>> params_dict['RETRIEVAL_TYPE'] = 'SPECTRA'
1220-
>>> datalink = Euclid.load_data(params_dict=params_dict)
1221-
1222-
The DataLink products are stored inside a Python Dictionary. Each of its elements (keys) contains a one-element list that can be extracted as follows:
1223-
1224-
.. Skipping authentication requiring examples
1225-
.. doctest-skip::
1226-
1227-
>>> dl_keys = [inp for inp in datalink.keys()]
1228-
>>> dl_keys.sort()
1229-
>>> print(f'The following Datalink products have been downloaded:')
1230-
>>> for dl_key in dl_keys:
1231-
... print(f' * {dl_key}')
1232-
1233-
.. Note::
1216+
>>> datalink = Euclid.get_spectrum(source_id='2417660845403252054')
12341217

1235-
It is not possible to search for and retrieve the DataLink products associated with more than 5000 sources in one and the same call.
1236-
However, it is possible to overcome this limit programmatically using a sequential download.
1218+
A fits file is made if no file name is provided.
12371219

12381220
.. _DataLink: https://www.ivoa.net/documents/DataLink/
12391221

0 commit comments

Comments
 (0)