@@ -25,7 +25,7 @@ The CADC hosts a number of collections and
25
25
`~astroquery.cadc.CadcClass.get_collections ` returns a list of all
26
26
these collections:
27
27
28
- .. code-block :: python
28
+
29
29
.. doctest-remote-data ::
30
30
31
31
>>> from astroquery.cadc import Cadc
@@ -77,7 +77,7 @@ region or by name. The following example queries CADC for Canada
77
77
France Hawaii Telescope (CFHT) data for a given region and resolves
78
78
the URLs for downloading the corresponding data.
79
79
80
- .. code-block :: python
80
+
81
81
.. doctest-remote-data ::
82
82
83
83
>>> from astroquery.cadc import Cadc
@@ -118,7 +118,7 @@ the results on the name of the target (as an example - any other
118
118
filtering possible) and resolves the URLs for both the primary and
119
119
auxiliary data (in this case preview files)
120
120
121
- .. code-block :: python
121
+
122
122
.. doctest-remote-data ::
123
123
124
124
>>> from astroquery.cadc import Cadc
@@ -145,7 +145,7 @@ CADC data can also be queried on the target name. Note that the name
145
145
is not resolved. Instead it is matched against the target name in
146
146
the CADC metadata.
147
147
148
- .. code-block :: python
148
+
149
149
.. doctest-remote-data ::
150
150
151
151
>>> from astroquery.cadc import Cadc
@@ -165,7 +165,7 @@ the CADC metadata.
165
165
If only a subsection of the FITS file is needed, CADC can query an
166
166
area and resolve the cutout of a result.
167
167
168
- .. code-block :: python
168
+
169
169
.. doctest-skip ::
170
170
171
171
>>> from astropy import units as u
@@ -182,7 +182,7 @@ area and resolve the cutout of a result.
182
182
Alternatively, if the query result is large and data does not need to be
183
183
in memory, lazy access to the downloaded FITS file can be used.
184
184
185
- .. code-block :: python
185
+
186
186
.. doctest-remote-data ::
187
187
188
188
>>> from astropy import units as u
@@ -210,7 +210,7 @@ are needed, the result table can be passed into the
210
210
`~astroquery.cadc.CadcClass.get_image_list ` function, along with the
211
211
cutout coordinates and radius.
212
212
213
- .. code-block :: python
213
+
214
214
.. doctest-remote-data ::
215
215
216
216
>>> from astroquery.cadc import Cadc
@@ -239,6 +239,7 @@ interfaces offer a quick and simple access to the data, the TAP
239
239
interface presented in the next sections allows for more complex
240
240
queries.
241
241
242
+
242
243
=============================
243
244
Query CADC metadata using TAP
244
245
=============================
@@ -315,7 +316,7 @@ Examples of TAP access
315
316
316
317
To get a list of table objects:
317
318
318
- .. code-block :: python
319
+
319
320
.. doctest-remote-data ::
320
321
321
322
@@ -354,7 +355,7 @@ To get a list of table objects:
354
355
355
356
To get a single table object:
356
357
357
- .. code-block :: python
358
+
358
359
.. doctest-remote-data ::
359
360
360
361
>>> from astroquery.cadc import Cadc
@@ -428,7 +429,7 @@ The results can be saved in memory (default) or in a file.
428
429
429
430
Query without saving results in a file:
430
431
431
- .. code-block :: python
432
+
432
433
.. doctest-remote-data ::
433
434
434
435
>>> from astroquery.cadc import Cadc
@@ -449,7 +450,7 @@ Query without saving results in a file:
449
450
450
451
Query saving results in a file:
451
452
452
- .. code-block :: python
453
+
453
454
.. doctest-skip ::
454
455
455
456
>>> from astroquery.cadc import Cadc
@@ -463,7 +464,7 @@ Query saving results in a file:
463
464
464
465
A table can be uploaded to the server in order to be used in a query.
465
466
466
- .. code-block :: python
467
+
467
468
.. doctest-skip ::
468
469
469
470
>>> from astroquery.cadc import Cadc
@@ -491,7 +492,7 @@ The results can be saved in memory (default) or in a file.
491
492
492
493
Query without saving results in a file:
493
494
494
- .. code-block :: python
495
+
495
496
.. doctest-remote-data ::
496
497
497
498
>>> from astroquery.cadc import Cadc
@@ -525,16 +526,15 @@ Query without saving results in a file:
525
526
GS-CAL20181117-2-061-G-BIAS calibration
526
527
GS-CAL20181018-10-086-G-BIAS calibration
527
528
Length = 100 rows
528
-
529
+
529
530
530
531
1.7 Load job
531
- ~~~~~~~~~~~~~~~~~~~~~~
532
+ ~~~~~~~~~~~~
532
533
533
534
Asynchronous jobs can be loaded. You need the jobid in order to load
534
535
the job.
535
536
536
537
537
- .. code-block :: python
538
538
.. doctest-remote-data ::
539
539
540
540
>>> from astroquery.cadc import Cadc
@@ -582,9 +582,9 @@ the job.
582
582
Length = 100 rows
583
583
584
584
585
- ---------------------------
585
+ -----------------------
586
586
2. Authenticated access
587
- ---------------------------
587
+ -----------------------
588
588
589
589
Some capabilities (shared tables, persistent jobs, etc.) are only
590
590
available to authenticated users.
@@ -614,7 +614,6 @@ users are applicable for authenticated ones.
614
614
615
615
Login with username and password:
616
616
617
- .. code-block :: python
618
617
.. doctest-skip ::
619
618
620
619
>>> from astroquery.cadc import Cadc
@@ -624,7 +623,6 @@ Login with username and password:
624
623
625
624
Login with certificate:
626
625
627
- .. code-block :: python
628
626
.. doctest-skip ::
629
627
630
628
>>> from astroquery.cadc import Cadc
@@ -635,13 +633,13 @@ Login with certificate:
635
633
To perform a logout:
636
634
637
635
638
- .. code-block :: python
639
636
.. doctest-skip ::
640
637
641
638
>>> from astroquery.cadc import Cadc
642
639
>>> cadc = Cadc()
643
640
>>> cadc.logout()
644
641
642
+
645
643
Reference/API
646
644
=============
647
645
0 commit comments