Skip to content

Commit ad3cfed

Browse files
committed
query_region radius default value and doc
1 parent 7fd6402 commit ad3cfed

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

astroquery/desi/core.py

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@
1717

1818
class DESILegacySurveyClass(BaseQuery):
1919

20-
def query_region(self, coordinates, radius, *, data_release=9):
20+
def query_region(self, coordinates, radius=None, *, data_release=9):
2121
"""
2222
Queries a region around the specified coordinates.
2323
2424
Parameters
2525
----------
26-
coordinates : `astropy.coordinates`
26+
coordinates : `~astropy.coordinates.SkyCoord`
2727
coordinates around which to query.
28-
radius : `astropy.units.Quantity`
29-
the radius of the cone search.
28+
radius : `~astropy.coordinates.Angle`, optional
29+
the radius of the region. If missing, set to default
30+
value of 0.5 arcmin.
3031
data_release: int
3132
the data release of the LegacySurvey to use.
3233
@@ -35,6 +36,9 @@ def query_region(self, coordinates, radius, *, data_release=9):
3536
response : `astropy.table.Table`
3637
"""
3738

39+
if radius is None:
40+
radius = coord.Angle(0.5, unit='arcmin')
41+
3842
tap_service = vo.dal.TAPService(conf.tap_service_url)
3943
coordinates_transformed = coordinates.transform_to(coord.ICRS)
4044

0 commit comments

Comments
 (0)