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: tutorials/spherex/spherex_psf.md
+8-10Lines changed: 8 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,15 +21,6 @@ kernelspec:
21
21
22
22
+++
23
23
24
-
```{warning}
25
-
In the SPHEREx spectral image versions prior or equal to 6.5.5, there was a missmatch between the spatial layout of the PSF zones and the the indexing of the PSF zones in the image header. This has now been fixed in versions post 6.5.5.
26
-
However, users using the old versions will need to implement and extra step (described below in Section 5.1) to update the image header.
27
-
28
-
For more information about these changes, see the following webpage: [PSF Erratum](https://irsa.ipac.caltech.edu/data/SPHEREx/docs/psfhdrerr.html)
29
-
```
30
-
31
-
+++
32
-
33
24
## 1. Learning Goals
34
25
35
26
* Determine how pixels in a SPHEREx cutout map to the pixels in the parent SPHEREx spectral image.
@@ -39,6 +30,12 @@ For more information about these changes, see the following webpage: [PSF Erratu
39
30
40
31
+++
41
32
33
+
```{note}
34
+
This notebook is not intended for use of QR-1 data.
35
+
```
36
+
37
+
+++
38
+
42
39
## 2. SPHEREx Overview
43
40
44
41
SPHEREx is a NASA Astrophysics Medium Explorer mission that launched in March 2025.
@@ -226,7 +223,7 @@ In the SPHEREx spectral image versions prior or equal to 6.5.5, there was a miss
226
223
227
224
For more information about these changes, see the following webpage: [PSF Erratum](https://irsa.ipac.caltech.edu/data/SPHEREx/docs/psfhdrerr.html)
228
225
229
-
**Users using the old versions will need to implement and extra step (described below) to update the image header.**
226
+
**Users using the old versions will need to implement and extra step to update the image header. A function to update the header is given [in Section 5.1 below](#update_psf_header_function). **
230
227
```
231
228
232
229
Let's first check here if a header update is necessary. We can do that by printing the `VERSION` keyword in the header.
@@ -282,6 +279,7 @@ The function that can be used to update the header is shown below. The function
282
279
Note that this function an work as standalone function to process many images.
283
280
284
281
```{code-cell} ipython3
282
+
<a id="update_psf_header_function"></a>
285
283
def update_psf_header(old_hdul):
286
284
"""
287
285
Fix a old PSF FITS file header by rewriting only the per-plane header metadata
0 commit comments