Skip to content

Commit 70a2621

Browse files
committed
Fixing the remainig failing remote examples
1 parent 86b2354 commit 70a2621

File tree

1 file changed

+15
-19
lines changed

1 file changed

+15
-19
lines changed

docs/mast/mast.rst

Lines changed: 15 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -435,7 +435,7 @@ with a `~astropy.table.Table` of data products, or a list (or single) obsid as t
435435
​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.
436436

437437
.. doctest-remote-data::
438-
438+
439439
>>> from astroquery.mast import Observations
440440
...
441441
>>> single_obs = Observations.query_criteria(obs_collection="IUE", obs_id="lwp13058")
@@ -462,13 +462,13 @@ the ``local_path`` keyword argument.
462462
>>> product = data_products[0]["dataURI"]
463463
>>> print(product)
464464
mast:IUE/url/pub/iue/data/lwp/13000/lwp13058.elbll.gz
465-
466465
>>> result = Observations.download_file(product) # doctest: +IGNORE_OUTPUT
467466
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]
468467
...
469468
>>> print(result)
470469
('COMPLETE', None, None)
471470

471+
472472
Cloud Data Access
473473
------------------
474474
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.
681681
... catalog="Panstarrs", data_release="dr1", table="mean")
682682
>>> print("Number of results:",len(catalog_data))
683683
Number of results: 7007
684-
685684
>>> print(catalog_data[:10]) # doctest: +IGNORE_OUTPUT
686685
ObjName objAltName1 ... yFlags distance
687686
-------------------------- ----------- ... ------ --------------------
@@ -810,7 +809,6 @@ Given an HSC Match ID, return all catalog results.
810809
>>> matchid = catalog_data[0]["MatchID"]
811810
>>> print(matchid)
812811
63980492
813-
814812
>>> matches = Catalogs.query_hsc_matchid(matchid)
815813
>>> print(matches)
816814
CatID MatchID ... cd_matrix
@@ -907,26 +905,26 @@ and returns a target pixel file, with format described `here <https://astrocut.r
907905
...
908906
>>> cutout_coord = SkyCoord(107.18696, -70.50919, unit="deg")
909907
>>> hdulist = Tesscut.get_cutouts(coordinates=cutout_coord, size=5)
910-
>>> hdulist[0].info()
908+
>>> hdulist[0].info() # doctest: +IGNORE_OUTPUT
911909
Filename: <class '_io.BytesIO'>
912910
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
916914

917915

918916
.. doctest-remote-data::
919917

920918
>>> from astroquery.mast import Tesscut
921919
...
922920
>>> hdulist = Tesscut.get_cutouts(objectname="TIC 32449963", size=5)
923-
>>> hdulist[0].info()
921+
>>> hdulist[0].info() # doctest: +IGNORE_OUTPUT
924922
Filename: <class '_io.BytesIO'>
925923
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+
930928

931929
Requesting a cutout by moving_target accesses the
932930
`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
943941
>>> hdulist[0].info()
944942
Filename: <class '_io.BytesIO'>
945943
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
951947

952948

953949
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
10631059
>>> manifest = Zcut.download_cutouts(coordinates=cutout_coord, size=[200, 300], units="px") # doctest: +IGNORE_OUTPUT
10641060
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]
10651061
Inflating...
1066-
1062+
...
10671063
>>> print(manifest) # doctest: +IGNORE_OUTPUT
10681064
Local Path
10691065
-------------------------------------------------------------------------

0 commit comments

Comments
 (0)