1
- .. doctest-skip-all
2
-
3
1
.. _astroquery.gemini :
4
2
5
3
************************************
@@ -19,20 +17,20 @@ Positional queries can be based on a sky position. Radius is an optional parame
19
17
20
18
.. code-block :: python
21
19
22
- >> > from astroquery.gemini import Observations
23
- >> > from astropy import coordinates, units
24
-
25
- >> > coord = coordinates.SkyCoord(210.80242917 , 54.34875 , unit = " deg" )
26
- >> > data = Observations.query_region(coordinates = coord, radius = 0.3 * units.deg)
27
- >> > print (data[0 :5 ])
20
+ .. doctest-remote-data ::
28
21
29
- exposure_time detector_roi_setting detector_welldepth_setting telescope ...
30
- ------------ - -------------------- -------------------------- ------------ ...
31
- 119.9986 Full Frame -- Gemini- North ...
32
- 119.9983 Full Frame -- Gemini- North ...
33
- 119.9986 Full Frame -- Gemini- North ...
34
- 119.9983 Full Frame -- Gemini- North ...
35
- 99.9983 Full Frame -- Gemini- North ...
22
+ >>> from astroquery.gemini import Observations
23
+ >>> from astropy import coordinates, units
24
+ >>> coord = coordinates.SkyCoord(210.80242917 , 54.34875 , unit = " deg" )
25
+ >>> data = Observations.query_region(coordinates = coord, radius = 0.3 * units.deg)
26
+ >>> print (data[0 :5 ])
27
+ exposure_time detector_roi_setting ... release dec
28
+ ------------- -------------------- ... ---------- ---------------
29
+ 119.9986 Full Frame ... 2008-08-21 54.34877772501
30
+ 119.9983 Full Frame ... 2008-09-25 54.376194395654
31
+ 119.9986 Full Frame ... 2008-09-25 54.366916626746
32
+ 119.9983 Full Frame ... 2008-09-25 54.274527402457
33
+ 99.9983 Full Frame ... 2013-08-16 54.307561057825
36
34
37
35
38
36
Observation Name Queries
@@ -41,20 +39,18 @@ Observation Name Queries
41
39
You may also do a query by the name of the object you are interested in.
42
40
43
41
.. code-block :: python
42
+ .. doctest-remote-data ::
44
43
45
44
>>> from astroquery.gemini import Observations
46
-
47
45
>>> data = Observations.query_object(objectname = ' m101' )
48
46
>>> print (data[0 :5 ])
49
-
50
- exposure_time detector_roi_setting detector_welldepth_setting telescope ...
51
- ------------ - -------------------- -------------------------- ------------ ...
52
- 119.9986 Full Frame -- Gemini- North ...
53
- 119.9983 Full Frame -- Gemini- North ...
54
- 119.9986 Full Frame -- Gemini- North ...
55
- 119.9983 Full Frame -- Gemini- North ...
56
- 99.9983 Full Frame -- Gemini- North ...
57
-
47
+ exposure_time detector_roi_setting ... release dec
48
+ ------------- -------------------- ... ---------- ---------------
49
+ -- Undefined ... 2013-12-21 --
50
+ -- Undefined ... 2013-12-21 --
51
+ 49.9987 Full Frame ... 2013-08-28 54.348777039949
52
+ 49.9987 Full Frame ... 2013-08-28 54.346975563951
53
+ 49.9989 Full Frame ... 2013-08-28 54.347048438693
58
54
59
55
Observation Criteria Queries
60
56
----------------------------
@@ -69,31 +65,32 @@ and the program ID. For a complete list of available search fields, see
69
65
`~astroquery.gemini.ObservationsClass.query_criteria `
70
66
71
67
.. code-block :: python
68
+ .. doctest-remote-data ::
72
69
73
70
>>> from astroquery.gemini import Observations
74
-
75
71
>>> data = Observations.query_criteria(instrument = ' GMOS-N' ,
76
72
... program_id= ' GN-CAL20191122' ,
77
73
... observation_type= ' BIAS' )
78
74
>>> print (data[0 :5 ])
75
+ exposure_time detector_roi_setting detector_welldepth_setting ... release dec
76
+ ------------- -------------------- -------------------------- ... ---------- ---
77
+ 0.0 Central Stamp -- ... 2019-11-22 --
78
+ 0.0 Full Frame -- ... 2019-11-22 --
79
+ 0.0 Full Frame -- ... 2019-11-22 --
80
+ 0.0 Full Frame -- ... 2019-11-22 --
81
+ 0.0 Full Frame -- ... 2019-11-22 --
82
+
79
83
80
- exposure_time detector_roi_setting detector_welldepth_setting telescope mdready ...
81
- ------------ - -------------------- -------------------------- ------------ ------ - ...
82
- 0.0 Central Stamp -- Gemini- North True ...
83
- 0.0 Full Frame -- Gemini- North True ...
84
- 0.0 Full Frame -- Gemini- North True ...
85
- 0.0 Full Frame -- Gemini- North True ...
86
- 0.0 Full Frame -- Gemini- North True ...
87
84
88
85
In addition, the criteria query can accept additional parameters via the ``*rawqueryargs `` and ``**rawquerykwargs ``
89
86
optional parameters.
90
87
91
88
The ``orderby `` parameter can be used to pass the desired sort order.
92
89
93
90
.. code-block :: python
91
+ .. doctest-remote-data ::
94
92
95
93
>>> from astroquery.gemini import Observations
96
-
97
94
>>> data = Observations.query_criteria(' centralspectrum' ,
98
95
... instrument= ' GMOS-N' ,
99
96
... program_id= ' GN-CAL20191122' ,
@@ -121,19 +118,18 @@ terms need be passed into the method. If QA or engineering search terms are pas
121
118
the *NotFail * or *notengineering * terms respectively.
122
119
123
120
.. code-block :: python
121
+ .. doctest-remote-data ::
124
122
125
123
>>> from astroquery.gemini import Observations
126
-
127
124
>>> data = Observations.query_raw(' GMOS-N' , ' BIAS' , progid = ' GN-CAL20191122' )
128
125
>>> print (data[0 :5 ])
129
-
130
- exposure_time detector_roi_setting detector_welldepth_setting telescope mdready ...
131
- ------------ - -------------------- -------------------------- ------------ ------ - ...
132
- 0.0 Central Stamp -- Gemini- North True ...
133
- 0.0 Full Frame -- Gemini- North True ...
134
- 0.0 Full Frame -- Gemini- North True ...
135
- 0.0 Full Frame -- Gemini- North True ...
136
- 0.0 Full Frame -- Gemini- North True ...
126
+ exposure_time detector_roi_setting detector_welldepth_setting ... release dec
127
+ ------------- -------------------- -------------------------- ... ---------- ---
128
+ 0.0 Central Stamp -- ... 2019-11-22 --
129
+ 0.0 Full Frame -- ... 2019-11-22 --
130
+ 0.0 Full Frame -- ... 2019-11-22 --
131
+ 0.0 Full Frame -- ... 2019-11-22 --
132
+ 0.0 Full Frame -- ... 2019-11-22 --
137
133
138
134
139
135
Authenticated Sessions
@@ -144,9 +140,9 @@ with on the GOA homepage at `<https://archive.gemini.edu/>`__. The `astroquery.
144
140
method returns `True ` if successful.
145
141
146
142
.. code-block :: python
143
+ .. doctest-skip ::
147
144
148
145
>>> from astroquery.gemini import Observations
149
-
150
146
>>> Observations.login(username, password)
151
147
>>> # do something with your elevated access
152
148
@@ -159,10 +155,10 @@ URL and fetches the file. It will use any authenticated session you may have, s
159
155
proprietary data you may be permissioned for.
160
156
161
157
.. code-block :: python
158
+ .. doctest-skip ::
162
159
163
160
>>> from astroquery.gemini import Observations
164
-
165
- >> > Observations.get_file(" GS2020AQ319-10.fits" , download_dir = " /tmp" )
161
+ >>> Observations.get_file(" GS2020AQ319-10.fits" , download_dir = " /tmp" ) # doctest: +REMOTE_DATA
166
162
167
163
168
164
Reference/API
0 commit comments