@@ -49,7 +49,7 @@ def query_region(
49
49
fields = None ,
50
50
max_rec = None ,
51
51
casesensitive = False ,
52
- spacesys = None ,
52
+ coordinate_system = None ,
53
53
get_query_payload = False ,
54
54
verbose = False ,
55
55
cache = True ,
@@ -74,11 +74,11 @@ def query_region(
74
74
fields : [str], optional
75
75
Specifies which columns to retrieve. Defaults to a pre-defined subset of
76
76
fields. The complete list of fields can be obtained with `list_fields`.
77
- spacesys : str, optional
77
+ coordinate_system : str, optional
78
78
This is the space system on which the coordinates are expressed. Can take
79
79
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.
82
82
intersect : str, optional
83
83
This parameter can take three different values:
84
84
@@ -122,7 +122,7 @@ def query_region(
122
122
fields = fields ,
123
123
max_rec = max_rec ,
124
124
casesensitive = casesensitive ,
125
- spacesys = spacesys ,
125
+ coordinate_system = coordinate_system ,
126
126
get_query_payload = get_query_payload ,
127
127
cache = cache ,
128
128
)
@@ -141,7 +141,7 @@ def query_hips(
141
141
fields = None ,
142
142
max_rec = None ,
143
143
casesensitive = False ,
144
- spacesys = None ,
144
+ coordinate_system = None ,
145
145
get_query_payload = False ,
146
146
verbose = False ,
147
147
cache = True ,
@@ -161,11 +161,11 @@ def query_hips(
161
161
fields : [str], optional
162
162
Specifies which columns to retrieve. Defaults to a pre-defined subset of
163
163
fields. The complete list of fields can be obtained with `list_fields`.
164
- spacesys : str, optional
164
+ coordinate_system : str, optional
165
165
This is the space system on which the coordinates are expressed. Can take
166
166
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.
169
169
region : `regions.CircleSkyRegion`, `regions.PolygonSkyRegion`, `mocpy.MOC`,
170
170
`mocpy.TimeMOC`, or `mocpy.STMOC`
171
171
The region to query the MOCServer with. Note that this can also be a
@@ -217,7 +217,7 @@ def query_hips(
217
217
fields = fields ,
218
218
max_rec = max_rec ,
219
219
casesensitive = casesensitive ,
220
- spacesys = spacesys ,
220
+ coordinate_system = coordinate_system ,
221
221
get_query_payload = get_query_payload ,
222
222
verbose = verbose ,
223
223
cache = cache ,
@@ -235,7 +235,7 @@ def find_datasets(
235
235
fields = None ,
236
236
max_rec = None ,
237
237
casesensitive = False ,
238
- spacesys = None ,
238
+ coordinate_system = None ,
239
239
get_query_payload = False ,
240
240
verbose = False ,
241
241
cache = True ,
@@ -255,11 +255,11 @@ def find_datasets(
255
255
fields : [str], optional
256
256
Specifies which columns to retrieve. Defaults to a pre-defined subset of
257
257
fields. The complete list of fields can be obtained with `list_fields`.
258
- spacesys : str, optional
258
+ coordinate_system : str, optional
259
259
This is the space system on which the coordinates are expressed. Can take
260
260
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.
263
263
region : `regions.CircleSkyRegion`, `regions.PolygonSkyRegion`, `mocpy.MOC`,
264
264
`mocpy.TimeMOC`, or `mocpy.STMOC`
265
265
The region to query the MOCServer with. Note that this can also be a
@@ -307,7 +307,7 @@ def find_datasets(
307
307
fields = fields ,
308
308
max_rec = max_rec ,
309
309
casesensitive = casesensitive ,
310
- spacesys = spacesys ,
310
+ coordinate_system = coordinate_system ,
311
311
get_query_payload = get_query_payload ,
312
312
verbose = verbose ,
313
313
cache = cache ,
@@ -323,7 +323,7 @@ def query_async(
323
323
fields = None ,
324
324
max_rec = None ,
325
325
intersect = "overlaps" ,
326
- spacesys = None ,
326
+ coordinate_system = None ,
327
327
casesensitive = False ,
328
328
get_query_payload = False ,
329
329
cache = True ,
@@ -343,11 +343,11 @@ def query_async(
343
343
fields : [str], optional
344
344
Specifies which columns to retrieve. Defaults to a pre-defined subset of
345
345
fields. The complete list of fields can be obtained with `list_fields`.
346
- spacesys : str, optional
346
+ coordinate_system : str, optional
347
347
This is the space system on which the coordinates are expressed. Can take
348
348
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.
351
351
region : `regions.CircleSkyRegion`, `regions.PolygonSkyRegion`, `mocpy.MOC`,
352
352
`mocpy.TimeMOC`, or `mocpy.STMOC`
353
353
The region to query the MOCServer with. Note that this can also be a
@@ -392,7 +392,7 @@ def query_async(
392
392
max_rec = max_rec ,
393
393
region = region ,
394
394
intersect = intersect ,
395
- spacesys = spacesys ,
395
+ coordinate_system = coordinate_system ,
396
396
casesensitive = casesensitive ,
397
397
default_fields = self .DEFAULT_FIELDS ,
398
398
)
@@ -509,20 +509,20 @@ def list_fields_async(self, cache=True):
509
509
params = {"get" : "example" , "fmt" : "json" },
510
510
)
511
511
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.
514
514
515
515
This list may be enriched later, as new datasets are added into the MOC Server.
516
516
517
517
Returns
518
518
-------
519
519
list
520
- The list of spacesys currently available in the MOC Server
520
+ The list of coordinate systems currently available in the MOC Server
521
521
522
522
"""
523
523
frames = list (set (self .query_region (meta_data = "hips_frame=*" ,
524
524
fields = ["ID" , "hips_frame" ],
525
- spacesys = None )["hips_frame" ]))
525
+ coordinate_system = None )["hips_frame" ]))
526
526
# `C` is a special case that corresponds to both equatorial and galactic frames
527
527
frames .append ("sky" )
528
528
frames .sort ()
@@ -538,7 +538,7 @@ def _args_to_payload(
538
538
max_rec = None ,
539
539
region = None ,
540
540
intersect = "overlaps" ,
541
- spacesys = None ,
541
+ coordinate_system = None ,
542
542
casesensitive = False ,
543
543
default_fields = None ,
544
544
):
@@ -556,7 +556,7 @@ def _args_to_payload(
556
556
"get" : "record" ,
557
557
"fields" : _get_fields (fields , default_fields ),
558
558
"intersect" : intersect .replace ("encloses" , "enclosed" ),
559
- "spacesys" : "C" if spacesys == "sky" else spacesys ,
559
+ "spacesys" : "C" if coordinate_system == "sky" else coordinate_system ,
560
560
}
561
561
562
562
if region and not isinstance (region , (MOC , STMOC , TimeMOC )):
0 commit comments