@@ -19,11 +19,11 @@ Positional queries can be based on a sky position. Radius is an optional parame
19
19
20
20
.. code-block :: python
21
21
22
- >> > from astroquery.gemini import Observations
22
+ >> > from astroquery.gemini import GeminiObservations
23
23
>> > from astropy import coordinates, units
24
24
25
25
>> > coord = coordinates.SkyCoord(210.80242917 , 54.34875 , unit = " deg" )
26
- >> > data = Observations .query_region(coordinates = coord, radius = 0.3 * units.deg)
26
+ >> > data = GeminiObservations .query_region(coordinates = coord, radius = 0.3 * units.deg)
27
27
>> > print (data[0 :5 ])
28
28
29
29
exposure_time detector_roi_setting detector_welldepth_setting telescope ...
@@ -42,9 +42,9 @@ You may also do a query by the name of the object you are interested in.
42
42
43
43
.. code-block :: python
44
44
45
- >> > from astroquery.gemini import Observations
45
+ >> > from astroquery.gemini import GeminiObservations
46
46
47
- >> > data = Observations .query_object(objectname = ' m101' )
47
+ >> > data = GeminiObservations .query_object(objectname = ' m101' )
48
48
>> > print (data[0 :5 ])
49
49
50
50
exposure_time detector_roi_setting detector_welldepth_setting telescope ...
@@ -59,18 +59,18 @@ You may also do a query by the name of the object you are interested in.
59
59
Observation Criteria Queries
60
60
----------------------------
61
61
62
- Additional search terms are available as optional arguments to the `~astroquery.gemini.ObservationsClass .query_criteria `
62
+ Additional search terms are available as optional arguments to the `~astroquery.gemini.GeminiObservationsClass .query_criteria `
63
63
call. These all have default values of None, in which case they will not be considered during the search.
64
64
65
65
Some examples of available search fields are the instrument used, such as GMOS-N, the observation_type, such as BIAS,
66
66
and the program ID. For a complete list of available search fields, see
67
- `~astroquery.gemini.ObservationsClass .query_criteria `
67
+ `~astroquery.gemini.GeminiObservationsClass .query_criteria `
68
68
69
69
.. code-block :: python
70
70
71
- >> > from astroquery.gemini import Observations
71
+ >> > from astroquery.gemini import GeminiObservations
72
72
73
- >> > data = Observations .query_criteria(instrument = ' GMOS-N' ,
73
+ >> > data = GeminiObservations .query_criteria(instrument = ' GMOS-N' ,
74
74
... program_id = ' GN-CAL20191122' ,
75
75
... observation_type = ' BIAS' )
76
76
>> > print (data[0 :5 ])
@@ -90,9 +90,9 @@ The ``orderby`` parameter can be used to pass the desired sort order.
90
90
91
91
.. code-block :: python
92
92
93
- >> > from astroquery.gemini import Observations
93
+ >> > from astroquery.gemini import GeminiObservations
94
94
95
- >> > data = Observations .query_criteria(' centralspectrum' ,
95
+ >> > data = GeminiObservations .query_criteria(' centralspectrum' ,
96
96
... instrument = ' GMOS-N' ,
97
97
... program_id = ' GN-CAL20191122' ,
98
98
... observation_type = ' BIAS' ,
@@ -118,9 +118,9 @@ terms need be passed into the method.
118
118
119
119
.. code-block :: python
120
120
121
- >> > from astroquery.gemini import Observations
121
+ >> > from astroquery.gemini import GeminiObservations
122
122
123
- >> > data = Observations .query_raw(' GMOS-N' , ' BIAS' , progid = ' GN-CAL20191122' )
123
+ >> > data = GeminiObservations .query_raw(' GMOS-N' , ' BIAS' , progid = ' GN-CAL20191122' )
124
124
>> > print (data[0 :5 ])
125
125
126
126
exposure_time detector_roi_setting detector_welldepth_setting telescope mdready ...
@@ -136,14 +136,14 @@ Authenticated Sessions
136
136
----------------------
137
137
138
138
The Gemini module allows for authenticated sessions using your GOA account. This is the same account you login
139
- with on the GOA homepage at `<https://archive.gemini.edu/ >`__. The `astroquery.gemini.ObservationsClass .login `
139
+ with on the GOA homepage at `<https://archive.gemini.edu/ >`__. The `astroquery.gemini.GeminiObservationsClass .login `
140
140
method returns `True ` if successful.
141
141
142
142
.. code-block :: python
143
143
144
- >> > from astroquery.gemini import Observations
144
+ >> > from astroquery.gemini import GeminiObservations
145
145
146
- >> > Observations .login(username, password)
146
+ >> > GeminiObservations .login(username, password)
147
147
>> > # do something with your elevated access
148
148
149
149
@@ -156,9 +156,9 @@ proprietary data you may be permissioned for.
156
156
157
157
.. code-block :: python
158
158
159
- >> > from astroquery.gemini import Observations
159
+ >> > from astroquery.gemini import GeminiObservations
160
160
161
- >> > Observations .get_file(" GS2020AQ319-10.fits" , download_dir = " /tmp" )
161
+ >> > GeminiObservations .get_file(" GS2020AQ319-10.fits" , download_dir = " /tmp" )
162
162
163
163
164
164
Reference/API
0 commit comments