Skip to content

Commit 19c1e17

Browse files
jcsegoviabsipocz
authored andcommitted
Updated get_product doc examples
1 parent 041ac9b commit 19c1e17

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

docs/jwst/jwst.rst

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,24 @@ To download a data product
177177
.. code-block:: python
178178
179179
>>> from astroquery.jwst import Jwst
180-
>>> output_file = Jwst.get_product(artifact_id='00000000-0000-0000-af91-b0375f07283b')
180+
>>> query="select a.artifactid, a.uri from jwst.artifact a, jwst.plane p where p.planeid=a.planeid and p.obsid='00000000-0000-0000-9c08-f5be8f3df805'"
181+
>>> job = Jwst.launch_job(query)
182+
>>> results = job.get_results()
183+
>>> print(results)
184+
artifactid filename
185+
------------------------------------ ------------------------------------------------
186+
00000000-0000-0000-a4f7-23ab64230444 jw00601004001_02102_00001_nrcb1_rate.fits
187+
00000000-0000-0000-b796-76a61aade312 jw00601004001_02102_00001_nrcb1_rateints.fits
188+
00000000-0000-0000-ad5e-7d388b43ca4b jw00601004001_02102_00001_nrcb1_trapsfilled.fits
189+
00000000-0000-0000-9335-09ff0e02f06b jw00601004001_02102_00001_nrcb1_uncal.fits
190+
00000000-0000-0000-864d-b03ced521884 jw00601004001_02102_00001_nrcb1_uncal.jpg
191+
00000000-0000-0000-9392-45ebdada66be jw00601004001_02102_00001_nrcb1_uncal_thumb.jpg
192+
193+
194+
>>> output_file = Jwst.get_product(artifact_id='00000000-0000-0000-9335-09ff0e02f06b')
195+
>>> output_file = Jwst.get_product(file_name='jw00601004001_02102_00001_nrcb1_uncal.fits')
196+
197+
181198
182199
1.4 Getting public tables
183200
~~~~~~~~~~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)