@@ -435,7 +435,7 @@ with a `~astropy.table.Table` of data products, or a list (or single) obsid as t
435
435
As an alternative to downloading the data files now, the ``curl_flag `` can be used instead to instead get a curl script that can be used to download the files at a later time.
436
436
437
437
.. doctest-remote-data ::
438
-
438
+
439
439
>>> from astroquery.mast import Observations
440
440
...
441
441
>>> single_obs = Observations.query_criteria(obs_collection = " IUE" , obs_id = " lwp13058" )
@@ -462,13 +462,13 @@ the ``local_path`` keyword argument.
462
462
>>> product = data_products[0 ][" dataURI" ]
463
463
>>> print (product)
464
464
mast:IUE/url/pub/iue/data/lwp/13000/lwp13058.elbll.gz
465
-
466
465
>>> result = Observations.download_file(product) # doctest: +IGNORE_OUTPUT
467
466
Downloading URL https://mast.stsci.edu/api/v0.1/Download/file?uri=mast:IUE/url/pub/iue/data/lwp/13000/lwp13058.elbll.gz to ./lwp13058.elbll.gz ... [Done]
468
467
...
469
468
>>> print (result)
470
469
('COMPLETE', None, None)
471
470
471
+
472
472
Cloud Data Access
473
473
------------------
474
474
Public datasets from the Hubble, Kepler and TESS telescopes are also available for free on Amazon Web Services
@@ -681,7 +681,6 @@ The table to query is a required parameter.
681
681
... catalog= " Panstarrs" , data_release= " dr1" , table= " mean" )
682
682
>>> print (" Number of results:" ,len (catalog_data))
683
683
Number of results: 7007
684
-
685
684
>>> print (catalog_data[:10 ]) # doctest: +IGNORE_OUTPUT
686
685
ObjName objAltName1 ... yFlags distance
687
686
-------------------------- ----------- ... ------ --------------------
@@ -810,7 +809,6 @@ Given an HSC Match ID, return all catalog results.
810
809
>>> matchid = catalog_data[0 ][" MatchID" ]
811
810
>>> print (matchid)
812
811
63980492
813
-
814
812
>>> matches = Catalogs.query_hsc_matchid(matchid)
815
813
>>> print (matches)
816
814
CatID MatchID ... cd_matrix
@@ -907,26 +905,26 @@ and returns a target pixel file, with format described `here <https://astrocut.r
907
905
...
908
906
>>> cutout_coord = SkyCoord(107.18696 , - 70.50919 , unit = " deg" )
909
907
>>> hdulist = Tesscut.get_cutouts(coordinates = cutout_coord, size = 5 )
910
- >>> hdulist[0 ].info()
908
+ >>> hdulist[0 ].info() # doctest: +IGNORE_OUTPUT
911
909
Filename: <class '_io.BytesIO'>
912
910
No. Name Ver Type Cards Dimensions Format
913
- 0 PRIMARY 1 PrimaryHDU 56 ()
914
- 1 PIXELS 1 BinTableHDU 280 1288R x 12C [D, E, J, 25J, 25E, 25E, 25E, 25E, J, E, E, 38A]
915
- 2 APERTURE 1 ImageHDU 81 (5, 5) int32
911
+ 0 PRIMARY 1 PrimaryHDU 56 ()
912
+ 1 PIXELS 1 BinTableHDU 280 1060R x 12C [D, E, J, 25J, 25E, 25E, 25E, 25E, J, E, E, 38A]
913
+ 2 APERTURE 1 ImageHDU 81 (5, 5) int32
916
914
917
915
918
916
.. doctest-remote-data ::
919
917
920
918
>>> from astroquery.mast import Tesscut
921
919
...
922
920
>>> hdulist = Tesscut.get_cutouts(objectname = " TIC 32449963" , size = 5 )
923
- >>> hdulist[0 ].info()
921
+ >>> hdulist[0 ].info() # doctest: +IGNORE_OUTPUT
924
922
Filename: <class '_io.BytesIO'>
925
923
No. Name Ver Type Cards Dimensions Format
926
- 0 PRIMARY 1 PrimaryHDU 56 ()
927
- 1 PIXELS 1 BinTableHDU 280 1211R x 12C [D, E, J, 25J, 25E, 25E, 25E, 25E, J, E, E, 38A]
928
- 2 APERTURE 1 ImageHDU 81 (5, 5) int32
929
-
924
+ 0 PRIMARY 1 PrimaryHDU 56 ()
925
+ 1 PIXELS 1 BinTableHDU 280 3477R x 12C [D, E, J, 25J, 25E, 25E, 25E, 25E, J, E, E, 38A]
926
+ 2 APERTURE 1 ImageHDU 81 (5, 5) int32
927
+
930
928
931
929
Requesting a cutout by moving_target accesses the
932
930
`MAST Moving Target TESScut API <https://mast.stsci.edu/tesscut/docs/getting_started.html#moving-target-cutouts >`__
@@ -943,11 +941,9 @@ The moving_target is an optional bool argument where `True` signifies that the a
943
941
>>> hdulist[0 ].info()
944
942
Filename: <class '_io.BytesIO'>
945
943
No. Name Ver Type Cards Dimensions Format
946
- 0 PRIMARY 1 PrimaryHDU 54 ()
947
- 1 PIXELS 1 BinTableHDU 150 355R x 16C [D, E, J, 25J, 25E, 25E, 25E, 25E, J, E, E, 38A, D, D, D, D]
948
- 2 APERTURE 1 ImageHDU 97 (2136, 2078) int32
949
-
950
-
944
+ 0 PRIMARY 1 PrimaryHDU 54 ()
945
+ 1 PIXELS 1 BinTableHDU 150 355R x 16C [D, E, J, 25J, 25E, 25E, 25E, 25E, J, E, E, 38A, D, D, D, D]
946
+ 2 APERTURE 1 ImageHDU 97 (2136, 2078) int32
951
947
952
948
953
949
The `~astroquery.mast.TesscutClass.download_cutouts ` function takes a coordinate, cutout size
@@ -1063,7 +1059,7 @@ If a given coordinate appears in more than one Zcut survey, a cutout will be pro
1063
1059
>>> manifest = Zcut.download_cutouts(coordinates = cutout_coord, size = [200 , 300 ], units = " px" ) # doctest: +IGNORE_OUTPUT
1064
1060
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]
1065
1061
Inflating...
1066
-
1062
+ ...
1067
1063
>>> print (manifest) # doctest: +IGNORE_OUTPUT
1068
1064
Local Path
1069
1065
-------------------------------------------------------------------------
0 commit comments