Skip to content

Commit bdb19bd

Browse files
committed
Standardize headings
1 parent b9b90e1 commit bdb19bd

2 files changed

Lines changed: 13 additions & 17 deletions

File tree

tutorials/spherex/spherex_sdt/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# __Source Discovery Tool__
1+
# SPHEREx Source Discovery Tool
22

33
## Overview
44

@@ -24,7 +24,7 @@ The notebook [](sdt_irsa.md) demonstrates how to use it.
2424

2525
## Setup
2626

27-
#### On local machine
27+
### On local machine
2828

2929
All necessary packages and tools (SExtractor) are included in the `conda-sdt_env.yml` file.
3030

@@ -48,7 +48,7 @@ jupyter-lab
4848

4949
or select the environment `sdt_env` in your Jupyter Notebook using the dropdown on the upper left.
5050

51-
#### On Fornax
51+
### On Fornax
5252

5353
Installing the conda environment on the [Fornax NASA science platform](https://science.nasa.gov/astrophysics/programs/physics-of-the-cosmos/community/the-fornax-initiative/) needs slightly different steps. These can be reviewed in [this documentation](https://docs.fornax.sciencecloud.nasa.gov/compute-environments/#create-new-env).
5454

tutorials/spherex/spherex_sdt/sdt_irsa.md

Lines changed: 10 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jupyter:
1212
name: std_conda
1313
---
1414

15-
# __SPHEREx Source Discovery Tool IRSA Demo__
15+
# SPHEREx Source Discovery Tool IRSA Demo
1616

1717
The SPHEREx Source Discovery Tool is the Python package `spx_sdt` (included in this directory), which is used to discover and extract sources from SPHEREx Spectral Images and visualize their spectra.
1818
This notebook demonstrates how to use it.
@@ -28,7 +28,7 @@ This notebook demonstrates how to use it.
2828
* Select sources interactively and extract their SPHEREx spectra
2929

3030

31-
### 2. SPHEREx Overview
31+
## 2. SPHEREx Overview
3232

3333
SPHEREx is a NASA Astrophysics Medium Explorer mission that launched in March 2025.
3434
During its planned two-year mission, SPHEREx will obtain 0.75-5 micron spectroscopy over the entire sky, with deeper data in the SPHEREx Deep Fields.
@@ -140,7 +140,7 @@ conf.remote_timeout = 120
140140
output_notebook(resources=INLINE)
141141
```
142142

143-
## 5. Initialize ephemeral query parameters
143+
## 5. Initialize Ephemeral Query Parameters
144144

145145
```{attention}
146146
The query parameters below are valid as of **February 2026**, but will need to be updated as the mission proceeds.
@@ -163,7 +163,7 @@ sapm_s3 = [
163163
]
164164
```
165165

166-
## 6. Search for SPHEREx spectral images
166+
## 6. Search for SPHEREx Spectral Images
167167

168168

169169
We search first search for all the available SPHEREx images around a given position on the sky.
@@ -245,7 +245,7 @@ print(results_by_detector.groups.keys)
245245
d4_result = results_by_detector.groups[3][0] # first D4 image
246246
```
247247

248-
## 7. Load the data
248+
## 7. Load the Data
249249

250250
Next, we download the two SPHEREx spectral images. We download them directly from the cloud.
251251

@@ -291,7 +291,7 @@ If you want to download the SPHEREx spectral images from IPAC directly (not from
291291
```
292292

293293

294-
## 8. Remove local background, create masks, and reproject
294+
## 8. Remove Local Background, Create Masks, and Reproject
295295

296296
Before we can subtract the images, we have to do some preprocessing. This includes:
297297
- Converting from surface brightness to flux density units
@@ -407,7 +407,7 @@ plot3_info = {
407407
plot_overlap_trio(plot1_info, plot2_info, plot3_info, clip=True)
408408
```
409409

410-
## 9. Generate cutouts and subtracted color image
410+
## 9. Generate Cutouts and Subtracted Color Image
411411

412412

413413
For this example, we only use parts of the image. For this, we first generate cutouts of the D4 image as well as the reprojected D2 image.
@@ -473,7 +473,7 @@ subtracted_masked_info = {
473473
plot_subtracted_trio(d2_info, d4_info, subtracted_masked_info, clip=True)
474474
```
475475

476-
## 10. Run <code>SExtractor</code> on the subtracted color image
476+
## 10. Run <code>SExtractor</code> on the Subtracted Color Image
477477

478478
A use case could be to search for red sources such as galaxies with an Active Galactic Nucleus (AGN), which are manifested by red mid-infrared colors. Such red sources can be identified on the subtracted image.
479479

@@ -505,7 +505,7 @@ run_sextractor(os.path.realpath(cut_path2), sxt_config, sxt_params, d2_cat, sxt_
505505
run_sextractor(os.path.realpath(cut_path4), sxt_config, sxt_params, d4_cat, sxt_nnw, sxt_conv)
506506
```
507507

508-
## 11. Select sources interactively
508+
## 11. Select Sources Interactively
509509

510510
In the following, we show two ways to visualize the extracted sources on the images and how to interactively select interesting sources. (Note that you can always select the source automatically in Python using, for example, `astropy` tables instead of doing it interactively.)
511511

@@ -618,7 +618,7 @@ fc.show_table(file_input=tbl_stream,
618618
title='Table')
619619
```
620620

621-
## 12. Perform aperture photometry on selected sources
621+
## 12. Perform Aperture Photometry on Selected Sources
622622

623623
Finally, we compute the SPHEREx spectra for selected sources. This includes downloading all the available SPHEREx spectral image cutouts for the sources and then measuring their photometry to generate a spectrum. For simplicity, we here perform aperture photometry but include background subtraction.
624624

@@ -820,7 +820,3 @@ or problems.
820820
**Updated:** 18 February 2026
821821

822822
**Runtime:** approximately 5 minutes
823-
824-
```python
825-
826-
```

0 commit comments

Comments
 (0)