@@ -107,7 +107,7 @@ def __init__(self):
107
107
self ._service_api_connection .set_service_params (services , "tesscut" )
108
108
109
109
def get_sectors (self , * , coordinates = None , radius = 0 * u .deg , product = 'SPOC' , objectname = None ,
110
- moving_target = False , mt_type = None ):
110
+ moving_target = False , mt_type = None , resolver = None ):
111
111
"""
112
112
Get a list of the TESS data sectors whose footprints intersect
113
113
with the given search area.
@@ -152,6 +152,11 @@ def get_sectors(self, *, coordinates=None, radius=0*u.deg, product='SPOC', objec
152
152
first majorbody is tried and then smallbody if a matching majorbody is not found.
153
153
154
154
NOTE: If moving_target is supplied, this argument is ignored.
155
+ resolver : str, optional
156
+ The resolver to use when resolving a named target into coordinates. Valid options are "SIMBAD" and "NED".
157
+ If not specified, the default resolver order will be used. Please see the
158
+ `STScI Archive Name Translation Application (SANTA) <https://mastresolver.stsci.edu/Santa-war/>`__
159
+ for more information. Default is None.
155
160
156
161
Returns
157
162
-------
@@ -187,7 +192,7 @@ def get_sectors(self, *, coordinates=None, radius=0*u.deg, product='SPOC', objec
187
192
else :
188
193
189
194
# Get Skycoord object for coordinates/object
190
- coordinates = parse_input_location (coordinates , objectname )
195
+ coordinates = parse_input_location (coordinates , objectname , resolver )
191
196
192
197
# If radius is just a number we assume degrees
193
198
radius = Angle (radius , u .deg )
@@ -223,7 +228,8 @@ def get_sectors(self, *, coordinates=None, radius=0*u.deg, product='SPOC', objec
223
228
return Table (sector_dict )
224
229
225
230
def download_cutouts (self , * , coordinates = None , size = 5 , sector = None , product = 'SPOC' , path = "." ,
226
- inflate = True , objectname = None , moving_target = False , mt_type = None , verbose = False ):
231
+ inflate = True , objectname = None , moving_target = False , mt_type = None , resolver = None ,
232
+ verbose = False ):
227
233
"""
228
234
Download cutout target pixel file(s) around the given coordinates with indicated size.
229
235
@@ -280,6 +286,11 @@ def download_cutouts(self, *, coordinates=None, size=5, sector=None, product='SP
280
286
first majorbody is tried and then smallbody if a matching majorbody is not found.
281
287
282
288
NOTE: If moving_target is supplied, this argument is ignored.
289
+ resolver : str, optional
290
+ The resolver to use when resolving a named target into coordinates. Valid options are "SIMBAD" and "NED".
291
+ If not specified, the default resolver order will be used. Please see the
292
+ `STScI Archive Name Translation Application (SANTA) <https://mastresolver.stsci.edu/Santa-war/>`__
293
+ for more information. Default is None.
283
294
284
295
Returns
285
296
-------
@@ -310,7 +321,7 @@ def download_cutouts(self, *, coordinates=None, size=5, sector=None, product='SP
310
321
else :
311
322
312
323
# Get Skycoord object for coordinates/object
313
- coordinates = parse_input_location (coordinates , objectname )
324
+ coordinates = parse_input_location (coordinates , objectname , resolver )
314
325
315
326
astrocut_request = f"astrocut?ra={ coordinates .ra .deg } &dec={ coordinates .dec .deg } "
316
327
@@ -359,7 +370,7 @@ def download_cutouts(self, *, coordinates=None, size=5, sector=None, product='SP
359
370
return localpath_table
360
371
361
372
def get_cutouts (self , * , coordinates = None , size = 5 , product = 'SPOC' , sector = None ,
362
- objectname = None , moving_target = False , mt_type = None ):
373
+ objectname = None , moving_target = False , mt_type = None , resolver = None ):
363
374
"""
364
375
Get cutout target pixel file(s) around the given coordinates with indicated size,
365
376
and return them as a list of `~astropy.io.fits.HDUList` objects.
@@ -408,6 +419,11 @@ def get_cutouts(self, *, coordinates=None, size=5, product='SPOC', sector=None,
408
419
first majorbody is tried and then smallbody if a matching majorbody is not found.
409
420
410
421
NOTE: If moving_target is supplied, this argument is ignored.
422
+ resolver : str, optional
423
+ The resolver to use when resolving a named target into coordinates. Valid options are "SIMBAD" and "NED".
424
+ If not specified, the default resolver order will be used. Please see the
425
+ `STScI Archive Name Translation Application (SANTA) <https://mastresolver.stsci.edu/Santa-war/>`__
426
+ for more information. Default is None.
411
427
412
428
Returns
413
429
-------
@@ -457,7 +473,7 @@ def get_cutouts(self, *, coordinates=None, size=5, product='SPOC', sector=None,
457
473
param_dict ['product' ] = product .upper ()
458
474
459
475
# Get Skycoord object for coordinates/object
460
- coordinates = parse_input_location (coordinates , objectname )
476
+ coordinates = parse_input_location (coordinates , objectname , resolver )
461
477
462
478
param_dict ["ra" ] = coordinates .ra .deg
463
479
param_dict ["dec" ] = coordinates .dec .deg
0 commit comments