Skip to content

Commit 0c0285c

Browse files
committed
BUG: fixing radius to not be diameter
1 parent 0eb8daa commit 0c0285c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

astroquery/skyview/core.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,8 @@ def get_images(self, position, survey, coordinates=None, projection=None,
172172
gridlabels : bool
173173
annotate the grid with coordinates positions if True
174174
radius : `~astropy.units.Quantity` or None
175-
The radius of the specified field. Overrides width and height.
175+
The angular radius of the specified field.
176+
Overrides the ``width`` and ``height`` parameters.
176177
width : `~astropy.units.Quantity` or None
177178
The width of the specified field. Must be specified
178179
with ``height``.
@@ -251,7 +252,7 @@ def get_image_list(self, position, survey, coordinates=None,
251252
self._validate_surveys(survey)
252253

253254
if radius is not None:
254-
size_deg = str(radius.to(u.deg).value)
255+
size_deg = str(radius.to(u.deg).value * 2)
255256
elif width and height:
256257
size_deg = "{0},{1}".format(width.to(u.deg).value,
257258
height.to(u.deg).value)

0 commit comments

Comments
 (0)