Skip to content

Commit baa5eeb

Browse files
Jorge Fernandez HernandezJorge Fernandez Hernandez
authored andcommitted
EUCLIDPCR-1863 Include missing dependencies
1 parent 975affb commit baa5eeb

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

docs/esa/euclid/euclid.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -255,6 +255,8 @@ This query performs a cone search centered at the specified ra/dec coordinates w
255255

256256
>>> #example cone search for source NGC6505
257257
>>> from astroquery.esa.euclid import Euclid
258+
>>> from astropy.coordinates import SkyCoord
259+
>>> import astropy.units as u
258260
>>> coord = SkyCoord("17h51m07.4s +65d31m50.8s", frame='icrs')
259261
>>> radius = u.Quantity(0.5, u.deg)
260262
>>> 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
308310

309311
>>> # Search for objects around a given position with the default catalog catalogue.mer_catalogue
310312
>>> from astroquery.esa.euclid import Euclid
313+
>>> from astropy.coordinates import SkyCoord
314+
>>> import astropy.units as u
311315
>>> coord = SkyCoord(ra=60.3372780005097, dec=-49.93184727724773, unit=(u.degree, u.degree), frame='icrs')
312316
>>> table = Euclid.query_object(coordinate=coord, width=u.Quantity(0.1, u.deg), height= u.Quantity(0.1, u.deg))
313317
>>> print("Found a total of", len(table), "query results")
@@ -339,6 +343,8 @@ The previous query can be executed as an asynchronous version:
339343
.. doctest-skip::
340344

341345
>>> from astroquery.esa.euclid import Euclid
346+
>>> from astropy.coordinates import SkyCoord
347+
>>> import astropy.units as u
342348
>>> coord = SkyCoord(ra=60.3372780005097, dec=-49.93184727724773, unit=(u.degree, u.degree), frame='icrs')
343349
>>> width=u.Quantity(0.1, u.deg)
344350
>>> 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
742748

743749
>>> # the map cone_results was previously obtained by the query executed in section 2.1
744750
>>> from astroquery.esa.euclid import Euclid
751+
>>> from astropy.coordinates import SkyCoord
752+
>>> import astropy.units as u
745753
>>> example_file = cone_results[cone_results['instrument_name'] == 'VIS'][0]
746754
>>> # getting the arguments from the cone search result table automatically
747755
>>> file_path=example_file["file_path"] + "/" + example_file["file_name"]

0 commit comments

Comments
 (0)