@@ -82,33 +82,45 @@ However, only one wildcarded value can be processed per criterion.
82
82
83
83
RA and Dec must be given in decimal degrees, and datetimes in MJD.
84
84
85
+ `~astroquery.mast.ObservationsClass.query_criteria ` can be used to perform non-positional criteria queries.
86
+
85
87
.. doctest-remote-data ::
86
88
87
89
>>> from astroquery.mast import Observations
88
90
...
89
- >>> obs_table = Observations.query_criteria(dataproduct_type = [" image" ],
90
- ... proposal_pi= " Osten*" ,
91
- ... s_dec= [43.5 ,45.5 ])
92
- >>> print (obs_table) # doctest: +IGNORE_OUTPUT
93
- dataproduct_type calib_level obs_collection ... intentType obsid objID
94
- ---------------- ----------- -------------- ... ---------- ---------- ----------
95
- image 1 HST ... science 2003520267 2023816094
96
- image 1 HST ... science 2003520266 2023816134
97
- image 1 HST ... science 2003520268 2025756935
98
- ...
99
- >>> obs_table = Observations.query_criteria(filters = [" *UV" ," Kepler" ],
100
- ... objectname= " M10" ,
91
+ >>> obs_table = Observations.query_criteria(dataproduct_type = " image" ,
92
+ ... proposal_pi= " Osten*" )
93
+ >>> print (obs_table[:5 ]) # doctest: +IGNORE_OUTPUT
94
+ intentType obs_collection provenance_name ... srcDen obsid objID
95
+ ---------- -------------- --------------- ... ------ -------- ---------
96
+ science HST CALCOS ... nan 24139596 144540274
97
+ science HST CALCOS ... nan 24139591 144540276
98
+ science HST CALCOS ... nan 24139580 144540277
99
+ science HST CALCOS ... nan 24139597 144540280
100
+ science HST CALCOS ... nan 24139575 144540281
101
+ ...
102
+
103
+ You can also perform positional queries with additional criteria by passing in ``objectname ``, ``coordinates ``,
104
+ and/or ``radius `` as keyword arguments.
105
+
106
+ .. doctest-remote-data ::
107
+
108
+ >>> from astroquery.mast import Observations
109
+ ...
110
+ >>> obs_table = Observations.query_criteria(objectname = " M10" ,
111
+ ... radius= " 0.1 deg" ,
112
+ ... filters= [" *UV" ," Kepler" ],
101
113
... obs_collection= " GALEX" )
102
114
>>> print (obs_table) # doctest: +IGNORE_OUTPUT
103
115
intentType obs_collection provenance_name ... objID objID1 distance
104
116
---------- -------------- --------------- ... ----- ------ --------
117
+ science GALEX AIS ... 61675 61675 0.0
105
118
science GALEX GII ... 7022 7022 0.0
106
- science GALEX GII ... 7023 7023 0.0
119
+ science GALEX GII ... 78941 78941 0.0
107
120
science GALEX AIS ... 61673 61673 0.0
108
- science GALEX AIS ... 61674 61674 0.0
109
- science GALEX AIS ... 61675 61675 0.0
121
+ science GALEX GII ... 7023 7023 0.0
110
122
science GALEX AIS ... 61676 61676 0.0
111
- science GALEX GII ... 78941 78941 0.0
123
+ science GALEX AIS ... 61674 61674 0.0
112
124
113
125
We encourage the use of wildcards particularly when querying for JWST instruments
114
126
with the instrument_name criteria. This is because of the varying instrument names
0 commit comments