Skip to content

Commit 46fa131

Browse files
mstcyr2bsipocz
authored andcommitted
Replaced catalog example
1 parent 0403898 commit 46fa131

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
@@ -692,18 +692,6 @@ If no catalog is specified, the Hubble Source Catalog will be queried.
692692
1.7524423152919317 6382034098672634846 AIS ... -- 0
693693

694694

695-
The `~astroquery.mast.CatalogsClass.query_object` method for positional queries
696-
requires a sky position with a right ascension (RA) between 0 and 360 degrees and
697-
a declination between -90 and 90 degrees. Any values outside of this range will
698-
result in an error.
699-
700-
.. doctest-remote-data::
701-
702-
>>> catalog_data = Catalogs.query_object("-158.47924 -7.30962", catalog="Galex")
703-
...
704-
ResolverError: Could not resolve -158.47924 -7.30962 to a sky position.
705-
706-
707695
Some catalogs have a maximum number of results they will return.
708696
If a query results in this maximum number of results a warning will be displayed to alert
709697
the user that they might be getting a subset of the true result set.
@@ -857,6 +845,21 @@ The TESS Input Catalog (TIC), Disk Detective Catalog, and PanSTARRS Catalog can
857845
J170314.11-035210.4 ... https://talk.diskdetective.org/#/subjects/AWI0005ckv
858846

859847

848+
The `~astroquery.mast.CatalogsClass.query_criteria` function requires at least one non-positional parameter.
849+
These parameters are the column names listed in the `field descriptions <https://mast.stsci.edu/api/v0/pages.html>`__
850+
of the catalog being queried. They do not include objectname, coordinates, or radius. Running a query with only positional
851+
parameters will result in an error.
852+
853+
.. doctest-remote-data::
854+
855+
>>> from astroquery.mast import Catalogs
856+
...
857+
>>> catalog_data = Catalogs.query_criteria(catalog="Ctl",
858+
... objectname='M101', radius=1)
859+
...
860+
InvalidQueryError: At least one non-positional criterion must be supplied.
861+
862+
860863
The PanSTARRS catalog also accepts additional parameters to allow for query refinement. These options include column selection,
861864
sorting, column criteria, page size and page number. Additional information on PanSTARRS queries may be found
862865
`here <https://catalogs.mast.stsci.edu/docs/panstarrs.html>`__.
@@ -1032,13 +1035,6 @@ not explicitly called for TICA.
10321035
1 PIXELS 1 BinTableHDU 280 1196R x 12C [D, E, J, 25J, 25E, 25E, 25E, 25E, J, E, E, 38A]
10331036
2 APERTURE 1 ImageHDU 81 (5, 5) int32
10341037

1035-
The SkyCoord constructor requires the 'unit' parameter. Unspecified units will result in an error.
1036-
1037-
.. doctest-remote-data::
1038-
1039-
>>> cutout_coord = SkyCoord(107.18696, -70.50919)
1040-
...
1041-
UnitTypeError: Longitude instances require units equivalent to 'rad', but no unit was given.
10421038

10431039
For users with time-sensitive targets who would like cutouts from the latest observations,
10441040
we recommend requesting for the TICA product. Using the same target from the example above,

0 commit comments

Comments
 (0)