@@ -53,13 +53,13 @@ not explicitly called for TICA.
53
53
>>> from astropy.coordinates import SkyCoord
54
54
...
55
55
>>> cutout_coord = SkyCoord(107.18696 , - 70.50919 , unit = " deg" )
56
- >>> hdulist = Tesscut.get_cutouts(coordinates = cutout_coord)
56
+ >>> hdulist = Tesscut.get_cutouts(coordinates = cutout_coord, sector = 33 )
57
57
>>> hdulist[0 ].info() # doctest: +IGNORE_OUTPUT
58
58
Filename: <class '_io.BytesIO'>
59
59
No. Name Ver Type Cards Dimensions Format
60
- 0 PRIMARY 1 PrimaryHDU 56 ()
61
- 1 PIXELS 1 BinTableHDU 280 1196R x 12C [D, E, J, 25J, 25E, 25E, 25E, 25E, J, E, E, 38A]
62
- 2 APERTURE 1 ImageHDU 81 (5, 5) int32
60
+ 0 PRIMARY 1 PrimaryHDU 57 ()
61
+ 1 PIXELS 1 BinTableHDU 281 3495R x 12C [D, E, J, 25J, 25E, 25E, 25E, 25E, J, E, E, 38A]
62
+ 2 APERTURE 1 ImageHDU 82 (5, 5) int32
63
63
64
64
65
65
For users with time-sensitive targets who would like cutouts from the latest observations,
@@ -72,7 +72,9 @@ this example shows a request for TICA cutouts:
72
72
>>> from astropy.coordinates import SkyCoord
73
73
...
74
74
>>> cutout_coord = SkyCoord(107.18696 , - 70.50919 , unit = " deg" )
75
- >>> hdulist = Tesscut.get_cutouts(coordinates = cutout_coord, product = ' tica' )
75
+ >>> hdulist = Tesscut.get_cutouts(coordinates = cutout_coord,
76
+ ... product= ' tica' ,
77
+ ... sector= 28 )
76
78
>>> hdulist[0 ][0 ].header[' FFI_TYPE' ] # doctest: +IGNORE_OUTPUT
77
79
'TICA'
78
80
@@ -83,7 +85,7 @@ than a set of coordinates.
83
85
84
86
>>> from astroquery.mast import Tesscut
85
87
...
86
- >>> hdulist = Tesscut.get_cutouts(objectname = " TIC 32449963" )
88
+ >>> hdulist = Tesscut.get_cutouts(objectname = " TIC 32449963" , sector = 37 )
87
89
>>> hdulist[0 ].info() # doctest: +IGNORE_OUTPUT
88
90
Filename: <class '_io.BytesIO'>
89
91
No. Name Ver Type Cards Dimensions Format
@@ -106,7 +108,9 @@ simply with either the objectname or coordinates.
106
108
107
109
>>> from astroquery.mast import Tesscut
108
110
...
109
- >>> hdulist = Tesscut.get_cutouts(objectname = " Eleonora" , moving_target = True , size = 5 , sector = 6 )
111
+ >>> hdulist = Tesscut.get_cutouts(objectname = " Eleonora" ,
112
+ ... moving_target= True ,
113
+ ... sector= 6 )
110
114
>>> hdulist[0 ].info() # doctest: +IGNORE_OUTPUT
111
115
Filename: <class '_io.BytesIO'>
112
116
No. Name Ver Type Cards Dimensions Format
@@ -121,7 +125,10 @@ parameter will result in an error when set to 'TICA'.
121
125
122
126
>>> from astroquery.mast import Tesscut
123
127
...
124
- >>> hdulist = Tesscut.get_cutouts(objectname = " Eleonora" , product = ' tica' , moving_target = True , size = 5 , sector = 6 )
128
+ >>> hdulist = Tesscut.get_cutouts(objectname = " Eleonora" ,
129
+ ... product= ' tica' ,
130
+ ... moving_target= True ,
131
+ ... sector= 6 )
125
132
Traceback (most recent call last):
126
133
...
127
134
astroquery.exceptions.InvalidQueryError: Only SPOC is available for moving targets queries.
@@ -141,12 +148,14 @@ pixel file will be produced for each one.
141
148
>>> import astropy.units as u
142
149
...
143
150
>>> cutout_coord = SkyCoord(107.18696 , - 70.50919 , unit = " deg" )
144
- >>> manifest = Tesscut.download_cutouts(coordinates = cutout_coord, size = [5 , 7 ]* u.arcmin, sector = 9 ) # doctest: +IGNORE_OUTPUT
151
+ >>> manifest = Tesscut.download_cutouts(coordinates = cutout_coord,
152
+ ... size= [5 , 5 ]* u.arcmin,
153
+ ... sector= 9 ) # doctest: +IGNORE_OUTPUT
145
154
Downloading URL https://mast.stsci.edu/tesscut/api/v0.1/astrocut?ra=107.18696&dec=-70.50919&y=0.08333333333333333&x=0.11666666666666667&units=d§or=9 to ./tesscut_20210716150026.zip ... [Done]
146
155
>>> print (manifest) # doctest: +IGNORE_OUTPUT
147
156
Local Path
148
157
----------------------------------------------------------
149
- ./tess-s0009-4-1_107.186960_-70.509190_21x15_astrocut .fits
158
+ ./tess-s0009-4-1_107.186960_-70.509190_15x15_astrocut .fits
150
159
151
160
The query from the example above defaults to downloading cutouts from SPOC. The following example is a query for
152
161
the same target from above, but with the product argument passed as TICA to explicitly request for TICA cutouts,
@@ -159,7 +168,10 @@ and because the TICA products are not available for sectors 1-26, we request cut
159
168
>>> import astropy.units as u
160
169
...
161
170
>>> cutout_coord = SkyCoord(107.18696 , - 70.50919 , unit = " deg" )
162
- >>> manifest = Tesscut.download_cutouts(coordinates = cutout_coord, product = ' tica' , size = [5 , 7 ]* u.arcmin, sector = 27 ) # doctest: +IGNORE_OUTPUT
171
+ >>> manifest = Tesscut.download_cutouts(coordinates = cutout_coord,
172
+ ... product= ' tica' ,
173
+ ... size= [5 , 7 ]* u.arcmin,
174
+ ... sector= 27 ) # doctest: +IGNORE_OUTPUT
163
175
Downloading URL https://mast.stsci.edu/tesscut/api/v0.1/astrocut?ra=107.18696&dec=-70.50919&y=0.08333333333333333&x=0.11666666666666667&units=d&product=TICA§or=27 to ./tesscut_20230214150644.zip ... [Done]
164
176
>>> print (manifest) # doctest: +IGNORE_OUTPUT
165
177
Local Path
@@ -234,17 +246,6 @@ The following example requests SPOC cutouts for a moving target.
234
246
Note that the moving targets functionality is not currently available for TICA,
235
247
so the query will always default to SPOC.
236
248
237
- .. doctest-remote-data ::
238
-
239
- >>> from astroquery.mast import Tesscut
240
- ...
241
- >>> sector_table = Tesscut.get_sectors(objectname = " Ceres" , moving_target = True )
242
- >>> print (sector_table)
243
- sectorName sector camera ccd
244
- -------------- ------ ------ ---
245
- tess-s0029-1-4 29 1 4
246
- tess-s0043-3-3 43 3 3
247
- tess-s0044-2-4 44 2 4
248
249
249
250
Zcut
250
251
====
@@ -270,7 +271,7 @@ If the given coordinate appears in more than one Zcut survey, a FITS file will b
270
271
>>> from astropy.coordinates import SkyCoord
271
272
...
272
273
>>> cutout_coord = SkyCoord(189.49206 , 62.20615 , unit = " deg" )
273
- >>> hdulist = Zcut.get_cutouts(coordinates = cutout_coord, size = 5 )
274
+ >>> hdulist = Zcut.get_cutouts(coordinates = cutout_coord, survey = ' 3dhst_goods-n ' )
274
275
>>> hdulist[0 ].info() # doctest: +IGNORE_OUTPUT
275
276
Filename: <class '_io.BytesIO'>
276
277
No. Name Ver Type Cards Dimensions Format
@@ -292,31 +293,37 @@ If a given coordinate appears in more than one Zcut survey, a cutout will be pro
292
293
>>> from astropy.coordinates import SkyCoord
293
294
...
294
295
>>> cutout_coord = SkyCoord(189.49206 , 62.20615 , unit = " deg" )
295
- >>> manifest = Zcut.download_cutouts(coordinates = cutout_coord, size = [200 , 300 ], units = " px" ) # doctest: +IGNORE_OUTPUT
296
+ >>> manifest = Zcut.download_cutouts(coordinates = cutout_coord,
297
+ ... size= [5 , 10 ],
298
+ ... units= " px" ,
299
+ ... survey= " 3dhst_goods-n" ) # doctest: +IGNORE_OUTPUT
296
300
Downloading URL https://mast.stsci.edu/zcut/api/v0.1/astrocut?ra=189.49206&dec=62.20615&y=200&x=300&units=px&format=fits to ./zcut_20210125155545.zip ... [Done]
297
301
Inflating...
298
302
...
299
303
>>> print (manifest) # doctest: +IGNORE_OUTPUT
300
304
Local Path
301
305
-------------------------------------------------------------------------
302
306
./candels_gn_30mas_189.492060_62.206150_300.0pix-x-200.0pix_astrocut.fits
303
-
304
-
305
- .. doctest-remote-data ::
306
-
307
- >>> from astroquery.mast import Zcut
308
- >>> from astropy.coordinates import SkyCoord
309
- ...
310
- >>> cutout_coord = SkyCoord(189.49206 , 62.20615 , unit = " deg" )
311
- >>> manifest = Zcut.download_cutouts(coordinates = cutout_coord, size = [200 , 300 ], units = " px" , form = " jpg" ) # doctest: +IGNORE_OUTPUT
307
+ >>> manifest = Zcut.download_cutouts(coordinates = cutout_coord,
308
+ ... size= [5 , 10 ],
309
+ ... units= " px" ,
310
+ ... survey= " 3dhst_goods-n" ,
311
+ ... cutout_format= " jpg" ) # doctest: +IGNORE_OUTPUT
312
312
Downloading URL https://mast.stsci.edu/zcut/api/v0.1/astrocut?ra=189.49206&dec=62.20615&y=200&x=300&units=px&format=jpg to ./zcut_20201202132453.zip ... [Done]
313
313
...
314
- >>> print (manifest) # doctest: +IGNORE_OUTPUT
315
- Local Path
316
- ---------------------------------------------------------------------------------------------------------
317
- ./hlsp_candels_hst_acs_gn-tot-30mas_f606w_v1.0_drz_189.492060_62.206150_300.0pix-x-200.0pix_astrocut.jpg
318
- ./hlsp_candels_hst_acs_gn-tot-30mas_f814w_v1.0_drz_189.492060_62.206150_300.0pix-x-200.0pix_astrocut.jpg
319
- ./hlsp_candels_hst_acs_gn-tot-30mas_f850lp_v1.0_drz_189.492060_62.206150_300.0pix-x-200.0pix_astrocut.jpg
314
+ >>> print (manifest)
315
+ Local Path
316
+ -----------------------------------------------------------------------------------------------------
317
+ ./hlsp_3dhst_spitzer_irac_goods-n_irac1_v4.0_sc_189.492060_62.206150_10.0pix-x-5.0pix_astrocut.jpg
318
+ ./hlsp_3dhst_spitzer_irac_goods-n-s2_irac3_v4.0_sc_189.492060_62.206150_10.0pix-x-5.0pix_astrocut.jpg
319
+ ./hlsp_3dhst_spitzer_irac_goods-n-s1_irac4_v4.0_sc_189.492060_62.206150_10.0pix-x-5.0pix_astrocut.jpg
320
+ ./hlsp_3dhst_spitzer_irac_goods-n_irac2_v4.0_sc_189.492060_62.206150_10.0pix-x-5.0pix_astrocut.jpg
321
+ ./hlsp_3dhst_mayall_mosaic_goods-n_u_v4.0_sc_189.492060_62.206150_10.0pix-x-5.0pix_astrocut.jpg
322
+ ./hlsp_3dhst_subaru_suprimecam_goods-n_rc_v4.0_sc_189.492060_62.206150_10.0pix-x-5.0pix_astrocut.jpg
323
+ ./hlsp_3dhst_subaru_suprimecam_goods-n_v_v4.0_sc_189.492060_62.206150_10.0pix-x-5.0pix_astrocut.jpg
324
+ ./hlsp_3dhst_subaru_suprimecam_goods-n_ic_v4.0_sc_189.492060_62.206150_10.0pix-x-5.0pix_astrocut.jpg
325
+ ./hlsp_3dhst_subaru_suprimecam_goods-n_zp_v4.0_sc_189.492060_62.206150_10.0pix-x-5.0pix_astrocut.jpg
326
+ ./hlsp_3dhst_subaru_suprimecam_goods-n_b_v4.0_sc_189.492060_62.206150_10.0pix-x-5.0pix_astrocut.jpg
320
327
321
328
322
329
Survey information
@@ -387,5 +394,6 @@ If the given coordinate appears in more than one product, a cutout will be produ
387
394
Local Path
388
395
---------------------------------------------------------------------------------
389
396
./hst_cutout_skycell-p2007x09y05-ra351d3478-decn28d4978_wfc3_ir_f160w_coarse.fits
397
+ ./hst_cutout_skycell-p2007x09y05-ra351d3478-decn28d4978_wfc3_ir_f160w.fits
390
398
./hst_cutout_skycell-p2007x09y05-ra351d3478-decn28d4978_wfc3_uvis_f606w.fits
391
399
./hst_cutout_skycell-p2007x09y05-ra351d3478-decn28d4978_wfc3_uvis_f814w.fits
0 commit comments