@@ -85,7 +85,7 @@ def _submit_form(self, input=None, cache=True):
85
85
response .raise_for_status ()
86
86
return response
87
87
88
- def get_images (self , position , survey , coordinates = None , projection = None ,
88
+ def get_images (self , position , survey , * , coordinates = None , projection = None ,
89
89
pixels = None , scaling = None , sampler = None , resolver = None ,
90
90
deedger = None , lut = None , grid = None , gridlabels = None ,
91
91
radius = None , height = None , width = None , cache = True ,
@@ -172,7 +172,8 @@ def get_images(self, position, survey, coordinates=None, projection=None,
172
172
gridlabels : bool
173
173
annotate the grid with coordinates positions if True
174
174
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.
176
177
width : `~astropy.units.Quantity` or None
177
178
The width of the specified field. Must be specified
178
179
with ``height``.
@@ -197,18 +198,16 @@ def get_images(self, position, survey, coordinates=None, projection=None,
197
198
A list of `~astropy.io.fits.HDUList` objects.
198
199
199
200
"""
200
- readable_objects = self .get_images_async (position , survey , coordinates ,
201
- projection , pixels , scaling ,
202
- sampler , resolver , deedger ,
203
- lut , grid , gridlabels ,
204
- radius = radius , height = height ,
205
- width = width ,
206
- cache = cache ,
207
- show_progress = show_progress )
201
+ readable_objects = self .get_images_async (position , survey , coordinates = coordinates ,
202
+ projection = projection , pixels = pixels , scaling = scaling ,
203
+ sampler = sampler , resolver = resolver , deedger = deedger ,
204
+ lut = lut , grid = grid , gridlabels = gridlabels ,
205
+ radius = radius , height = height , width = width ,
206
+ cache = cache , show_progress = show_progress )
208
207
return [obj .get_fits () for obj in readable_objects ]
209
208
210
209
@prepend_docstr_nosections (get_images .__doc__ )
211
- def get_images_async (self , position , survey , coordinates = None ,
210
+ def get_images_async (self , position , survey , * , coordinates = None ,
212
211
projection = None , pixels = None , scaling = None ,
213
212
sampler = None , resolver = None , deedger = None , lut = None ,
214
213
grid = None , gridlabels = None , radius = None , height = None ,
@@ -218,18 +217,18 @@ def get_images_async(self, position, survey, coordinates=None,
218
217
-------
219
218
A list of context-managers that yield readable file-like objects
220
219
"""
221
- image_urls = self .get_image_list (position , survey , coordinates ,
222
- projection , pixels , scaling , sampler ,
223
- resolver , deedger , lut , grid ,
224
- gridlabels , radius = radius ,
220
+ image_urls = self .get_image_list (position , survey , coordinates = coordinates ,
221
+ projection = projection , pixels = pixels , scaling = scaling , sampler = sampler ,
222
+ resolver = resolver , deedger = deedger , lut = lut , grid = grid ,
223
+ gridlabels = gridlabels , radius = radius ,
225
224
height = height , width = width ,
226
225
cache = cache )
227
226
return [commons .FileContainer (url , encoding = 'binary' ,
228
227
show_progress = show_progress )
229
228
for url in image_urls ]
230
229
231
230
@prepend_docstr_nosections (get_images .__doc__ , sections = ['Returns' , 'Examples' ])
232
- def get_image_list (self , position , survey , coordinates = None ,
231
+ def get_image_list (self , position , survey , * , coordinates = None ,
233
232
projection = None , pixels = None , scaling = None ,
234
233
sampler = None , resolver = None , deedger = None , lut = None ,
235
234
grid = None , gridlabels = None , radius = None , width = None ,
@@ -251,7 +250,7 @@ def get_image_list(self, position, survey, coordinates=None,
251
250
self ._validate_surveys (survey )
252
251
253
252
if radius is not None :
254
- size_deg = str (radius .to (u .deg ).value )
253
+ size_deg = str (radius .to (u .deg ).value * 2 )
255
254
elif width and height :
256
255
size_deg = "{0},{1}" .format (width .to (u .deg ).value ,
257
256
height .to (u .deg ).value )
0 commit comments