Skip to content

Commit 89c7d3b

Browse files
davidgltbsipocz
authored andcommitted
remote test for product_type parameter as list
1 parent a10a87b commit 89c7d3b

File tree

1 file changed

+11
-1
lines changed

1 file changed

+11
-1
lines changed

docs/esa/jwst/jwst.rst

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -275,15 +275,25 @@ To download a data product
275275
>>> output_file = Jwst.get_product(artifact_id='6ab73824-6587-4bca-84a8-eb48ac7251be') # doctest: +SKIP
276276
>>> output_file = Jwst.get_product(file_name='jw01166091001_02102_00002_nrca3_cal.fits') # doctest: +SKIP
277277

278+
278279
To download products by observation identifier, it is possible to use the get_obs_products function, with the same parameters
279-
than get_product_list, it also supports product_type parameter as string or list.
280+
than get_product_list, it also supports product_type parameter as string or list. product_type as string:
280281

281282
.. doctest-remote-data::
282283

283284
>>> from astroquery.esa.jwst import Jwst
284285
>>> observation_id = 'jw01122001001_0210r_00001_nrs2'
285286
>>> results = Jwst.get_obs_products(observation_id=observation_id, cal_level=2, product_type='science') # doctest: +SKIP
286287

288+
289+
Here product_type as list:
290+
291+
.. doctest-remote-data::
292+
293+
>>> from astroquery.esa.jwst import Jwst
294+
>>> observation_id = 'jw01122001001_0210r_00001_nrs2'
295+
>>> results = Jwst.get_obs_products(observation_id=observation_id, cal_level=2, product_type=['science', 'preview']) # doctest: +SKIP
296+
287297
A temporary directory is created with the files and a list of the them is provided.
288298

289299
When more than one product is found, a tar file is retrieved. This method extracts the products.

0 commit comments

Comments
 (0)