1
- .. doctest-skip-all
2
-
3
1
.. _astroquery.gemini :
4
2
5
3
************************************
@@ -12,48 +10,46 @@ Getting Started
12
10
This module can be used to query the Gemini Archive. Below are examples of querying the data with various
13
11
parameters.
14
12
13
+
15
14
Positional Queries
16
15
------------------
17
16
18
17
Positional queries can be based on a sky position. Radius is an optional parameter and the default is 0.3 degrees.
19
18
20
- .. code-block :: python
21
19
22
- >> > from astroquery.gemini import Observations
23
- >> > from astropy import coordinates, units
20
+ .. doctest-remote-data ::
24
21
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 ])
28
-
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
39
37
------------------------
40
38
41
39
You may also do a query by the name of the object you are interested in.
42
40
43
- .. code-block :: python
41
+ .. doctest-remote-data ::
44
42
45
43
>>> from astroquery.gemini import Observations
46
-
47
44
>>> data = Observations.query_object(objectname = ' m101' )
48
45
>>> 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 ...
46
+ exposure_time detector_roi_setting ... release dec
47
+ ------------- -------------------- ... ---------- ---------------
48
+ -- Undefined ... 2013-12-21 --
49
+ -- Undefined ... 2013-12-21 --
50
+ 49.9987 Full Frame ... 2013-08-28 54.348777039949
51
+ 49.9987 Full Frame ... 2013-08-28 54.346975563951
52
+ 49.9989 Full Frame ... 2013-08-28 54.347048438693
57
53
58
54
59
55
Observation Criteria Queries
@@ -68,32 +64,31 @@ Some examples of available search fields are the instrument used, such as GMOS-N
68
64
and the program ID. For a complete list of available search fields, see
69
65
`~astroquery.gemini.ObservationsClass.query_criteria `
70
66
71
- .. code-block :: python
67
+ .. doctest-remote-data ::
72
68
73
69
>>> from astroquery.gemini import Observations
74
-
75
70
>>> data = Observations.query_criteria(instrument = ' GMOS-N' ,
76
71
... program_id= ' GN-CAL20191122' ,
77
72
... observation_type= ' BIAS' )
78
73
>>> print (data[0 :5 ])
74
+ exposure_time detector_roi_setting detector_welldepth_setting ... release dec
75
+ ------------- -------------------- -------------------------- ... ---------- ---
76
+ 0.0 Central Stamp -- ... 2019-11-22 --
77
+ 0.0 Full Frame -- ... 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
+
79
82
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
83
88
84
In addition, the criteria query can accept additional parameters via the ``*rawqueryargs `` and ``**rawquerykwargs ``
89
85
optional parameters.
90
86
91
87
The ``orderby `` parameter can be used to pass the desired sort order.
92
88
93
- .. code-block :: python
89
+ .. doctest-remote-data ::
94
90
95
91
>>> from astroquery.gemini import Observations
96
-
97
92
>>> data = Observations.query_criteria(' centralspectrum' ,
98
93
... instrument= ' GMOS-N' ,
99
94
... program_id= ' GN-CAL20191122' ,
@@ -120,20 +115,18 @@ Note that *NotFail*, *notengineering*, *RAW*, and *cols* are all sent automatica
120
115
terms need be passed into the method. If QA or engineering search terms are passed, those will replace
121
116
the *NotFail * or *notengineering * terms respectively.
122
117
123
- .. code-block :: python
118
+ .. doctest-remote-data ::
124
119
125
120
>>> from astroquery.gemini import Observations
126
-
127
121
>>> data = Observations.query_raw(' GMOS-N' , ' BIAS' , progid = ' GN-CAL20191122' )
128
122
>>> 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 ...
123
+ exposure_time detector_roi_setting detector_welldepth_setting ... release dec
124
+ ------------- -------------------- -------------------------- ... ---------- ---
125
+ 0.0 Central Stamp -- ... 2019-11-22 --
126
+ 0.0 Full Frame -- ... 2019-11-22 --
127
+ 0.0 Full Frame -- ... 2019-11-22 --
128
+ 0.0 Full Frame -- ... 2019-11-22 --
129
+ 0.0 Full Frame -- ... 2019-11-22 --
137
130
138
131
139
132
Authenticated Sessions
@@ -143,10 +136,9 @@ The Gemini module allows for authenticated sessions using your GOA account. Thi
143
136
with on the GOA homepage at `<https://archive.gemini.edu/ >`__. The `astroquery.gemini.ObservationsClass.login `
144
137
method returns `True ` if successful.
145
138
146
- .. code-block :: python
139
+ .. doctest-skip ::
147
140
148
141
>>> from astroquery.gemini import Observations
149
-
150
142
>>> Observations.login(username, password)
151
143
>>> # do something with your elevated access
152
144
@@ -158,11 +150,10 @@ As a convenience, you can request file downloads directly from the Gemini module
158
150
URL and fetches the file. It will use any authenticated session you may have, so it will retrieve any
159
151
proprietary data you may be permissioned for.
160
152
161
- .. code-block :: python
153
+ .. doctest-remote-data ::
162
154
163
155
>>> from astroquery.gemini import Observations
164
-
165
- >> > Observations.get_file(" GS2020AQ319-10.fits" , download_dir = " /tmp" )
156
+ >>> Observations.get_file(" GS2020AQ319-10.fits" , download_dir = " /tmp" ) # doctest: +IGNORE_OUTPUT
166
157
167
158
168
159
Reference/API
0 commit comments