@@ -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,9 @@ 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 = coordinates ,
196
+ objectname = objectname ,
197
+ resolver = resolver )
191
198
192
199
# If radius is just a number we assume degrees
193
200
radius = Angle (radius , u .deg )
@@ -223,7 +230,8 @@ def get_sectors(self, *, coordinates=None, radius=0*u.deg, product='SPOC', objec
223
230
return Table (sector_dict )
224
231
225
232
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 ):
233
+ inflate = True , objectname = None , moving_target = False , mt_type = None , resolver = None ,
234
+ verbose = False ):
227
235
"""
228
236
Download cutout target pixel file(s) around the given coordinates with indicated size.
229
237
@@ -280,6 +288,11 @@ def download_cutouts(self, *, coordinates=None, size=5, sector=None, product='SP
280
288
first majorbody is tried and then smallbody if a matching majorbody is not found.
281
289
282
290
NOTE: If moving_target is supplied, this argument is ignored.
291
+ resolver : str, optional
292
+ The resolver to use when resolving a named target into coordinates. Valid options are "SIMBAD" and "NED".
293
+ If not specified, the default resolver order will be used. Please see the
294
+ `STScI Archive Name Translation Application (SANTA) <https://mastresolver.stsci.edu/Santa-war/>`__
295
+ for more information. Default is None.
283
296
284
297
Returns
285
298
-------
@@ -310,7 +323,9 @@ def download_cutouts(self, *, coordinates=None, size=5, sector=None, product='SP
310
323
else :
311
324
312
325
# Get Skycoord object for coordinates/object
313
- coordinates = parse_input_location (coordinates , objectname )
326
+ coordinates = parse_input_location (coordinates = coordinates ,
327
+ objectname = objectname ,
328
+ resolver = resolver )
314
329
315
330
astrocut_request = f"astrocut?ra={ coordinates .ra .deg } &dec={ coordinates .dec .deg } "
316
331
@@ -359,7 +374,7 @@ def download_cutouts(self, *, coordinates=None, size=5, sector=None, product='SP
359
374
return localpath_table
360
375
361
376
def get_cutouts (self , * , coordinates = None , size = 5 , product = 'SPOC' , sector = None ,
362
- objectname = None , moving_target = False , mt_type = None ):
377
+ objectname = None , moving_target = False , mt_type = None , resolver = None ):
363
378
"""
364
379
Get cutout target pixel file(s) around the given coordinates with indicated size,
365
380
and return them as a list of `~astropy.io.fits.HDUList` objects.
@@ -408,6 +423,11 @@ def get_cutouts(self, *, coordinates=None, size=5, product='SPOC', sector=None,
408
423
first majorbody is tried and then smallbody if a matching majorbody is not found.
409
424
410
425
NOTE: If moving_target is supplied, this argument is ignored.
426
+ resolver : str, optional
427
+ The resolver to use when resolving a named target into coordinates. Valid options are "SIMBAD" and "NED".
428
+ If not specified, the default resolver order will be used. Please see the
429
+ `STScI Archive Name Translation Application (SANTA) <https://mastresolver.stsci.edu/Santa-war/>`__
430
+ for more information. Default is None.
411
431
412
432
Returns
413
433
-------
@@ -457,7 +477,9 @@ def get_cutouts(self, *, coordinates=None, size=5, product='SPOC', sector=None,
457
477
param_dict ['product' ] = product .upper ()
458
478
459
479
# Get Skycoord object for coordinates/object
460
- coordinates = parse_input_location (coordinates , objectname )
480
+ coordinates = parse_input_location (coordinates = coordinates ,
481
+ objectname = objectname ,
482
+ resolver = resolver )
461
483
462
484
param_dict ["ra" ] = coordinates .ra .deg
463
485
param_dict ["dec" ] = coordinates .dec .deg
@@ -531,7 +553,7 @@ def get_surveys(self, coordinates, *, radius="0d"):
531
553
"""
532
554
533
555
# Get Skycoord object for coordinates/object
534
- coordinates = parse_input_location (coordinates )
556
+ coordinates = parse_input_location (coordinates = coordinates )
535
557
radius = Angle (radius , u .deg )
536
558
537
559
params = {"ra" : coordinates .ra .deg ,
@@ -596,7 +618,7 @@ def download_cutouts(self, coordinates, *, size=5, survey=None, cutout_format="f
596
618
Cutout file(s) for given coordinates
597
619
"""
598
620
# Get Skycoord object for coordinates/object
599
- coordinates = parse_input_location (coordinates )
621
+ coordinates = parse_input_location (coordinates = coordinates )
600
622
size_dict = _parse_cutout_size (size )
601
623
602
624
path = os .path .join (path , '' )
@@ -675,7 +697,7 @@ def get_cutouts(self, coordinates, *, size=5, survey=None):
675
697
"""
676
698
677
699
# Get Skycoord object for coordinates/object
678
- coordinates = parse_input_location (coordinates )
700
+ coordinates = parse_input_location (coordinates = coordinates )
679
701
680
702
param_dict = _parse_cutout_size (size )
681
703
param_dict ["ra" ] = coordinates .ra .deg
@@ -760,7 +782,7 @@ def download_cutouts(self, coordinates, *, size=5, path=".", inflate=True, verbo
760
782
"""
761
783
762
784
# Get Skycoord object for coordinates/object
763
- coordinates = parse_input_location (coordinates )
785
+ coordinates = parse_input_location (coordinates = coordinates )
764
786
765
787
# Build initial astrocut request
766
788
astrocut_request = f"astrocut?ra={ coordinates .ra .deg } &dec={ coordinates .dec .deg } "
@@ -829,7 +851,7 @@ def get_cutouts(self, coordinates, *, size=5):
829
851
"""
830
852
831
853
# Get Skycoord object for coordinates/object
832
- coordinates = parse_input_location (coordinates )
854
+ coordinates = parse_input_location (coordinates = coordinates )
833
855
834
856
param_dict = _parse_cutout_size (size )
835
857
0 commit comments