Skip to content

Commit 13c5fa4

Browse files
committed
Updated documentation to outline TICA support on Tesscut
1 parent 660fc47 commit 13c5fa4

File tree

1 file changed

+105
-13
lines changed

1 file changed

+105
-13
lines changed

docs/mast/mast.rst

Lines changed: 105 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -884,25 +884,34 @@ TESSCut
884884
=======
885885

886886
TESSCut is MAST's tool to provide full-frame image (FFI) cutouts from the Transiting
887-
Exoplanet Survey Satellite (TESS). The cutouts are returned in the form of target pixel
888-
files that follow the same format as TESS pipeline target pixel files. This tool can
889-
be accessed in Astroquery by using the Tesscut class.
887+
Exoplanet Survey Satellite (TESS). The cutouts can be made from either the Science
888+
Processing Operation's Center (`SPOC <https://archive.stsci.edu/missions-and-data/tess>`__) FFI products,
889+
or the TESS Image CAlibrator (`TICA <https://archive.stsci.edu/hlsp/tica>`__) high-level science products.
890+
Cutouts from the TICA products are not available for sectors 1-26,
891+
but are available for sector 27 onwards. These products are available up to 3 weeks sooner than
892+
their SPOC counterparts for the latest sector, so it is recommended to request TICA cutouts
893+
for users working with time-sensitive observations. The cutouts from either SPOC or TICA products
894+
are returned in the form of target pixel files that follow the same format as TESS pipeline target
895+
pixel files. This tool can be accessed in Astroquery by using the Tesscut class.
890896

891897
**Note:** TESScut limits each user to no more than 10 simultaneous calls to the service.
892898
After the user has reached this limit TESScut will return a
893899
``503 Service Temporarily Unavailable Error``.
894900

901+
**Note:** The moving targets functionality does not currently support making cutouts from
902+
TICA products, so the product argument will always default to SPOC.
903+
895904
If you use TESSCut for your work, please cite Brasseur et al. 2019
896905
https://ui.adsabs.harvard.edu/abs/2019ascl.soft05007B/abstract
897906

898907

899908
Cutouts
900909
-------
901910

902-
The `~astroquery.mast.TesscutClass.get_cutouts` function takes a coordinate, object name
903-
(i.e. "M104" or "TIC 32449963"), or moving target (i.e. "Eleonora") and cutout size
904-
(in pixels or an angular quantity) and returns the cutout target pixel file(s) as a
905-
list of `~astropy.io.fits.HDUList` objects.
911+
The `~astroquery.mast.TesscutClass.get_cutouts` function takes a product type
912+
("TICA" or "SPOC", but defaults to "SPOC"), coordinate, object name (e.g. "M104" or "TIC 32449963"),
913+
or moving target (e.g. "Eleonora") and cutout size (in pixels or an angular quantity)
914+
and returns the cutout target pixel file(s) as a list of `~astropy.io.fits.HDUList` objects.
906915

907916
If the given coordinate/object location appears in more than one TESS sector a target pixel
908917
file will be produced for each sector. If the cutout area overlaps more than one camera or
@@ -912,6 +921,8 @@ Requesting a cutout by coordinate or objectname accesses the
912921
`MAST TESScut API <https://mast.stsci.edu/tesscut/docs/getting_started.html#requesting-a-cutout>`__
913922
and returns a target pixel file, with format described
914923
`here <https://astrocut.readthedocs.io/en/latest/astrocut/file_formats.html#target-pixel-files>`__.
924+
Note that the `product` argument will default to request for SPOC cutouts when
925+
not explicitly called for TICA.
915926

916927
.. doctest-remote-data::
917928

@@ -927,6 +938,22 @@ and returns a target pixel file, with format described
927938
1 PIXELS 1 BinTableHDU 280 1196R x 12C [D, E, J, 25J, 25E, 25E, 25E, 25E, J, E, E, 38A]
928939
2 APERTURE 1 ImageHDU 81 (5, 5) int32
929940

941+
For users with time-sensitive targets who would like cutouts from the latest observations,
942+
we recommend requesting for the TICA product. Using the same target from the example above,
943+
let's request for the TICA cutouts:
944+
945+
.. doctest-remote-data::
946+
947+
>>> from astroquery.mast import Tesscut
948+
>>> from astropy.coordinates import SkyCoord
949+
...
950+
>>> cutout_coord = SkyCoord(107.18696, -70.50919, unit="deg")
951+
>>> hdulist = Tesscut.get_cutouts(coordinates=cutout_coord, size=5, product='tica')
952+
>>> hdulist[0][0].header['FFI_TYPE'] # doctest: +IGNORE_OUTPUT
953+
'TICA'
954+
955+
The following example will request SPOC cutouts using the `objectname` argument, rather
956+
than a set of coordinates.
930957

931958
.. doctest-remote-data::
932959

@@ -963,9 +990,20 @@ simply with either the objectname or coordinates.
963990
1 PIXELS 1 BinTableHDU 150 355R x 16C [D, E, J, 25J, 25E, 25E, 25E, 25E, J, E, E, 38A, D, D, D, D]
964991
2 APERTURE 1 ImageHDU 97 (2136, 2078) int32
965992

993+
Note that the moving targets functionality does not currently support TICA, so the `product`
994+
parameter will always default to SPOC.
995+
996+
.. doctest-remote-data::
966997

967-
The `~astroquery.mast.TesscutClass.download_cutouts` function takes a coordinate, cutout size
968-
(in pixels or an angular quantity), or object name (i.e. "M104" or "TIC 32449963") and moving target
998+
>>> from astroquery.mast import Tesscut
999+
...
1000+
>>> hdulist = Tesscut.get_cutouts(objectname="Eleonora", product='tica', moving_target=True, size=5, sector=6)
1001+
WARNING: InputWarning: Only SPOC is available for moving targets queries. Defaulting to SPOC. [astroquery.mast.cutouts]
1002+
>>> hdulist[0][0].header['FFI_TYPE'] # doctest: +IGNORE_OUTPUT
1003+
'SPOC'
1004+
1005+
The `~astroquery.mast.TesscutClass.download_cutouts` function takes a product type ("TICA" or "SPOC", but defaults to "SPOC"),
1006+
coordinate, cutout size (in pixels or an angular quantity), or object name (e.g. "M104" or "TIC 32449963") and moving target
9691007
(True or False). It uses these parameters to download the cutout target pixel file(s).
9701008

9711009
If a given coordinate/object/moving target appears in more than one TESS sector, a target pixel file
@@ -981,13 +1019,28 @@ pixel file will be produced for each one.
9811019
>>> cutout_coord = SkyCoord(107.18696, -70.50919, unit="deg")
9821020
>>> manifest = Tesscut.download_cutouts(coordinates=cutout_coord, size=[5, 7]*u.arcmin, sector=9) # doctest: +IGNORE_OUTPUT
9831021
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&sector=9 to ./tesscut_20210716150026.zip ... [Done]
984-
Inflating...
985-
...
9861022
>>> print(manifest) # doctest: +IGNORE_OUTPUT
9871023
Local Path
9881024
----------------------------------------------------------
9891025
./tess-s0009-4-1_107.186960_-70.509190_21x15_astrocut.fits
9901026

1027+
The query from the example above defaults to downloading cutouts from SPOC. The following example is a query for
1028+
the same target from above, but with the `products` argument passed as TICA to explicitly request for TICA cutouts,
1029+
and because the TICA products are not available for sectors 1-26, we request cutouts from sector 27 rather than sector 9.
1030+
1031+
.. doctest-remote-data::
1032+
1033+
>>> from astroquery.mast import Tesscut
1034+
>>> from astropy.coordinates import SkyCoord
1035+
>>> import astropy.units as u
1036+
...
1037+
>>> cutout_coord = SkyCoord(107.18696, -70.50919, unit="deg")
1038+
>>> manifest = Tesscut.download_cutouts(coordinates=cutout_coord, product='tica', size=[5, 7]*u.arcmin, sector=27) # doctest: +IGNORE_OUTPUT
1039+
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&sector=27 to ./tesscut_20230214150644.zip ... [Done]
1040+
>>> print(manifest) # doctest: +IGNORE_OUTPUT
1041+
Local Path
1042+
----------------------------------------------------------
1043+
./tica-s0027-4-2_107.186960_-70.509190_21x14_astrocut.fits
9911044

9921045
Sector information
9931046
------------------
@@ -1000,12 +1053,35 @@ To access sector information for a particular coordinate, object, or moving targ
10001053
>>> from astroquery.mast import Tesscut
10011054
>>> from astropy.coordinates import SkyCoord
10021055
...
1003-
>>> coord = SkyCoord(324.24368, -27.01029,unit="deg")
1056+
>>> coord = SkyCoord(135.1408, -5.1915, unit="deg")
10041057
>>> sector_table = Tesscut.get_sectors(coordinates=coord)
10051058
>>> print(sector_table) # doctest: +IGNORE_OUTPUT
10061059
sectorName sector camera ccd
10071060
-------------- ------ ------ ---
1008-
tess-s0028-1-4 28 1 4
1061+
tess-s0008-1-1 8 1 1
1062+
tess-s0034-1-2 34 1 2
1063+
1064+
Note that because of the delivery cadence of the
1065+
TICA high level science products, later sectors will be available sooner with TICA than with
1066+
SPOC. Also note that TICA is not available for sectors 1-26. The following example is the same
1067+
query as above, but for TICA. Notice that products for sector 8 are no longer available,
1068+
but are now available for sector 61.
1069+
1070+
.. doctest-remote-data::
1071+
1072+
>>> from astroquery.mast import Tesscut
1073+
>>> from astropy.coordinates import SkyCoord
1074+
...
1075+
>>> coord = SkyCoord(135.1408, -5.1915, unit="deg")
1076+
>>> sector_table = Tesscut.get_sectors(coordinates=coord, product='tica')
1077+
>>> print(sector_table) # doctest: +IGNORE_OUTPUT
1078+
sectorName sector camera ccd
1079+
-------------- ------ ------ ---
1080+
tica-s0034-1-2 34 1 2
1081+
tica-s0061-1-2 61 1 2
1082+
1083+
The following example will request SPOC cutouts using the `objectname` argument, rather
1084+
than a set of coordinates.
10091085

10101086
.. doctest-remote-data::
10111087

@@ -1017,6 +1093,7 @@ To access sector information for a particular coordinate, object, or moving targ
10171093
-------------- ------ ------ ---
10181094
tess-s0010-1-4 10 1 4
10191095

1096+
The following example requests SPOC cutouts for a moving target.
10201097

10211098
.. doctest-remote-data::
10221099

@@ -1030,6 +1107,21 @@ To access sector information for a particular coordinate, object, or moving targ
10301107
tess-s0043-3-3 43 3 3
10311108
tess-s0044-2-4 44 2 4
10321109

1110+
Note that the moving targets functionality is not currently available for TICA,
1111+
so the query will always default to SPOC.
1112+
1113+
.. doctest-remote-data::
1114+
1115+
>>> from astroquery.mast import Tesscut
1116+
...
1117+
>>> sector_table = Tesscut.get_sectors(objectname="Ceres", moving_target=True)
1118+
WARNING: InputWarning: Only SPOC is available for moving targets queries. Defaulting to SPOC. [astroquery.mast.cutouts]
1119+
>>> print(sector_table)
1120+
sectorName sector camera ccd
1121+
-------------- ------ ------ ---
1122+
tess-s0029-1-4 29 1 4
1123+
tess-s0043-3-3 43 3 3
1124+
tess-s0044-2-4 44 2 4
10331125

10341126
Zcut
10351127
====

0 commit comments

Comments
 (0)