Skip to content

Commit acacf5b

Browse files
committed
differences for PR #250
1 parent a5b8f2e commit acacf5b

File tree

6 files changed

+20
-20
lines changed

6 files changed

+20
-20
lines changed

01-query.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ Main Database accumulating catalogue version from which the catalogue
238238
release has been generated. It contains the basic source parameters,
239239
that is only final data (no epoch data) and no spectra (neither final
240240
nor epoch).
241-
Num. columns: 96
241+
Num. columns: 95
242242
```
243243

244244
## Columns

02-coords.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -309,9 +309,9 @@ to GD-1:
309309
The axes of this figure are defined so the x-axis is aligned with the
310310
stars in GD-1, and the y-axis is perpendicular.
311311

312-
- Along the x-axis (φ<sub>1</sub>) the figure extends from -100 to 20 degrees.
312+
- Along the x-axis ($\phi_1$) the figure extends from -100 to 20 degrees.
313313

314-
- Along the y-axis (φ<sub>2</sub>) the figure extends from about -8 to 4 degrees.
314+
- Along the y-axis ($\phi_2$) the figure extends from about -8 to 4 degrees.
315315

316316
Ideally, we would select all stars from this rectangle, but there are
317317
more than 10 million of them. This would be difficult to work with, and as
@@ -320,7 +320,7 @@ single query. While we are developing and testing code, it will be faster to wor
320320
with a smaller dataset.
321321

322322
So we will start by selecting stars in a smaller rectangle near the
323-
center of GD-1, from -55 to -45 degrees φ<sub>1</sub> and -8 to 4 degrees φ<sub>2</sub>.
323+
center of GD-1, from -55 to -45 degrees $\phi_1$ and -8 to 4 degrees $\phi_2$.
324324
First we will learn how to represent these coordinates with Astropy.
325325

326326
## Transforming coordinates
@@ -392,7 +392,7 @@ which is "a Heliocentric spherical coordinate system defined by the
392392
orbit of the GD-1 stream". In this coordinate system, one axis is defined along
393393
the direction of the stream (the x-axis in Figure 1) and one axis is defined
394394
perpendicular to the direction of the stream (the y-axis in Figure 1).
395-
These are called the φ<sub>1</sub> and φ<sub>2</sub> coordinates, respectively.
395+
These are called the $\phi_1$ and $\phi_2$ coordinates, respectively.
396396

397397
```python
398398
from gala.coordinates import GD1Koposov10
@@ -457,7 +457,7 @@ rectangle that encompasses a small part of GD-1.
457457
This is easiest to define in GD-1 coordinates.
458458

459459
The following variables define the boundaries of the rectangle in
460-
φ<sub>1</sub> and φ<sub>2</sub>.
460+
$\phi_1$ and $\phi_2$.
461461

462462
```python
463463
phi1_min = -55 * u.degree
@@ -482,8 +482,8 @@ def make_rectangle(x1, x2, y1, y2):
482482
return xs, ys
483483
```
484484

485-
The return value is a tuple containing a list of coordinates in φ<sub>1</sub>
486-
followed by a list of coordinates in φ<sub>2</sub>.
485+
The return value is a tuple containing a list of coordinates in $\phi_1$
486+
followed by a list of coordinates in $\phi_2$.
487487

488488
```python
489489
phi1_rect, phi2_rect = make_rectangle(

03-transform.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -348,10 +348,10 @@ which is useful for two reasons:
348348

349349
- By transforming the coordinates, we can identify stars that are
350350
likely to be in GD-1 by selecting stars near the centerline of the
351-
stream, where φ<sub>2</sub> is close to 0.
351+
stream, where $\phi_2$ is close to 0.
352352

353353
- By transforming the proper motions, we can identify stars with
354-
non-zero proper motion along the φ<sub>1</sub> axis, which are likely to be part of GD-1.
354+
non-zero proper motion along the $\phi_1$ axis, which are likely to be part of GD-1.
355355

356356
To do the transformation, we will put the results into a `SkyCoord`
357357
object. In a previous episode, we created a `SkyCoord` object like
@@ -736,7 +736,7 @@ We can write a Pandas `DataFrame` to an HDF5 file like this:
736736
```python
737737
filename = 'gd1_data.hdf'
738738

739-
results_df.to_hdf(filename, key='results_df', mode='w')
739+
results_df.to_hdf(filename, 'results_df', mode='w')
740740
```
741741

742742
Because an HDF5 file can contain more than one Dataset, we have to

04-motion.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -568,7 +568,7 @@ We can add to our existing Pandas `DataFrame` to an HDF5 file by omitting the `m
568568
```python
569569
filename = 'gd1_data.hdf'
570570

571-
selected_df.to_hdf(filename, key='selected_df')
571+
selected_df.to_hdf(filename, 'selected_df')
572572
```
573573

574574
Because an HDF5 file can contain more than one Dataset, we have to
@@ -592,7 +592,7 @@ Hint: Since the file already exists, you should *not* use `mode='w'`.
592592
## Solution
593593

594594
```python
595-
centerline_df.to_hdf(filename, key='centerline_df')
595+
centerline_df.to_hdf(filename, 'centerline_df')
596596
```
597597

598598
:::::::::::::::::::::::::

06-join.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,8 +170,8 @@ in the Pan-STARRS catalog.
170170

171171
To do that we will:
172172

173-
1. Use the `JOIN` operator to look up each Pan-STARRS `obj_id`, for the stars
174-
we are interested in, in the `panstarrs1_best_neighbour` table using the `source_ids`
173+
1. Use the `JOIN` operator to look up each Pan-STARRS `obj_id` for the stars
174+
we are interested in the `panstarrs1_best_neighbour` table using the `source_ids`
175175
that we have already identified.
176176

177177
2. Use the `JOIN` operator again to look up the Pan-STARRS photometry for these stars

md5sum.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"LICENSE.md" "e94126b93e27bae014999c2e84ee93f8" "site/built/LICENSE.md" "2025-02-03"
44
"config.yaml" "0e6ae143684e18b060df625762ff29b4" "site/built/config.yaml" "2023-05-15"
55
"index.md" "f26708b73f13068fbf4c8da251f0c3de" "site/built/index.md" "2024-03-08"
6-
"episodes/01-query.md" "cb33f044c4851bec575378c39439dfff" "site/built/01-query.md" "2025-12-09"
7-
"episodes/02-coords.md" "e7de8999ad1d7f5b75c046da8f9b7f9b" "site/built/02-coords.md" "2025-09-30"
8-
"episodes/03-transform.md" "23dfd020a38104055f5b02fb0f90a4c2" "site/built/03-transform.md" "2025-12-09"
9-
"episodes/04-motion.md" "a33a1b8a385200f422e33062bfbfe426" "site/built/04-motion.md" "2025-12-09"
6+
"episodes/01-query.md" "37929e0aebcf40db4336e9504910a01c" "site/built/01-query.md" "2025-12-09"
7+
"episodes/02-coords.md" "124773bd2f86314fafdbb7e22d991393" "site/built/02-coords.md" "2025-12-09"
8+
"episodes/03-transform.md" "da80b26a8fab055894a8b2574c7fca56" "site/built/03-transform.md" "2025-12-09"
9+
"episodes/04-motion.md" "c2642d107deb0093d78e111d359bd16f" "site/built/04-motion.md" "2025-12-09"
1010
"episodes/05-select.md" "5554b751dce605172b84815970a32937" "site/built/05-select.md" "2025-09-30"
11-
"episodes/06-join.md" "bb54605ee31fc6d60de02f9c7c4c8953" "site/built/06-join.md" "2025-12-09"
11+
"episodes/06-join.md" "63e16f5fd2d7246de02a63113e41e876" "site/built/06-join.md" "2025-12-09"
1212
"episodes/07-photo.md" "2a244ed606346a0befbaeb2ea006c488" "site/built/07-photo.md" "2024-03-08"
1313
"episodes/08-plot.md" "97b61b54dadf9ea944138e541156ee8f" "site/built/08-plot.md" "2025-09-30"
1414
"instructors/calculating_MIST_isochrone.md" "3201f3ca13dc11bbef74a7d24a433362" "site/built/calculating_MIST_isochrone.md" "2023-05-15"

0 commit comments

Comments
 (0)