Skip to content

Commit 73d12b7

Browse files
tinuademargaretbsipocz
authored andcommitted
added remote data directive
1 parent 6400d6c commit 73d12b7

File tree

1 file changed

+42
-46
lines changed

1 file changed

+42
-46
lines changed

docs/gemini/gemini.rst

Lines changed: 42 additions & 46 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
1-
.. doctest-skip-all
2-
31
.. _astroquery.gemini:
42

53
************************************
@@ -19,20 +17,20 @@ Positional queries can be based on a sky position. Radius is an optional parame
1917

2018
.. code-block:: python
2119
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::
2821

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
3634

3735

3836
Observation Name Queries
@@ -41,20 +39,18 @@ Observation Name Queries
4139
You may also do a query by the name of the object you are interested in.
4240

4341
.. code-block:: python
42+
.. doctest-remote-data::
4443

4544
>>> from astroquery.gemini import Observations
46-
4745
>>> data = Observations.query_object(objectname='m101')
4846
>>> 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
5854

5955
Observation Criteria Queries
6056
----------------------------
@@ -69,31 +65,32 @@ and the program ID. For a complete list of available search fields, see
6965
`~astroquery.gemini.ObservationsClass.query_criteria`
7066

7167
.. code-block:: python
68+
.. doctest-remote-data::
7269

7370
>>> from astroquery.gemini import Observations
74-
7571
>>> data = Observations.query_criteria(instrument='GMOS-N',
7672
... program_id='GN-CAL20191122',
7773
... observation_type='BIAS')
7874
>>> 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+
7983

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 ...
8784

8885
In addition, the criteria query can accept additional parameters via the ``*rawqueryargs`` and ``**rawquerykwargs``
8986
optional parameters.
9087

9188
The ``orderby`` parameter can be used to pass the desired sort order.
9289

9390
.. code-block:: python
91+
.. doctest-remote-data::
9492

9593
>>> from astroquery.gemini import Observations
96-
9794
>>> data = Observations.query_criteria('centralspectrum',
9895
... instrument='GMOS-N',
9996
... program_id='GN-CAL20191122',
@@ -121,19 +118,18 @@ terms need be passed into the method. If QA or engineering search terms are pas
121118
the *NotFail* or *notengineering* terms respectively.
122119

123120
.. code-block:: python
121+
.. doctest-remote-data::
124122

125123
>>> from astroquery.gemini import Observations
126-
127124
>>> data = Observations.query_raw('GMOS-N', 'BIAS', progid='GN-CAL20191122')
128125
>>> 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 --
137133

138134

139135
Authenticated Sessions
@@ -144,9 +140,9 @@ with on the GOA homepage at `<https://archive.gemini.edu/>`__. The `astroquery.
144140
method returns `True` if successful.
145141

146142
.. code-block:: python
143+
.. doctest-skip::
147144

148145
>>> from astroquery.gemini import Observations
149-
150146
>>> Observations.login(username, password)
151147
>>> # do something with your elevated access
152148

@@ -159,10 +155,10 @@ URL and fetches the file. It will use any authenticated session you may have, s
159155
proprietary data you may be permissioned for.
160156

161157
.. code-block:: python
158+
.. doctest-skip::
162159

163160
>>> 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
166162

167163

168164
Reference/API

0 commit comments

Comments
 (0)