Skip to content

Commit 3a629ae

Browse files
committed
Apply feedback from @afaisst review
1 parent 9b78066 commit 3a629ae

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

tutorials/parquet-catalog-demos/euclid-hats-parquet.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,16 @@ kernelspec:
1313

1414
# Euclid Q1 Catalogs in HATS Parquet
1515

16-
This notebook introduces the [Euclid Q1](https://irsa.ipac.caltech.edu/data/Euclid/docs/overview_q1.html) HATS Collection served by IPAC/IRSA and demonstrates access with Python.
16+
This notebook introduces the [Euclid Q1](https://irsa.ipac.caltech.edu/data/Euclid/docs/overview_q1.html) HATS Collection served by Caltech-IPAC/IRSA and demonstrates access with Python.
1717

1818
+++
1919

2020
## Learning Goals
2121

22-
By the end of this tutorial, you will:
22+
By the end of this tutorial, you will be able to:
2323

2424
- Query the dataset for galaxies, QSOs, and stars with quality fluxes, redshifts, and morphology.
25-
- Understand the format and schema of this dataset.
25+
- Understand the format and organization of this dataset.
2626
- Learn how to work with this HATS Parquet product using the PyArrow Python library.
2727

2828
+++
@@ -167,6 +167,7 @@ def flux_to_magnitude(flux_col_name: str, color_col_names: tuple[str, str] | Non
167167

168168
```{code-cell}
169169
# Load the catalog as a PyArrow dataset. This is used in many examples below.
170+
# Include partitioning="hive" so PyArrow understands the file naming scheme and can navigate the partitions.
170171
dataset = pyarrow.dataset.parquet_dataset(euclid_parquet_metadata_path, partitioning="hive", filesystem=s3_filesystem)
171172
```
172173

@@ -355,7 +356,7 @@ Load a quality SPE sample. Cuts are from Le Brun sec. 3.3 and 6.2.
355356

356357
The NISP instrument was built to target Halpha emitting galaxies, which effectively means 0.9 < z < 1.8.
357358
SPE redshifts are reliable in that regime.
358-
However, this represents <2% of the total delivered by the SPE pipeline, so it's crucial to make cuts in order to get it.
359+
However, this represents <2% of the total delivered by the SPE pipeline, so it's crucial to make cuts in order to obtain a sample of galaxies with robust spectroscopic redshifts.
359360

360361
```{code-cell}
361362
# SPE probability of the rank 0 (best) redshift estimate, assuming galaxy.
@@ -377,7 +378,7 @@ spe_filter = (
377378
& (pc.field(SPURIOUS_FLAG) == 0)
378379
& (pc.field("mer_det_quality_flag") < 4)
379380
# High quality SPE galaxies.
380-
& (pc.field(SPE_GAL_Z_PROB) > 0.99) # [FIXME] Andreas says > 0.999. Also mentioned in sec. 6.2.
381+
& (pc.field(SPE_GAL_Z_PROB) > 0.999)
381382
& (pc.field(EMISSION_LINE_WIDTH) < 680)
382383
# Halpha emitters.
383384
& (pc.field(HALPHA_LINE_FLUX) > 2e-16)

0 commit comments

Comments
 (0)