@@ -41,7 +41,7 @@ these collections:
41
41
TESS : {'Description': 'The TESS collection at the CADC', 'Bands': ['Optical']}
42
42
UKIRT : {'Description': 'The UKIRT collection at the CADC', 'Bands': ['Infrared|Optical', '', 'Optical', 'Infrared']}
43
43
VGPS : {'Description': 'The VGPS collection at the CADC', 'Bands': ['Radio']}
44
- VLASS : {'Description': 'The VLASS collection at the CADC', 'Bands': ['', ' Radio']}
44
+ VLASS : {'Description': 'The VLASS collection at the CADC', 'Bands': ['Radio']}
45
45
WALLABY : {'Description': 'The WALLABY collection at the CADC', 'Bands': ['Radio']}
46
46
XMM : {'Description': 'The XMM collection at the CADC', 'Bands': ['Optical', 'UV', 'X-ray']}
47
47
@@ -51,7 +51,7 @@ region or by name. The following example queries CADC for Canada
51
51
France Hawaii Telescope (CFHT) data for a given region and resolves
52
52
the URLs for downloading the corresponding data.
53
53
54
-
54
+ .. Remove IGNORE_WARNINGS once https://github.com/astropy/astroquery/issues/2523 is fixed
55
55
.. doctest-remote-data ::
56
56
57
57
>>> from astroquery.cadc import Cadc
@@ -73,7 +73,7 @@ the URLs for downloading the corresponding data.
73
73
caom:CFHT/2583703 2583703 ... 2021-02-26T10:37:42.355
74
74
caom:CFHT/2376828 2376828 ... 2021-09-01T23:48:18.790
75
75
caom:CFHT/2376828 2376828 ... 2021-09-01T23:48:18.790
76
- >>> urls = cadc.get_data_urls(result)
76
+ >>> urls = cadc.get_data_urls(result) # doctest: +IGNORE_WARNINGS
77
77
>>> for url in urls:
78
78
... print (url) # doctest: +IGNORE_OUTPUT
79
79
...
@@ -92,14 +92,14 @@ the results on the name of the target (as an example - any other
92
92
filtering possible) and resolves the URLs for both the primary and
93
93
auxiliary data (in this case preview files)
94
94
95
-
95
+ .. Remove IGNORE_WARNINGS once https://github.com/astropy/astroquery/issues/2523 is fixed
96
96
.. doctest-remote-data ::
97
97
98
98
>>> from astroquery.cadc import Cadc
99
99
>>> cadc = Cadc()
100
100
>>> result = cadc.query_region(' 08h45m07.5s +54d18m00s' )
101
101
>>> urls = cadc.get_data_urls(result[result[' target_name' ] == ' Nr3491_1' ],
102
- ... include_auxiliaries= True )
102
+ ... include_auxiliaries= True ) # doctest: +IGNORE_WARNINGS
103
103
>>> for url in urls:
104
104
... print (url) # doctest: +IGNORE_OUTPUT
105
105
...
@@ -136,15 +136,15 @@ the CADC metadata.
136
136
If only a subsection of the FITS file is needed, CADC can query an
137
137
area and resolve the cutout of a result.
138
138
139
-
139
+ .. Remove IGNORE_WARNINGS once https://github.com/astropy/astroquery/issues/2523 is fixed
140
140
.. doctest-remote-data ::
141
141
142
142
>>> from astropy import units as u
143
143
>>> from astroquery.cadc import Cadc
144
144
>>> cadc = Cadc()
145
145
>>> coords = ' 01h45m07.5s +23d18m00s'
146
146
>>> radius = 0.01 * u.deg
147
- >>> images = cadc.get_images(coords, radius, collection = ' CFHT' )
147
+ >>> images = cadc.get_images(coords, radius, collection = ' CFHT' ) # doctest: +IGNORE_WARNINGS
148
148
>>> images # doctest: +IGNORE_OUTPUT
149
149
[<astropy.io.fits.hdu.image.PrimaryHDU object at 0x7f3805a06ef0>]
150
150
[<astropy.io.fits.hdu.image.PrimaryHDU object at 0x7f3805b23b38>]
@@ -153,7 +153,7 @@ area and resolve the cutout of a result.
153
153
Alternatively, if the query result is large and data does not need to be
154
154
in memory, lazy access to the downloaded FITS file can be used.
155
155
156
-
156
+ .. Remove IGNORE_WARNINGS once https://github.com/astropy/astroquery/issues/2523 is fixed
157
157
.. doctest-remote-data ::
158
158
159
159
>>> from astropy import units as u
@@ -162,7 +162,7 @@ in memory, lazy access to the downloaded FITS file can be used.
162
162
>>> cadc = Cadc()
163
163
>>> coords = SkyCoord(10 , 20 , unit = ' deg' )
164
164
>>> radius = 0.01 * u.deg
165
- >>> readable_objs = cadc.get_images_async(coords, radius, collection = ' CFHT' )
165
+ >>> readable_objs = cadc.get_images_async(coords, radius, collection = ' CFHT' ) # doctest: +IGNORE_WARNINGS
166
166
>>> readable_objs # doctest: +IGNORE_OUTPUT
167
167
Downloaded object from URL https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/caom2ops/sync?ID=ad%3ACFHT%2F2234132o.fits.fz&RUNID=pot39nwwtaht03wc&POS=CIRCLE+26.2812589776878+23.299999818906816+0.01 with ID 140045451168112
168
168
Downloaded object from URL https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/caom2ops/sync?ID=ad%3ACFHT%2F2368279p.fits.fz&RUNID=pot39nwwtaht03wc&POS=CIRCLE+26.2812589776878+23.299999818906816+0.01 with ID 140045451142576
@@ -181,7 +181,7 @@ are needed, the result table can be passed into the
181
181
`~astroquery.cadc.CadcClass.get_image_list ` function, along with the
182
182
cutout coordinates and radius.
183
183
184
-
184
+ .. Remove IGNORE_WARNINGS once https://github.com/astropy/astroquery/issues/2523 is fixed
185
185
.. doctest-remote-data ::
186
186
187
187
>>> from astroquery.cadc import Cadc
@@ -191,7 +191,7 @@ cutout coordinates and radius.
191
191
>>> radius = 0.1 * u.deg
192
192
>>> results = cadc.query_region(coords, radius, collection = ' CFHT' )
193
193
>>> filtered_results = results[results[' time_exposure' ] > 120.0 ]
194
- >>> image_list = cadc.get_image_list(filtered_results, coords, radius)
194
+ >>> image_list = cadc.get_image_list(filtered_results, coords, radius) # doctest: +IGNORE_WARNINGS
195
195
>>> print (image_list) # doctest: +IGNORE_OUTPUT
196
196
['https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/caom2ops/sync?ID=ad%3ACFHT%2F2368278o.fits.fz&RUNID=dbuswaj4zwruzi92&POS=CIRCLE+26.2812589776878+23.299999818906816+0.1',
197
197
'https://www.cadc-ccda.hia-iha.nrc-cnrc.gc.ca/caom2ops/sync?ID=ad%3ACFHT%2F2368278p.fits.fz&RUNID=dbuswaj4zwruzi92&POS=CIRCLE+26.2812589776878+23.299999818906816+0.1',
0 commit comments