Skip to content

Commit d677fa1

Browse files
committed
DOC: docs for the list_columns
1 parent 937390f commit d677fa1

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

docs/ipac/irsa/irsa.rst

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -218,6 +218,26 @@ star HIP 12 with just the ra, dec and w1mpro columns would be:
218218
--------- ----------- ------
219219
0.0407905 -35.9602605 4.837
220220

221+
222+
You can use the `~astroquery.ipac.irsa.IrsaClass.list_columns` method to
223+
list all available columns for a given catalog. This method behaves
224+
similarly to what we saw above with ``list_catalogs`` and either returns
225+
pairs of column names and column descriptions; or a full list of information
226+
available about the columns in a `~astropy.table.Table`.
227+
228+
.. doctest-remote-data::
229+
230+
>>> from astroquery.ipac.irsa import Irsa
231+
>>> Irsa.list_columns(catalog="allwise_p3as_psd")
232+
{'designation': 'WISE source designation',
233+
'ra': 'right ascension (J2000)',
234+
'dec': 'declination (J2000)',
235+
'sigra': 'uncertainty in RA',
236+
'sigdec': 'uncertainty in DEC',
237+
...
238+
'htm20': 'HTM20 spatial index key'}
239+
240+
221241
Async queries
222242
--------------
223243

0 commit comments

Comments
 (0)