@@ -126,18 +126,19 @@ def query_crossid_async(self, coordinates, *, radius=5. * u.arcsec, timeout=TIME
126
126
cache : bool, optional
127
127
If ``True`` use the request caching mechanism.
128
128
129
- Returns
130
- -------
131
- result : `~astropy.table.Table`
132
- The result of the query as a `~astropy.table.Table` object.
133
-
134
129
Raises
135
130
------
136
131
TypeError
137
132
If the `radius` keyword could not be parsed as an angle.
138
133
ValueError
139
134
If the `radius` exceeds 3 arcmin, or if the sizes of
140
135
`coordinates` and `obj_names` do not match.
136
+
137
+ Returns
138
+ -------
139
+ result : `~astropy.table.Table`
140
+ The result of the query as a `~astropy.table.Table` object.
141
+
141
142
"""
142
143
143
144
if isinstance (radius , Angle ):
@@ -285,11 +286,6 @@ def query_region_async(self, coordinates, *, radius=None,
285
286
cache : bool, optional
286
287
If ``True`` use the request caching mechanism.
287
288
288
- Returns
289
- -------
290
- result : `~astropy.table.Table`
291
- The result of the query as a `~astropy.table.Table` object.
292
-
293
289
Raises
294
290
------
295
291
TypeError
@@ -313,6 +309,12 @@ def query_region_async(self, coordinates, *, radius=None,
313
309
2.02344596595 14.8398237229 1237652943176138867 1739 301 3 315
314
310
2.02344596303 14.8398237521 1237652943176138868 1739 301 3 315
315
311
2.02344772021 14.8398201105 1237653651835781243 1904 301 3 163
312
+
313
+ Returns
314
+ -------
315
+ result : `~astropy.table.Table`
316
+ The result of the query as a `~astropy.table.Table` object.
317
+
316
318
"""
317
319
# Allow field_help requests to pass without requiring a radius or width.
318
320
if field_help and radius is None and width is None :
@@ -445,11 +447,6 @@ def query_specobj_async(self, *, plate=None, mjd=None, fiberID=None,
445
447
cache : bool, optional
446
448
If ``True`` use the request caching mechanism.
447
449
448
- Returns
449
- -------
450
- result : `~astropy.table.Table`
451
- The result of the query as an `~astropy.table.Table` object.
452
-
453
450
Examples
454
451
--------
455
452
>>> from astroquery.sdss import SDSS
@@ -463,6 +460,12 @@ def query_specobj_async(self, *, plate=None, mjd=None, fiberID=None,
463
460
47.1604269095 5.48241410994 2340 53733 332 2634697104106219520
464
461
48.6634992214 6.69459110287 2340 53733 553 2634757852123654144
465
462
48.0759195428 6.18757403485 2340 53733 506 2634744932862027776
463
+
464
+ Returns
465
+ -------
466
+ result : `~astropy.table.Table`
467
+ The result of the query as an `~astropy.table.Table` object.
468
+
466
469
"""
467
470
468
471
if plate is None and mjd is None and fiberID is None :
@@ -524,11 +527,6 @@ def query_photoobj_async(self, *, run=None, rerun=301, camcol=None,
524
527
cache : bool, optional
525
528
If ``True`` use the request caching mechanism.
526
529
527
- Returns
528
- -------
529
- result : `~astropy.table.Table`
530
- The result of the query as a `~astropy.table.Table` object.
531
-
532
530
Examples
533
531
--------
534
532
>>> from astroquery.sdss import SDSS
@@ -541,6 +539,12 @@ def query_photoobj_async(self, *, run=None, rerun=301, camcol=None,
541
539
22.2574304026 8.43175488904 1237670017262485671 5714 301 6 21
542
540
23.3724928784 8.32576993103 1237670017262944491 5714 301 6 28
543
541
25.4801226435 8.27642390025 1237670017263927330 5714 301 6 43
542
+
543
+ Returns
544
+ -------
545
+ result : `~astropy.table.Table`
546
+ The result of the query as a `~astropy.table.Table` object.
547
+
544
548
"""
545
549
546
550
if run is None and camcol is None and field is None :
@@ -585,11 +589,6 @@ def query_sql_async(self, sql_query, *, timeout=TIMEOUT,
585
589
cache : bool, optional
586
590
If ``True`` use the request caching mechanism.
587
591
588
- Returns
589
- -------
590
- result : `~astropy.table.Table`
591
- The result of the query as a `~astropy.table.Table` object.
592
-
593
592
Examples
594
593
--------
595
594
>>> from astroquery.sdss import SDSS
@@ -610,6 +609,13 @@ class = 'galaxy' \
610
609
0.3000027 156.25024 7.6586271 1237658425162858683
611
610
0.3000027 256.99461 25.566255 1237661387086693265
612
611
0.300003 175.65125 34.37548 1237665128003731630
612
+
613
+
614
+ Returns
615
+ -------
616
+ result : `~astropy.table.Table`
617
+ The result of the query as a `~astropy.table.Table` object.
618
+
613
619
"""
614
620
615
621
request_payload = dict (cmd = self .__sanitize_query (sql_query ),
@@ -677,14 +683,6 @@ def get_spectra_async(self, *, coordinates=None, radius=2. * u.arcsec,
677
683
show_progress : bool, optional
678
684
If False, do not display download progress.
679
685
680
- Returns
681
- -------
682
- list : list
683
- A list of context-managers that yield readable file-like objects.
684
- The function returns the spectra for only one of ``matches``, or
685
- ``coordinates`` and ``radius``, or ``plate``, ``mjd`` and
686
- ``fiberID``.
687
-
688
686
Examples
689
687
--------
690
688
Using results from a call to `query_region`:
@@ -703,6 +701,14 @@ def get_spectra_async(self, *, coordinates=None, radius=2. * u.arcsec,
703
701
704
702
>>> specs = SDSS.get_spectra(plate=751, mjd=52251)
705
703
704
+ Returns
705
+ -------
706
+ list : list
707
+ A list of context-managers that yield readable file-like objects.
708
+ The function returns the spectra for only one of ``matches``, or
709
+ ``coordinates`` and ``radius``, or ``plate``, ``mjd`` and
710
+ ``fiberID``.
711
+
706
712
"""
707
713
708
714
if not matches :
@@ -846,10 +852,6 @@ def get_images_async(self, coordinates=None, radius=2. * u.arcsec,
846
852
show_progress : bool, optional
847
853
If False, do not display download progress.
848
854
849
- Returns
850
- -------
851
- list : List of `~astropy.io.fits.HDUList` objects.
852
-
853
855
Examples
854
856
--------
855
857
Using results from a call to `query_region`:
@@ -872,6 +874,10 @@ def get_images_async(self, coordinates=None, radius=2. * u.arcsec,
872
874
873
875
>>> imgs = SDSS.get_images(run=1904, camcol=3, field=164)
874
876
877
+ Returns
878
+ -------
879
+ list : List of `~astropy.io.fits.HDUList` objects.
880
+
875
881
"""
876
882
if not matches :
877
883
if coordinates is None :
@@ -977,15 +983,16 @@ def get_spectral_template_async(self, kind='qso', *, timeout=TIMEOUT,
977
983
show_progress : bool, optional
978
984
If False, do not display download progress.
979
985
980
- Returns
981
- -------
982
- list : List of `~astropy.io.fits.HDUList` objects.
983
-
984
986
Examples
985
987
--------
986
988
>>> qso = SDSS.get_spectral_template(kind='qso')
987
989
>>> Astar = SDSS.get_spectral_template(kind='star_A')
988
990
>>> Fstar = SDSS.get_spectral_template(kind='star_F')
991
+
992
+ Returns
993
+ -------
994
+ list : List of `~astropy.io.fits.HDUList` objects.
995
+
989
996
"""
990
997
991
998
if kind == 'all' :
0 commit comments