Skip to content

Commit 9690b0b

Browse files
committed
DOC: updating docs to remove extra to_table() calls
1 parent a45f343 commit 9690b0b

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

docs/ipac/irsa/irsa.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -236,7 +236,7 @@ Simple image access queries
236236

237237
`~astroquery.ipac.irsa.IrsaClass.query_sia` provides a way to access IRSA's Simple
238238
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`.
240240

241241
.. doctest-remote-data::
242242

@@ -245,7 +245,7 @@ Enhanced Imaging products in the centre of the COSMOS field as an `~astropy.tabl
245245
>>> from astropy import units as u
246246
>>>
247247
>>> 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')
249249

250250
To list available collections for SIA queries, the
251251
`~astroquery.ipac.irsa.IrsaClass.list_collections` method is provided, and
@@ -307,7 +307,7 @@ Now plot the cutout.
307307
from astropy.wcs import WCS
308308
import matplotlib.pyplot as plt
309309
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')
311311
science_image = spitzer_images[spitzer_images['dataproduct_subtype'] == 'science'][0]
312312
with fits.open(science_image['access_url'], use_fsspec=True) as hdul:
313313
cutout = Cutout2D(hdul[0].section, position=coord, size=2 *
@@ -322,7 +322,7 @@ Simple spectral access queries
322322

323323
`~astroquery.ipac.irsa.IrsaClass.query_ssa` provides a way to access IRSA's Simple
324324
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`.
326326

327327
.. doctest-remote-data::
328328

@@ -331,7 +331,7 @@ Enhanced Imaging products in the centre of the COSMOS field as an `~astropy.tabl
331331
>>> from astropy import units as u
332332
>>>
333333
>>> 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)
335335

336336
Without specifying the collection, the query returns results from multiple
337337
collections. For example this target has spectra from SOFIA as well as from

0 commit comments

Comments
 (0)