Skip to content

Commit 748b5f1

Browse files
authored
Merge pull request #2759 from jaymedina/mast-docs-jwst-example
Adding JWST wildcard example to docs
2 parents a99ad27 + 1c71ae1 commit 748b5f1

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

docs/mast/mast.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,20 @@ RA and Dec must be given in decimal degrees, and datetimes in MJD.
134134
image 2 GALEX ... 1000055044 0.0
135135
image 2 GALEX ... 1000055047 229.81061601101433
136136

137+
We encourage the use of wildcards particularly when querying for JWST instruments
138+
with the instrument_name criteria. This is because of the varying instrument names
139+
for JWST science instruments, which you can read more about on the MAST page for
140+
`JWST Instrument Names <https://outerspace.stsci.edu/display/MASTDOCS/JWST+Instrument+Names>`__.
141+
142+
.. doctest-remote-data::
143+
144+
>>> from astroquery.mast import Observations
145+
...
146+
>>> obs_table = Observations.query_criteria(proposal_pi="Espinoza, Nestor",
147+
... instrument_name="NIRISS*")
148+
>>> set(obs_table['instrument_name']) # doctest: +IGNORE_OUTPUT
149+
{'NIRISS', 'NIRISS/IMAGE', 'NIRISS/SOSS'}
150+
137151

138152
Getting Observation Counts
139153
--------------------------

0 commit comments

Comments
 (0)