You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/mocserver/mocserver.rst
+17-17Lines changed: 17 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,8 +41,8 @@ meta-data equals to ``"image"``).
41
41
42
42
This package implements two methods:
43
43
44
-
* :meth:`~astroquery.mocserver.MOCserver.query_region` retrieving data-sets (their associated MOCs and meta-datas) having sources in a given region.
45
-
* :meth:`~astroquery.mocserver.MOCserver.find_datasets` retrieving data-sets (their associated MOCs and meta-datas) based on the
44
+
* :meth:`~astroquery.mocserver.MOCServerClass.query_region` retrieving data-sets (their associated MOCs and meta-datas) having sources in a given region.
45
+
* :meth:`~astroquery.mocserver.MOCServerClass.find_datasets` retrieving data-sets (their associated MOCs and meta-datas) based on the
46
46
values of their meta-datas.
47
47
48
48
Requirements
@@ -65,9 +65,9 @@ The first thing to do is to import the `regions`_ package and the ``mocserver``
65
65
66
66
>>>from astropy import coordinates
67
67
>>>from regions import CircleSkyRegion
68
-
>>>from astroquery.mocserver importmocserver
68
+
>>>from astroquery.mocserver importMOCServer
69
69
70
-
``mocserver`` implements the method :meth:`~astroquery.mocserver.MOCserver.query_region` and this is what we will use.
70
+
``mocserver`` implements the method :meth:`~astroquery.mocserver.MOCServerClass.query_region` and this is what we will use.
71
71
First, we need to define a cone region. For that purpose we will instantiate a `regions.CircleSkyRegion` object:
72
72
73
73
.. code-block:: python
@@ -77,11 +77,11 @@ First, we need to define a cone region. For that purpose we will instantiate a `
77
77
78
78
>>> cone = CircleSkyRegion(center, radius)
79
79
80
-
And basically call the :meth:`~astroquery.mocserver.MOCserver.query_region` method with the cone and that's all.
80
+
And basically call the :meth:`~astroquery.mocserver.MOCServerClass.query_region` method with the cone and that's all.
0 commit comments