@@ -49,7 +49,7 @@ def query_region(
4949 fields = None ,
5050 max_rec = None ,
5151 casesensitive = False ,
52- spacesys = None ,
52+ coordinate_system = None ,
5353 get_query_payload = False ,
5454 verbose = False ,
5555 cache = True ,
@@ -74,11 +74,11 @@ def query_region(
7474 fields : [str], optional
7575 Specifies which columns to retrieve. Defaults to a pre-defined subset of
7676 fields. The complete list of fields can be obtained with `list_fields`.
77- spacesys : str, optional
77+ coordinate_system : str, optional
7878 This is the space system on which the coordinates are expressed. Can take
7979 the values ``sky``, ``mars``, ``moon``... The extended list can
80- be printed with `list_spacesys`. Default is None, meaning that the results
81- will have mixed frames.
80+ be printed with `~astroquery.mocserver.MOCServer.list_coordinate_systems`.
81+ Default is None, meaning that the results will have mixed frames.
8282 intersect : str, optional
8383 This parameter can take three different values:
8484
@@ -122,7 +122,7 @@ def query_region(
122122 fields = fields ,
123123 max_rec = max_rec ,
124124 casesensitive = casesensitive ,
125- spacesys = spacesys ,
125+ coordinate_system = coordinate_system ,
126126 get_query_payload = get_query_payload ,
127127 cache = cache ,
128128 )
@@ -141,7 +141,7 @@ def query_hips(
141141 fields = None ,
142142 max_rec = None ,
143143 casesensitive = False ,
144- spacesys = None ,
144+ coordinate_system = None ,
145145 get_query_payload = False ,
146146 verbose = False ,
147147 cache = True ,
@@ -161,11 +161,11 @@ def query_hips(
161161 fields : [str], optional
162162 Specifies which columns to retrieve. Defaults to a pre-defined subset of
163163 fields. The complete list of fields can be obtained with `list_fields`.
164- spacesys : str, optional
164+ coordinate_system : str, optional
165165 This is the space system on which the coordinates are expressed. Can take
166166 the values ``sky``, ``mars``, ``moon``... The extended list can
167- be printed with `list_spacesys`. Default is None, meaning that the results
168- will have mixed frames.
167+ be printed with `~astroquery.mocserver.MOCServer.list_coordinate_systems`.
168+ Default is None, meaning that the results will have mixed frames.
169169 region : `regions.CircleSkyRegion`, `regions.PolygonSkyRegion`, `mocpy.MOC`,
170170 `mocpy.TimeMOC`, or `mocpy.STMOC`
171171 The region to query the MOCServer with. Note that this can also be a
@@ -217,7 +217,7 @@ def query_hips(
217217 fields = fields ,
218218 max_rec = max_rec ,
219219 casesensitive = casesensitive ,
220- spacesys = spacesys ,
220+ coordinate_system = coordinate_system ,
221221 get_query_payload = get_query_payload ,
222222 verbose = verbose ,
223223 cache = cache ,
@@ -235,7 +235,7 @@ def find_datasets(
235235 fields = None ,
236236 max_rec = None ,
237237 casesensitive = False ,
238- spacesys = None ,
238+ coordinate_system = None ,
239239 get_query_payload = False ,
240240 verbose = False ,
241241 cache = True ,
@@ -255,11 +255,11 @@ def find_datasets(
255255 fields : [str], optional
256256 Specifies which columns to retrieve. Defaults to a pre-defined subset of
257257 fields. The complete list of fields can be obtained with `list_fields`.
258- spacesys : str, optional
258+ coordinate_system : str, optional
259259 This is the space system on which the coordinates are expressed. Can take
260260 the values ``sky``, ``mars``, ``moon``... The extended list can
261- be printed with `list_spacesys`. Default is None, meaning that the results
262- will have mixed frames.
261+ be printed with `~astroquery.mocserver.MOCServer.list_coordinate_systems`.
262+ Default is None, meaning that the results will have mixed frames.
263263 region : `regions.CircleSkyRegion`, `regions.PolygonSkyRegion`, `mocpy.MOC`,
264264 `mocpy.TimeMOC`, or `mocpy.STMOC`
265265 The region to query the MOCServer with. Note that this can also be a
@@ -307,7 +307,7 @@ def find_datasets(
307307 fields = fields ,
308308 max_rec = max_rec ,
309309 casesensitive = casesensitive ,
310- spacesys = spacesys ,
310+ coordinate_system = coordinate_system ,
311311 get_query_payload = get_query_payload ,
312312 verbose = verbose ,
313313 cache = cache ,
@@ -323,7 +323,7 @@ def query_async(
323323 fields = None ,
324324 max_rec = None ,
325325 intersect = "overlaps" ,
326- spacesys = None ,
326+ coordinate_system = None ,
327327 casesensitive = False ,
328328 get_query_payload = False ,
329329 cache = True ,
@@ -343,11 +343,11 @@ def query_async(
343343 fields : [str], optional
344344 Specifies which columns to retrieve. Defaults to a pre-defined subset of
345345 fields. The complete list of fields can be obtained with `list_fields`.
346- spacesys : str, optional
346+ coordinate_system : str, optional
347347 This is the space system on which the coordinates are expressed. Can take
348348 the values ``sky``, ``mars``, ``moon``... The extended list can
349- be printed with `list_spacesys`. Default is None, meaning that the results
350- will have mixed frames.
349+ be printed with `~astroquery.mocserver.MOCServer.list_coordinate_systems`.
350+ Default is None, meaning that the results will have mixed frames.
351351 region : `regions.CircleSkyRegion`, `regions.PolygonSkyRegion`, `mocpy.MOC`,
352352 `mocpy.TimeMOC`, or `mocpy.STMOC`
353353 The region to query the MOCServer with. Note that this can also be a
@@ -392,7 +392,7 @@ def query_async(
392392 max_rec = max_rec ,
393393 region = region ,
394394 intersect = intersect ,
395- spacesys = spacesys ,
395+ coordinate_system = coordinate_system ,
396396 casesensitive = casesensitive ,
397397 default_fields = self .DEFAULT_FIELDS ,
398398 )
@@ -509,20 +509,20 @@ def list_fields_async(self, cache=True):
509509 params = {"get" : "example" , "fmt" : "json" },
510510 )
511511
512- def list_spacesys (self ):
513- """Return the list of "spacesys" currently available in the MOC Server.
512+ def list_coordinate_systems (self ):
513+ """Return the list of coordinate systems currently available in the MOC Server.
514514
515515 This list may be enriched later, as new datasets are added into the MOC Server.
516516
517517 Returns
518518 -------
519519 list
520- The list of spacesys currently available in the MOC Server
520+ The list of coordinate systems currently available in the MOC Server
521521
522522 """
523523 frames = list (set (self .query_region (meta_data = "hips_frame=*" ,
524524 fields = ["ID" , "hips_frame" ],
525- spacesys = None )["hips_frame" ]))
525+ coordinate_system = None )["hips_frame" ]))
526526 # `C` is a special case that corresponds to both equatorial and galactic frames
527527 frames .append ("sky" )
528528 frames .sort ()
@@ -538,7 +538,7 @@ def _args_to_payload(
538538 max_rec = None ,
539539 region = None ,
540540 intersect = "overlaps" ,
541- spacesys = None ,
541+ coordinate_system = None ,
542542 casesensitive = False ,
543543 default_fields = None ,
544544):
@@ -556,7 +556,7 @@ def _args_to_payload(
556556 "get" : "record" ,
557557 "fields" : _get_fields (fields , default_fields ),
558558 "intersect" : intersect .replace ("encloses" , "enclosed" ),
559- "spacesys" : "C" if spacesys == "sky" else spacesys ,
559+ "spacesys" : "C" if coordinate_system == "sky" else coordinate_system ,
560560 }
561561
562562 if region and not isinstance (region , (MOC , STMOC , TimeMOC )):
0 commit comments