@@ -255,6 +255,8 @@ This query performs a cone search centered at the specified ra/dec coordinates w
255
255
256
256
>>> # example cone search for source NGC6505
257
257
>>> from astroquery.esa.euclid import Euclid
258
+ >>> from astropy.coordinates import SkyCoord
259
+ >>> import astropy.units as u
258
260
>>> coord = SkyCoord(" 17h51m07.4s +65d31m50.8s" , frame = ' icrs' )
259
261
>>> radius = u.Quantity(0.5 , u.deg)
260
262
>>> job = Euclid.cone_search(coordinate = coord, radius = radius, table_name = " sedm.mosaic_product" , ra_column_name = " ra" , dec_column_name = " dec" , columns = " *" , async_job = True )
@@ -308,6 +310,8 @@ The method returns the job results as astropy.table
308
310
309
311
>>> # Search for objects around a given position with the default catalog catalogue.mer_catalogue
310
312
>>> from astroquery.esa.euclid import Euclid
313
+ >>> from astropy.coordinates import SkyCoord
314
+ >>> import astropy.units as u
311
315
>>> coord = SkyCoord(ra = 60.3372780005097 , dec = - 49.93184727724773 , unit = (u.degree, u.degree), frame = ' icrs' )
312
316
>>> table = Euclid.query_object(coordinate = coord, width = u.Quantity(0.1 , u.deg), height = u.Quantity(0.1 , u.deg))
313
317
>>> print (" Found a total of" , len (table), " query results" )
@@ -339,6 +343,8 @@ The previous query can be executed as an asynchronous version:
339
343
.. doctest-skip ::
340
344
341
345
>>> from astroquery.esa.euclid import Euclid
346
+ >>> from astropy.coordinates import SkyCoord
347
+ >>> import astropy.units as u
342
348
>>> coord = SkyCoord(ra = 60.3372780005097 , dec = - 49.93184727724773 , unit = (u.degree, u.degree), frame = ' icrs' )
343
349
>>> width= u.Quantity(0.1 , u.deg)
344
350
>>> height= u.Quantity(0.1 , u.deg)
@@ -742,6 +748,8 @@ To download a cutout given its file path, instrument and obs_id, and the cutout
742
748
743
749
>>> # the map cone_results was previously obtained by the query executed in section 2.1
744
750
>>> from astroquery.esa.euclid import Euclid
751
+ >>> from astropy.coordinates import SkyCoord
752
+ >>> import astropy.units as u
745
753
>>> example_file = cone_results[cone_results[' instrument_name' ] == ' VIS' ][0 ]
746
754
>>> # getting the arguments from the cone search result table automatically
747
755
>>> file_path= example_file[" file_path" ] + " /" + example_file[" file_name" ]
0 commit comments