Skip to content

Commit d7384e3

Browse files
jcsegoviabsipocz
authored andcommitted
Updated doc.
1 parent 71ade97 commit d7384e3

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

docs/jwst/jwst.rst

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,22 @@ To download a data product
200200
201201
To download products by observation identifier
202202

203-
TODO
203+
.. code-block:: python
204+
205+
>>> observation_id = 'jw97012001001_02101_00001_guider1'
206+
>>> results = jwst.get_obs_products(observation_id=observation_id, product_type='science')
207+
208+
209+
Retrieving data.
210+
Done.
211+
Product(s) saved at: /<local_path>/<temporary_directory>/jw97012001001_02101_00001_guider1_all_products
212+
Product = /<local_path>/<temporary_directory>/jw97012001001_02101_00001_guider1
213+
214+
You can use product_type and cal_level arguments to retrieve specific products.
215+
216+
A temporary directory is created with the files and a list of the them is provided.
204217

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

206220
1.4 Getting public tables
207221
~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)