Skip to content

Commit ca45e9c

Browse files
jkricktroyraen
andauthored
Apply suggestions from code review
Co-authored-by: Troy Raen <raen@ipac.caltech.edu>
1 parent 17223b2 commit ca45e9c

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

tutorials/simulated-data/OpenUniverse2024Preview_Firefly.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ from reproject import reproject_interp
8686
from io import BytesIO
8787
```
8888

89-
## 1. Learn where the OpenUniverse2024 data are hosted in the cloud.
89+
## 1. Learn where the OpenUniverse2024 data are hosted in the cloud
9090

9191
The OpenUniverse2024 data preview is hosted in the cloud via Amazon Web Services (AWS). To access these data, you need to create a client to read data from Amazon's Simple Storage Service (s3) buckets, and you need to know some information about those buckets. The OpenUniverse2024 data preview contains simulations of the Roman Wide-Area Survey (WAS) and the Roman Time Domain Survey (TDS). In this tutorial, we will focus on the WAS.
9292

tutorials/wise/wise-allwise-catalog-demo.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ print(f"cone_pixels contains {len(cone_pixels)} of a possible {hp.nside_to_npixe
135135

136136
+++
137137

138-
Load using [pandas.read_parquet](https://pandas.pydata.org/docs/reference/api/pandas.read_parquet.html).
138+
Example 1: Load using [pandas.read_parquet](https://pandas.pydata.org/docs/reference/api/pandas.read_parquet.html).
139139
Filter for magnitudes above our w1mpro limit and a sky-area limited to the ra/dec polygon.
140140

141141
Pandas actually uses either pyarrow or fastparquet to interact with parquet files.
@@ -175,7 +175,7 @@ del pandas_df
175175

176176
+++
177177

178-
Load using [pyarrow.dataset.parquet_dataset](https://arrow.apache.org/docs/python/generated/pyarrow.dataset.parquet_dataset.html) and convert to pandas.
178+
Example 2: Load using [pyarrow.dataset.parquet_dataset](https://arrow.apache.org/docs/python/generated/pyarrow.dataset.parquet_dataset.html) and convert to pandas.
179179
Useful for:
180180

181181
1. advanced filters that combine, compare, and/or create new columns. (this example)
@@ -255,6 +255,7 @@ del pyarrow_df
255255

256256
+++
257257

258+
Example 3: Spatial search using Astropy.
258259
Nearest-neighbor searches and cone searches generally use the on-sky separation distance to determine the matches.
259260
It would be cumbersome to construct the new column and filter on it using the methods shown above because the separation distance is a fairly complicated function of ra and dec.
260261
However, we can get pretty fast results by filtering down to the HEALPix pixels that cover the region, loading all the data in those partitions, and then using astropy to compute the separations and find the matches.

0 commit comments

Comments
 (0)