@@ -46,10 +46,10 @@ This method also accepts a string to limit the number of responses. Let's try wi
4646
4747..
4848 We ignore output here, as occurrence is changing often
49- .. doctest-remote-data ::
49+ .. doctest-requires :: mocpy
5050
5151 >>> from astroquery.mocserver import MOCServer
52- >>> MOCServer.list_fields(" MOC" ) # doctest: +IGNORE_OUTPUT
52+ >>> MOCServer.list_fields(" MOC" ) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
5353 <Table length=7>
5454 field_name occurrence example
5555 str27 int64 str70
@@ -83,15 +83,15 @@ Let's get the datasets for which all the data is comprised in a cone (this is
8383what the ``enclosed `` option means for intersect). We also restrict our search to
8484datasets describing the sky (with ``coordinate_system=sky ``).
8585
86- .. doctest-remote-data ::
86+ .. doctest-requires :: mocpy
8787
8888 >>> from astropy import coordinates
8989 >>> from regions import CircleSkyRegion
9090 >>> from astroquery.mocserver import MOCServer
9191 >>> center = coordinates.SkyCoord(10.8 , 32.2 , unit = ' deg' )
9292 >>> radius = coordinates.Angle(0.5 , unit = ' deg' )
9393 >>> cone = CircleSkyRegion(center, radius)
94- >>> MOCServer.query_region(region = cone, intersect = " enclosed" , coordinate_system = " sky" ) # doctest: +IGNORE_OUTPUT
94+ >>> MOCServer.query_region(region = cone, intersect = " enclosed" , coordinate_system = " sky" ) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
9595 <Table length=450>
9696 ID ...
9797 str49 ...
@@ -131,7 +131,7 @@ The ``meta_data`` parameter of :meth:`~astroquery.mocserver.MOCServerClass.query
131131allows to write an algebraic expression on the metadata.
132132Let's add a criteria to get only images from the previous query:
133133
134- .. doctest-remote-data ::
134+ .. doctest-requires :: mocpy
135135
136136 >>> from astropy import coordinates
137137 >>> from regions import CircleSkyRegion
@@ -141,7 +141,7 @@ Let's add a criteria to get only images from the previous query:
141141 >>> cone = CircleSkyRegion(center, radius)
142142 >>> MOCServer.query_region(region = cone, intersect = " enclosed" ,
143143 ... fields= [' ID' , ' dataproduct_type' , ' moc_sky_fraction' ],
144- ... meta_data= " dataproduct_type=image" ) # doctest: +IGNORE_OUTPUT
144+ ... meta_data= " dataproduct_type=image" ) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
145145 <Table length=336>
146146 ID dataproduct_type moc_sky_fraction
147147 str49 str5 float64
@@ -178,11 +178,11 @@ Let's do a search on the whole sky by omitting the region parameter.
178178The next example retrieves all the ``moc_access_url `` of datasets having ``HST `` in
179179their identifier. These correspond to the Hubble surveys:
180180
181- .. doctest-remote-data ::
181+ .. doctest-requires :: mocpy
182182
183183 >>> MOCServer.query_region(meta_data = " ID=*HST*" ,
184184 ... fields= [' ID' , ' moc_access_url' ],
185- ... casesensitive= False ) # doctest: +IGNORE_OUTPUT
185+ ... casesensitive= False ) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
186186 <Table length=45>
187187 ID moc_access_url
188188 str26 str51
@@ -218,10 +218,10 @@ such as `ipyaladin <https://github.com/cds-astro/ipyaladin>`_. The
218218It accepts the same parameters (``region `` and ``meta_data `` for example) as the other
219219methods. The only difference is that the output will only contain HiPS data.
220220
221- .. doctest-remote-data ::
221+ .. doctest-requires :: mocpy
222222
223223 >>> from astroquery.mocserver import MOCServer
224- >>> MOCServer.query_hips(coordinate_system = " mars" ) # doctest: +IGNORE_OUTPUT
224+ >>> MOCServer.query_hips(coordinate_system = " mars" ) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
225225 <Table length=25>
226226 ID ...
227227 str35 ...
@@ -263,7 +263,7 @@ are ``ID``, ``obs_title``, ``obs_description``, ``nb_rows``, ``obs_regime``,
263263To change this default behavior, use the ``fields `` parameter.
264264Let's say we would like only the ``ID ``, and the ``moc_sky_fraction `` for this query:
265265
266- .. doctest-remote-data ::
266+ .. doctest-requires :: mocpy
267267
268268 >>> from astropy import coordinates
269269 >>> from regions import CircleSkyRegion
@@ -273,7 +273,7 @@ Let's say we would like only the ``ID``, and the ``moc_sky_fraction`` for this q
273273 >>> cone = CircleSkyRegion(center, radius)
274274 >>> MOCServer.query_region(region = cone,
275275 ... intersect= " enclosed" ,
276- ... fields= [' ID' , ' moc_sky_fraction' ]) # doctest: +IGNORE_OUTPUT
276+ ... fields= [' ID' , ' moc_sky_fraction' ]) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
277277 <Table length=450>
278278 ID moc_sky_fraction
279279 str49 float64
@@ -297,11 +297,11 @@ Limiting the number of returned datasets
297297
298298Another parameter called ``max_rec `` specifies an upper limit for the number of data-sets to be returned:
299299
300- .. doctest-remote-data ::
300+ .. doctest-requires :: mocpy
301301
302302 >>> from astroquery.mocserver import MOCServer
303303 >>> from mocpy import MOC
304- >>> MOCServer.query_region(region = MOC .from_string(" 5/22-24" ), max_rec = 3 ) # doctest: +IGNORE_OUTPUT
304+ >>> MOCServer.query_region(region = MOC .from_string(" 5/22-24" ), max_rec = 3 ) # doctest: +IGNORE_OUTPUT +REMOTE_DATA
305305 <Table length=3>
306306 ID ... dataproduct_type
307307 str24 ... str7
@@ -325,14 +325,14 @@ of the returned MOC.
325325As an example, we would like to obtain the union of the space coverage of all the
326326Hubble surveys:
327327
328- .. doctest-remote-data ::
328+ .. doctest-requires :: mocpy
329329
330330 >>> from mocpy import MOC
331331 >>> import matplotlib.pyplot as plt
332332 >>> from astroquery.mocserver import MOCServer
333333 >>> moc = MOCServer.query_region(return_moc = " smoc" ,
334334 ... max_norder= 20 ,
335- ... meta_data= " ID=*HST*" )
335+ ... meta_data= " ID=*HST*" ) # doctest: +REMOTE_DATA
336336
337337The resulting MOC looks like:
338338
@@ -346,14 +346,14 @@ To retrieve the MOC of a specific dataset, we can use
346346This example will show you how to get the space-time MOC (i.e. a `mocpy.STMOC `
347347object) of the ``GALEXGR6/AIS/FUV `` survey.
348348
349- .. doctest-remote-data ::
349+ .. doctest-requires :: mocpy
350350
351351 >>> from mocpy import MOC
352352 >>> from astroquery.mocserver import MOCServer
353353 >>> moc_galex = MOCServer.query_region(meta_data = " ID=CDS/P/GALEXGR6/AIS/FUV" ,
354- ... return_moc= " stmoc" , max_norder= " s7 t26" )
354+ ... return_moc= " stmoc" , max_norder= " s7 t26" ) # doctest: +REMOTE_DATA
355355 >>> print (f " GALEX GR6 contains data taken from { moc_galex.min_time.iso} to "
356- ... f " { moc_galex.max_time.iso} . " )
356+ ... f " { moc_galex.max_time.iso} . " ) # doctest: +REMOTE_DATA
357357 GALEX GR6 contains data taken from 2010-03-31 18:02:05.602 to 2010-06-01 18:57:24.787.
358358
359359.. note ::
@@ -369,21 +369,21 @@ The default value for ``coordinate_system`` is ``None``. It means that we're loo
369369data for the sky and all other possible frames. This parameter can take all the values
370370listed by `astroquery.mocserver.MOCServerClass.list_coordinate_systems `:
371371
372- .. doctest-remote-data ::
372+ .. doctest-requires :: mocpy
373373
374374 >>> from astroquery.mocserver import MOCServer
375- >>> MOCServer.list_coordinate_systems()
375+ >>> MOCServer.list_coordinate_systems() # doctest: +REMOTE_DATA
376376 ['ariel', 'callisto', 'ceres', 'charon', 'dione', 'earth', 'enceladus', 'equatorial', 'europa', 'galactic', 'ganymede', 'iapetus', 'io', 'jupiter', 'mars', 'mars-pia20284', 'mars-pia24422', 'mars-stimson', 'mercury', 'mimas', 'miranda', 'moon', 'moon-pan1', 'neptune', 'oberon', 'pluto', 'rhea', 'sky', 'sun', 'tethys', 'titan', 'titania', 'triton', 'umbriel', 'venus']
377377
378378Where the special value ``sky `` means any celestial frame (mainly ``equatorial `` and
379379``galactic ``).
380380
381381The ``coordinate_system `` parameter can be used in any of the query methods like so:
382382
383- .. doctest-remote-data ::
383+ .. doctest-requires :: mocpy
384384
385385 >>> from astroquery.mocserver import MOCServer
386- >>> MOCServer.query_hips(coordinate_system = " ariel" )
386+ >>> MOCServer.query_hips(coordinate_system = " ariel" ) # doctest: +REMOTE_DATA
387387 <Table length=1>
388388 ID obs_title ... dataproduct_type
389389 str19 str13 ... str5
0 commit comments