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/esa/euclid/euclid.rst
+21-20Lines changed: 21 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -319,21 +319,21 @@ and their sky coverage (in its "fov" field) is queried using ADQL_. Please note:
319
319
320
320
**Step 2:** The get_product_ method is used to download the fits file(s) listed in the "file_name" field included in the table returned in the previous step. The method returns the local path where the product(s) is saved.
321
321
322
-
**Notes:**
323
-
324
-
* Given the size of the Euclid FITS images (~1.4 GB for the MER images and ~7 GB for calibrated VIS images) downloading individual files is time consuming (depending on the internet bandwith).
322
+
.. note::
323
+
* Given the size of the Euclid FITS images (~1.4 GB for the MER images and ~7 GB for calibrated VIS images) downloading individual files is time consuming (depending on the internet bandwith).
324
+
* This step can be skipped if using ESA Datalabs_ (as direct access to the products is possible).
325
325
326
-
* This step can be skipped if using ESA Datalabs_ (as direct access to the products is possible).
326
+
.. Skip testing as the example requires a lot of time to download a huge file
**Step 3:** Open the FITS file and inspect its content.
338
338
339
339
.. doctest-skip::
@@ -362,17 +362,17 @@ and their sky coverage (in its "fov" field) is queried using ADQL_. Please note:
362
362
363
363
It is also possible to download just small portions of the MER (background subtracted) images. The get_cutout_ allows to download image cutouts and store them locally - for reference, downloading a 1'x1'cutout takes less than one second and the downloaded fits file weights ~5.5 MB. In the example below, the results of Step 1 are used to build the file_path of the MER background-subtracted mosaic, which is the only required product input for the get_cutout method. This method now only retrieves cutouts from MER mosaics.
364
364
365
-
**Notes:**
366
-
This method...
365
+
.. note::
366
+
This method...
367
367
368
-
* makes use of the `Astroquery cutout service <https://astroquery.readthedocs.io/en/latest/image_cutouts/image_cutouts.html>`_ to extract a cutout from a MER (background-subtracted) mosaic. It only supports MER mosaics. For more advanced use cases please see the Cutouts.ipynb notebook available in the Euclid Datalabs_.
368
+
* makes use of `astroquery.image_cutouts` to extract a cutout from a MER (background-subtracted) mosaic. It only supports MER mosaics. For more advanced use cases please see the Cutouts.ipynb notebook available in the Euclid Datalabs_.
369
369
370
-
* accepts both Astropy SkyCoord_ coordinates and Simbad/VizieR/NED valid names (as string).
370
+
* accepts both Astropy SkyCoord_ coordinates and Simbad/VizieR/NED valid names (as string).
371
371
372
372
Download the cutout...
373
373
374
-
.. doctest-skip::
375
374
.. Skip testing as the example requires a lot of time to download a huge file
In the Archive the 1D Spectra data is served via the the Datalink_ (a data access protocol compliant with the IVOA_ architecture) service. Programmatically, this product is accessible via the get_spectrum_ method (see the
401
401
`Access to spectra <https://s2e2.cosmos.esa.int/www/ek_iscience/Access_to_spectra.html>`_ section in the Archive help for more information about this product).
402
402
403
-
**Notes:** As it happens when accessing to other Euclid products:
403
+
.. note::
404
+
As it happens when accessing to other Euclid products:
404
405
405
-
* a two-step approach as detailed in Sect. 1.6 and 1.7 above is needed.
406
+
* a two-step approach as detailed in Sect. 1.6 and 1.7 above is needed.
406
407
407
-
* downloading of products is not needed when using ESA Datalabs_.
408
+
* downloading of products is not needed when using ESA Datalabs_.
408
409
409
410
410
411
**Step 1:** First, a list of sources that have associated spectra must be compiled. This information is available in the spectra_source table, that also includes the FITs file name and other metadata that is relevant if reading the spectra from Datalabs_:
@@ -501,8 +502,8 @@ package will also be available:
501
502
502
503
There are several ways to log in to the Euclid archive, as detailed below:
503
504
504
-
.. doctest-skip::
505
505
.. Skip testing as the example require authentication
506
+
.. doctest-skip::
506
507
507
508
>>> from astroquery.esa.euclid import Euclid
508
509
>>> Euclid.login_gui() # Login via graphic interface (pop-up window)
@@ -517,8 +518,8 @@ There are several ways to log in to the Euclid archive, as detailed below:
517
518
All the asynchronous jobs launched by registered users are stored in the user area, which can store up to 10 GB of jobs. Therefore, it is recommended to remove unnecessary jobs to avoid filling up the user quota.
518
519
The example below shows how to delete all the jobs in the user area using the list_async_jobs and remove_jobs_ methods.
519
520
520
-
.. doctest-skip::
521
521
.. Skip testing as the example require authentication
522
+
.. doctest-skip::
522
523
523
524
>>> Euclid.login()
524
525
>>> job_ids = [job.jobid for job in Euclid.list_async_jobs()]
@@ -529,8 +530,8 @@ It is also possible to take advantage of the job metadata to delete all the jobs
529
530
530
531
First, use the load_async_job_ method to download the metadata of the async jobs stored in the user space:
531
532
532
-
.. doctest-skip::
533
533
.. Skip testing as the example require authentication
534
+
.. doctest-skip::
534
535
535
536
>>> job_obj = [Euclid.load_async_job(jobid=jobid) for jobid in job_ids]
536
537
>>> job_ids = [job.jobid for job in job_obj]
@@ -547,8 +548,8 @@ Second, create a dataframe that contains the jobid and date information:
547
548
548
549
Finally, extract the job id's included in a given time range (in the example below, all the jobs stored since 2024-10-01 at 7 hours UTC) and delete them:
549
550
550
-
.. doctest-skip::
551
551
.. Skip testing as the example require authentication
0 commit comments