Skip to content

Commit 41b8c5f

Browse files
Update some markdown and fix code to address comments
1 parent 91c8d38 commit 41b8c5f

File tree

1 file changed

+17
-9
lines changed

1 file changed

+17
-9
lines changed

tutorials/cloud_access/euclid-cloud-access.md

+17-9
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ jupytext:
66
format_version: 0.13
77
jupytext_version: 1.16.3
88
kernelspec:
9-
display_name: irsa-tutorials
9+
display_name: Python 3 (ipykernel)
1010
language: python
1111
name: python3
1212
---
@@ -16,18 +16,24 @@ kernelspec:
1616
+++
1717

1818
## Learning Goals
19-
- Learn where Euclid QR1 data is present in the cloud
20-
- Find an image and retireve its cutout from cloud
21-
- Find an object and retrieve its spectrum from cloud
19+
By the end of this tutorial, you will:
20+
- Learn where Euclid Q1 data are stored in the cloud.
21+
- Retrieve an image cutout from the cloud.
22+
- Retrieve a spectrum from the cloud.
2223

2324
+++
2425

2526
## Introduction
26-
TODO: fill with links of docs/specs?
27+
Euclid launched in July 2023 as a European Space Agency (ESA) mission with involvement by NASA. The primary science goals of Euclid are to better understand the composition and evolution of the dark Universe. The Euclid mission is providing space-based imaging and spectroscopy as well as supporting ground-based imaging to achieve these primary goals. These data will be archived by multiple global repositories, including IRSA, where they will support transformational work in many areas of astrophysics.
28+
29+
Euclid Quick Release 1 (Q1) consists of consists of ~30 TB of imaging, spectroscopy, and catalogs covering four non-contiguous fields: Euclid Deep Field North (22.9 sq deg), Euclid Deep Field Fornax (12.1 sq deg), Euclid Deep Field South (28.1 sq deg), and LDN1641.
30+
31+
Euclid Q1 data were released on-premises at IPAC and in the cloud via Amazon Web Services' Open Data Repository. This notebook introduces users to accessing Euclid Q1 data from the cloud. Additional Euclid-specific notebooks can be found at ["Accessing Euclid data" section](https://caltech-ipac.github.io/irsa-tutorials/#accessing-euclid-data) and additional notebooks about how to access IRSA-curated data from the AWS ODR can be found at ["Accessing IRSA's cloud holdings" section](https://caltech-ipac.github.io/irsa-tutorials/#accessing-irsa-s-cloud-holdings).
2732

2833
+++
2934

3035
## Imports
36+
- TODO: fill the imports explaination
3137

3238
```{code-cell} ipython3
3339
# Uncomment the next line to install dependencies if needed.
@@ -58,6 +64,8 @@ BUCKET_NAME='nasa-irsa-euclid-q1' # internal to IPAC until public release (use L
5864
s3 = s3fs.S3FileSystem(anon=True)
5965
```
6066

67+
TODO: link s3fs docs
68+
6169
```{code-cell} ipython3
6270
s3.ls(f'{BUCKET_NAME}/q1')
6371
```
@@ -95,16 +103,16 @@ List all Simple Image Access (SIA) collections for IRSA.
95103

96104
```{code-cell} ipython3
97105
collections = Irsa.list_collections(servicetype='SIA')
98-
len(tbl)
106+
len(collections)
99107
```
100108

101109
Filter to only those containing "euclid":
102110

103111
```{code-cell} ipython3
104-
tbl[['euclid' in v for v in tbl['collection']]]
112+
collections[['euclid' in v for v in collections['collection']]]
105113
```
106114

107-
We identify the collection we need for MER images:
115+
As per "Data Products Overview" in [user guide](https://irsa.ipac.caltech.edu/data/Euclid/docs/euclid_archive_at_irsa_user_guide.pdf) and the above table, we identify that MER Mosiacs are available as follows:
108116

109117
```{code-cell} ipython3
110118
img_collection = 'euclid_DpdMerBksMosaic'
@@ -234,7 +242,7 @@ search_radius = (5 * u.arcsec).to('deg')
234242
adql_query = f"SELECT * \
235243
FROM {euclid_mer_catalog} \
236244
WHERE CONTAINS(POINT('ICRS', ra, dec), \
237-
CIRCLE('ICRS', {ra.value}, {dec.value}, {search_radius.value})) = 1"
245+
CIRCLE('ICRS', {coord.ra.deg}, {coord.dec.deg}, {search_radius.value})) = 1"
238246
239247
mer_catalog_tbl = Irsa.query_tap(query=adql_query).to_table()
240248
mer_catalog_tbl

0 commit comments

Comments
 (0)