From db1f19f8fdc463b2c80c87ee500243f964b0773f Mon Sep 17 00:00:00 2001 From: Andreas Faisst Date: Wed, 25 Mar 2026 14:58:52 -0700 Subject: [PATCH 1/2] updated text and remove minus 1 in calculation of distance to PSF zone center --- tutorials/spherex/spherex_psf.md | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/tutorials/spherex/spherex_psf.md b/tutorials/spherex/spherex_psf.md index 92443c95..ebe10825 100644 --- a/tutorials/spherex/spherex_psf.md +++ b/tutorials/spherex/spherex_psf.md @@ -1,4 +1,10 @@ --- +authors: +- name: Vandana Desai +- name: Jessica Krick +- name: Andreas Faisst +- name: "Brigitta Sip\u0151cz" +- name: Troy Raen jupytext: text_representation: extension: .md @@ -9,12 +15,6 @@ kernelspec: display_name: Python 3 (ipykernel) language: python name: python3 -authors: - - name: Vandana Desai - - name: Jessica Krick - - name: Andreas Faisst - - name: Brigitta Sipőcz - - name: Troy Raen --- # Understanding and Extracting the PSF Extension in a SPHEREx Cutout @@ -576,10 +576,11 @@ for zone_id in xctr.keys(): ``` Once we have created this dictionary with zone pixel coordinates, we can simply search for the closest zone center to the coordinates of interest. -For this we first add the distance between zone center coordinates and coordinates of interest to the table. (Note that the x,y coordinates of the PSF zone centers are in 1,1 convention, therefore we have to subtract 1 pixels.) +For this we first add the distance between zone center coordinates and coordinates of interest to the table. +Note that the zone pixel center coordinates are 0-based, while their _names_ in the header (for example `XCTR_n`) are 1-based. ```{code-cell} ipython3 -tab["distance"] = np.sqrt((tab["x"]-1 - xpix_orig)**2 + (tab["y"]-1 - ypix_orig)**2) +tab["distance"] = np.sqrt((tab["x"] - xpix_orig)**2 + (tab["y"] - ypix_orig)**2) ``` Then we can sort the table and pick the closest zone to coordinates of interest. @@ -630,8 +631,12 @@ To use this PSF for forward modeling or fitting, you must: ## About this notebook -**Updated:** 13 March 2026 +**Updated:** 25 March 2026 **Contact:** Contact [IRSA Helpdesk](https://irsa.ipac.caltech.edu/docs/help_desk.html) with questions or problems. **Runtime:** Approximately 30 seconds. + +```{code-cell} ipython3 + +``` From 98d369dd6dcea26e2ea6ea31902ccd8d1e14db6a Mon Sep 17 00:00:00 2001 From: Andreas Faisst Date: Wed, 25 Mar 2026 17:01:06 -0700 Subject: [PATCH 2/2] small fixes: author, code-cell --- tutorials/spherex/spherex_psf.md | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/tutorials/spherex/spherex_psf.md b/tutorials/spherex/spherex_psf.md index ebe10825..71984da3 100644 --- a/tutorials/spherex/spherex_psf.md +++ b/tutorials/spherex/spherex_psf.md @@ -3,7 +3,7 @@ authors: - name: Vandana Desai - name: Jessica Krick - name: Andreas Faisst -- name: "Brigitta Sip\u0151cz" +- name: "Brigitta Sipőcz" - name: Troy Raen jupytext: text_representation: @@ -637,6 +637,3 @@ To use this PSF for forward modeling or fitting, you must: **Runtime:** Approximately 30 seconds. -```{code-cell} ipython3 - -```