@@ -128,8 +128,7 @@ def query_sia(self, *, pos=None, band=None, time=None, pol=None,
128
128
129
129
query_sia .__doc__ = query_sia .__doc__ .replace ('_SIA2_PARAMETERS' , SIA2_PARAMETERS_DESC )
130
130
131
- def query_ssa (self , * , pos = None , diameter = None , band = None , time = None , format = None ,
132
- collection = None ):
131
+ def query_ssa (self , * , pos = None , radius = None , band = None , time = None , collection = None ):
133
132
"""
134
133
Use standard SSA attributes to query the IRSA SSA service.
135
134
@@ -138,8 +137,8 @@ def query_ssa(self, *, pos=None, diameter=None, band=None, time=None, format=Non
138
137
pos : `~astropy.coordinates.SkyCoord` class or sequence of two floats
139
138
the position of the center of the circular search region.
140
139
assuming icrs decimal degrees if unit is not specified.
141
- diameter : `~astropy.units.Quantity` class or scalar float
142
- the diameter of the circular region around pos in which to search.
140
+ raidus : `~astropy.units.Quantity` class or scalar float
141
+ the radius of the circular region around pos in which to search.
143
142
assuming icrs decimal degrees if unit is not specified.
144
143
band : `~astropy.units.Quantity` class or sequence of two floats
145
144
the bandwidth range the observations belong to.
@@ -149,20 +148,20 @@ def query_ssa(self, *, pos=None, diameter=None, band=None, time=None, format=Non
149
148
assuming iso 8601 if format is not specified.
150
149
collection : str
151
150
Name of the collection that the data belongs to.
152
- format : str
153
- the image format(s) of interest. "all" indicates
154
- all available formats; "graphic" indicates
155
- graphical images (e.g. jpeg, png, gif; not FITS);
156
- "metadata" indicates that no images should be
157
- returned--only an empty table with complete metadata.
158
151
159
152
Returns
160
153
-------
161
154
Results in `pyvo.dal.SSAResults` format.
162
- result.table in Astropy table format
155
+ result.to_table() in Astropy table format
163
156
"""
157
+
158
+ if radius is None :
159
+ diameter = None
160
+ else :
161
+ diameter = 2 * radius
162
+
164
163
return self .ssa .search (pos = pos , diameter = diameter , band = band , time = time ,
165
- format = format , collection = collection )
164
+ format = 'all' , collection = collection )
166
165
167
166
def list_collections (self , servicetype = None ):
168
167
"""
0 commit comments