Skip to content

Commit 9556d3b

Browse files
committed
removed first warning. Added note that not intended for use on QR-1; added link to function to update header.
1 parent 39a2b27 commit 9556d3b

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

tutorials/spherex/spherex_psf.md

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,6 @@ kernelspec:
2121

2222
+++
2323

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-
3324
## 1. Learning Goals
3425

3526
* 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
3930

4031
+++
4132

33+
```{note}
34+
This notebook is not intended for use of QR-1 data.
35+
```
36+
37+
+++
38+
4239
## 2. SPHEREx Overview
4340

4441
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
226223
227224
For more information about these changes, see the following webpage: [PSF Erratum](https://irsa.ipac.caltech.edu/data/SPHEREx/docs/psfhdrerr.html)
228225
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). **
230227
```
231228

232229
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
282279
Note that this function an work as standalone function to process many images.
283280

284281
```{code-cell} ipython3
282+
<a id="update_psf_header_function"></a>
285283
def update_psf_header(old_hdul):
286284
"""
287285
Fix a old PSF FITS file header by rewriting only the per-plane header metadata

0 commit comments

Comments
 (0)