@@ -236,7 +236,7 @@ Simple image access queries
236
236
237
237
`~astroquery.ipac.irsa.IrsaClass.query_sia ` provides a way to access IRSA's Simple
238
238
Image Access VO service. In the following example we are looking for Spitzer
239
- Enhanced Imaging products in the centre of the COSMOS field as an `~astropy.table.Table `.
239
+ Enhanced Imaging products in the centre of the COSMOS field as a `~astropy.table.QTable `.
240
240
241
241
.. doctest-remote-data ::
242
242
@@ -245,7 +245,7 @@ Enhanced Imaging products in the centre of the COSMOS field as an `~astropy.tabl
245
245
>>> from astropy import units as u
246
246
>>>
247
247
>>> coord = SkyCoord(' 150.01d 2.2d' , frame = ' icrs' )
248
- >>> spitzer_images = Irsa.query_sia(pos = (coord, 1 * u.arcmin), collection = ' spitzer_seip' ).to_table()
248
+ >>> spitzer_images = Irsa.query_sia(pos = (coord, 1 * u.arcmin), collection = ' spitzer_seip' )
249
249
250
250
To list available collections for SIA queries, the
251
251
`~astroquery.ipac.irsa.IrsaClass.list_collections ` method is provided, and
@@ -307,7 +307,7 @@ Now plot the cutout.
307
307
from astropy.wcs import WCS
308
308
import matplotlib.pyplot as plt
309
309
coord = SkyCoord('150.01d 2.2d', frame='icrs')
310
- spitzer_images = Irsa.query_sia(pos=(coord, 1 * u.arcmin), collection='spitzer_seip').to_table()
310
+ spitzer_images = Irsa.query_sia(pos=(coord, 1 * u.arcmin), collection='spitzer_seip')
311
311
science_image = spitzer_images[spitzer_images['dataproduct_subtype'] == 'science'][0]
312
312
with fits.open(science_image['access_url'], use_fsspec=True) as hdul:
313
313
cutout = Cutout2D(hdul[0].section, position=coord, size=2 *
@@ -322,7 +322,7 @@ Simple spectral access queries
322
322
323
323
`~astroquery.ipac.irsa.IrsaClass.query_ssa ` provides a way to access IRSA's Simple
324
324
Spectral Access VO service. In the following example we are looking for Spitzer
325
- Enhanced Imaging products in the centre of the COSMOS field as an `~astropy.table.Table `.
325
+ Enhanced Imaging products in the centre of the COSMOS field as a `~astropy.table.QTable `.
326
326
327
327
.. doctest-remote-data ::
328
328
@@ -331,7 +331,7 @@ Enhanced Imaging products in the centre of the COSMOS field as an `~astropy.tabl
331
331
>>> from astropy import units as u
332
332
>>>
333
333
>>> coord = pos = SkyCoord.from_name(' Arp 220' )
334
- >>> arp220_spectra = Irsa.query_ssa(pos = coord).to_table()
334
+ >>> arp220_spectra = Irsa.query_ssa(pos = coord)
335
335
336
336
Without specifying the collection, the query returns results from multiple
337
337
collections. For example this target has spectra from SOFIA as well as from
0 commit comments