Skip to content

Commit 9ca87f0

Browse files
committed
Cleanup
1 parent 44f4bcb commit 9ca87f0

File tree

2 files changed

+10
-13
lines changed

2 files changed

+10
-13
lines changed

tutorials/spherex/spherex_cutouts.md

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -145,10 +145,9 @@ def process_cutout(row, ra, dec, cache):
145145
'''
146146
147147
with fits.open(row["uri"], cache=cache) as hdulist:
148-
# There are three HDUs:
148+
# There are seven HDUs:
149149
# 0 contains minimal metadata in the header and no data.
150-
# 1 contains the image cutout (EXTNAME = "IMAGE").
151-
# 2 contains wavelength information (EXTNAME = "WCS-WAVE").
150+
# 1 through 6 are: IMAGE, FLAGS, VARIANCE, ZODI, PSF, WCS-WAVE
152151
header = hdulist[1].header
153152
154153
# Compute pixel coordinates corresponding to cutout position.
@@ -190,7 +189,7 @@ Approximately 5-7 minutes for 700 images of cutout size 0.01 degree on a typical
190189
```{tip}
191190
The astropy `fits.open()` supports a caching argument.
192191
This can be passed through in the `process_cutout()` function.
193-
If cache=True is set, the images are cached and the cutout creation is sped up next time the code is run (even if the Jupyter kernel is restarted!).
192+
If `cache=True` is set, the images are cached and the cutout creation is sped up next time the code is run (even if the Jupyter kernel is restarted!).
194193
The downside is that the images are saved on the machine where this notebook is run (usually in `~/.astropy/cache/`).
195194
If many cutouts are created, this can sum up to a large cached data volume, in which case `cache=False` is preferred.
196195
@@ -222,9 +221,11 @@ A good value for the maximum number of workers is between 7 and 12 for a machine
222221
```{tip}
223222
The astropy `fits.open()` supports a caching argument.
224223
This can be passed through in the `process_cutout()` function.
225-
If cache=True is set, the images are cached and the cutout creation is sped up next time the code is run (even if the Jupyter kernel is restarted!).
226-
The downside is that the images are saved on the machine where this notebook is run.
227-
If many cutouts are created, this can sum up to a large cached data volume, in which case cache=False is preferred.
224+
If `cache=True` is set, the images are cached and the cutout creation is sped up next time the code is run (even if the Jupyter kernel is restarted!).
225+
The downside is that the images are saved on the machine where this notebook is run (usually in `~/.astropy/cache/`).
226+
If many cutouts are created, this can sum up to a large cached data volume, in which case `cache=False` is preferred.
227+
228+
To learn more about the cache please read the [astropy cache management documentation](https://docs.astropy.org/en/stable/utils/data.html#cache-management).
228229
```
229230

230231
Again, before running the cutout processing we define some place holders.
@@ -325,12 +326,8 @@ plt.show()
325326

326327
**Authors:** IRSA Data Science Team, including Vandana Desai, Andreas Faisst, Troy Raen, Brigitta Sipőcz, Jessica Krick, Shoubaneh Hemmati
327328

328-
**Updated:** 2025-09-10
329+
**Updated:** 2025-09-30
329330

330331
**Contact:** [IRSA Helpdesk](https://irsa.ipac.caltech.edu/docs/help_desk.html) with questions or problems.
331332

332333
**Runtime:** As of the date above, this notebook takes about 3 minutes to run to completion on a machine with 8GB RAM and 4 CPU.
333-
(Note: This notebook doesn't take significant time to run, but please report actual numbers and
334-
machine details for your notebook if it is expected to run longer or requires specific machines,
335-
e.g., on Fornax. Also, if querying archives, please include a statement like, "This runtime is
336-
heavily dependent on archive servers which means runtime will vary for users".)

tutorials/spherex/spherex_psf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ plt.show()
269269

270270
**Authors:** IRSA Data Science Team, including Vandana Desai, Andreas Faisst, Brigitta Sipőcz, Troy Raen
271271

272-
**Updated:** 2025-09-25
272+
**Updated:** 2025-09-30
273273

274274
**Contact:** Contact [IRSA Helpdesk](https://irsa.ipac.caltech.edu/docs/help_desk.html) with questions or problems.
275275

0 commit comments

Comments
 (0)