Skip to content

Commit bbbd28b

Browse files
authored
Merge pull request #75 from Caltech-IPAC/vandesai1-patch-1
Update 1_Euclid_intro_MER_images.md
2 parents be2f31c + 0e28d90 commit bbbd28b

File tree

1 file changed

+21
-29
lines changed

1 file changed

+21
-29
lines changed

tutorials/euclid_access/1_Euclid_intro_MER_images.md

Lines changed: 21 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -20,29 +20,23 @@ kernelspec:
2020
+++
2121

2222
By the end of this tutorial, you will:
23-
- Understand the basic characteristics of Euclid Q1 MER mosaics.
24-
- How do download full MER mosaics.
25-
- How to make smaller cutouts of MER mosaics.
26-
- Use matplotlib to plot a grid of cutouts.
27-
- Identify sources in the cutouts and make basic measurements.
23+
- understand the basic characteristics of Euclid Q1 MER mosaics;
24+
- know how to download full MER mosaics;
25+
- know how to make smaller cutouts of MER mosaics;
26+
- know how to use matplotlib to plot a grid of cutouts;
27+
- know how to identify sources in the cutouts and make basic measurements.
2828

2929
+++
3030

3131
## Introduction
3232

3333
+++
3434

35-
Euclid is a European Space Agency (ESA) space mission with NASA participation, to study the geometry and nature of the dark Universe.
36-
The Quick Data Release 1 (Q1) are the first data release from the Euclid mission after the Early Release Observations (ERO).
37-
On March 19, 2025 the data will be available on the [ESA archive](https://easidr.esac.esa.int/sas/) and on the [IRSA archive](https://irsa.ipac.caltech.edu).
35+
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.
3836

39-
These Q1 notebooks focus on how to access, download, and process Euclid Q1 data from the IRSA archive.
40-
If you have any issues accessing data from the archives, please contact the helpdesk directly: [IRSA helpdesk](https://irsa.ipac.caltech.edu/docs/help_desk.html) and [ESA Euclid Helpdesk](https://support.cosmos.esa.int/euclid).
37+
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.
4138

42-
MER mosaic images are all the images from Level 2 images in different filters mapped to a common pixel scale.
43-
44-
This notebook provides an introduction to MER mosaics released as part of Euclid Q1.
45-
Other Euclid notebooks show how to use other data products released as part of Euclid Q1.
39+
Among the data products included in the Q1 release are the Level 2 MER mosaics. These are multiwavelength mosaics created from images taken with the Euclid instruments (VIS and NISP), as well as a variety of ground-based telescopes. All of the mosaics have been created according to a uniform tiling on the sky, and mapped to a common pixel scale. This notebook provides a quick introduction to accessing MER mosaics from IRSA. If you have questions about it, please contact the [IRSA helpdesk].
4640

4741
+++
4842

@@ -84,16 +78,14 @@ pd.options.mode.copy_on_write = True
8478
```
8579

8680
## 1. Search for multiwavelength Euclid Q1 MER mosaics that cover the star HD 168151
87-
Below are the object name and coordinates and our search radius
81+
Below we set a search radius of 10 arcsec and convert the name "HD 168151" into coordinates.
8882

8983
```{code-cell} ipython3
9084
search_radius = 10 * u.arcsec
9185
coord = SkyCoord.from_name('HD 168151')
9286
```
9387

94-
Use IRSA to search for all Euclid data on this target.
95-
This searches specifically in the euclid_DpdMerBksMosaic "collection" which is the MER images and catalogs.
96-
This query will return any image with pixels that overlap the search region.
88+
Use IRSA's Simple Image Access (SIA) API to search for all Euclid MER mosaics that overlap with the search region you have specified. We specify the euclid_DpdMerBksMosaic "collection" because it lists all of the multiwavelength MER mosaics, along with their associated catalogs.
9789

9890
```{code-cell} ipython3
9991
irsa_service= vo.dal.sia2.SIA2Service('https://irsa.ipac.caltech.edu/SIA')
@@ -123,7 +115,7 @@ pd.set_option('display.max_colwidth', None)
123115
df_im_irsa
124116
```
125117

126-
This dataframe contains lots of other datasets that have been "Euclidized", so put on the same pixel scale as the Euclid data. For this example choose science as the data product subtype to see all images of this tile
118+
This dataframe contains lots of datasets that have been "Euclidized", which means that they have been put on a common pixel scale chosen for the Euclid mission. Choose "science" as the data product subtype to see all science images of this tile.
127119

128120
```{code-cell} ipython3
129121
df_im_euclid=df_im_irsa[ (df_im_irsa['dataproduct_subtype']=='science')].reset_index()
@@ -139,7 +131,7 @@ print('There are',len(df_im_euclid),'MER images of this object/MER tile.')
139131

140132
+++
141133

142-
### Lets first look at one example full image, the VIS image
134+
### Let's first look at one example full image, the VIS image
143135

144136
Note that 'access_estsize' is in units of kb
145137

@@ -152,15 +144,15 @@ print(filename)
152144
print(f'Please note this image is {filesize} GB. With 230 Mbps internet download speed, it takes about 1 minute to download.')
153145
```
154146

155-
### For future notebooks, extract the tileID of this image from the filename and extract the tileID
147+
### Extract the tileID of this image from the filename
156148

157149
```{code-cell} ipython3
158150
tileID=re.search(r'TILE\s*(\d{9})', filename).group(1)
159151
160152
print('The MER tile ID for this object is :',tileID)
161153
```
162154

163-
Download the MER image -- note this file is about 1.46 GB
155+
Retrieve the MER image -- note this file is about 1.46 GB
164156

165157
```{code-cell} ipython3
166158
fname = download_file(filename, cache=True)
@@ -170,29 +162,29 @@ print(hdu_mer_irsa.info())
170162
head_mer_irsa = hdu_mer_irsa[0].header
171163
```
172164

173-
Now you've downloaded this large file, if you would like to save it to disk, uncomment the following cell.
165+
If you would like to save the MER mosaic to disk, uncomment the following cell.
174166
Please also define a suitable download directory; by default it will be `data` at the same location as your notebook.
175167

176168
```{code-cell} ipython3
177169
# download_path = 'data'
178170
# hdu_mer_irsa.writeto(os.path.join(download_path, 'MER_image_VIS.fits'), overwrite=True)
179171
```
180172

181-
Have a look at the header information for this image
173+
Have a look at the header information for this image.
182174

183175
```{code-cell} ipython3
184176
head_mer_irsa
185177
```
186178

187-
Lets extract just the primary image
179+
Lets extract just the primary image.
188180

189181
```{code-cell} ipython3
190182
im_mer_irsa=hdu_mer_irsa[0].data
191183
192184
print(im_mer_irsa.shape)
193185
```
194186

195-
Make a simple plot to show the full MER image, large FOV!
187+
Make a simple plot to show the large field of view of the full MER mosaic.
196188

197189
```{code-cell} ipython3
198190
plt.imshow(im_mer_irsa, cmap='gray', origin='lower', norm=ImageNormalize(im_mer_irsa, interval=PercentileInterval(99.9), stretch=AsinhStretch()))
@@ -204,7 +196,7 @@ colorbar = plt.colorbar()
204196
+++
205197

206198
```{note}
207-
We'd like to take a look at the other MER images but only in a specific cutout of interest so we don't have to download 9 full MER images.
199+
We'd like to take a look at the multiwavelength images of our object, but the full MER mosaics are very large, so we will inspect the multiwavelength cutouts.
208200
```
209201

210202
```{code-cell} ipython3
@@ -225,7 +217,7 @@ filters = df_im_euclid['filters'].to_numpy()
225217
filters
226218
```
227219

228-
## The image above is very large, so lets cut out a smaller image to inspect these data.
220+
## The image above is very large, so let's cut out a smaller image to inspect these data.
229221

230222
```{code-cell} ipython3
231223
######################## User defined section ############################
@@ -278,7 +270,7 @@ final_hdulist.info()
278270

279271
## 3. Visualize multiwavelength Euclid Q1 MER cutouts
280272

281-
Need to determine the number of images for the grid layout, then we iterate through the images and plot each one.
273+
We need to determine the number of images for the grid layout, and then plot each cutout.
282274

283275
```{code-cell} ipython3
284276
num_images = len(final_hdulist)

0 commit comments

Comments
 (0)