Skip to content
This repository was archived by the owner on Apr 28, 2025. It is now read-only.

Commit d86191e

Browse files
committed
Remove unused cell.
1 parent 5043696 commit d86191e

1 file changed

Lines changed: 32 additions & 53 deletions

File tree

06_Comparing_Object_and_Truth_Tables.ipynb

Lines changed: 32 additions & 53 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"cells": [
33
{
44
"cell_type": "markdown",
5-
"id": "02961155",
5+
"id": "762aaefe",
66
"metadata": {},
77
"source": [
88
"<img align=\"left\" src = https://project.lsst.org/sites/default/files/Rubin-O-Logo_0.png width=250 style=\"padding: 10px\"> \n",
@@ -17,7 +17,7 @@
1717
},
1818
{
1919
"cell_type": "markdown",
20-
"id": "d5b3f505",
20+
"id": "da1f6693",
2121
"metadata": {},
2222
"source": [
2323
"### Learning Objectives\n",
@@ -32,7 +32,7 @@
3232
{
3333
"cell_type": "code",
3434
"execution_count": 1,
35-
"id": "059227f5",
35+
"id": "8ee0dfea",
3636
"metadata": {},
3737
"outputs": [
3838
{
@@ -52,7 +52,7 @@
5252
},
5353
{
5454
"cell_type": "markdown",
55-
"id": "b562fc9a",
55+
"id": "6e7736bf",
5656
"metadata": {},
5757
"source": [
5858
"### 1. Import Common Python Libraries\n",
@@ -63,7 +63,7 @@
6363
{
6464
"cell_type": "code",
6565
"execution_count": 2,
66-
"id": "571db9b6",
66+
"id": "10073880",
6767
"metadata": {},
6868
"outputs": [],
6969
"source": [
@@ -75,7 +75,7 @@
7575
},
7676
{
7777
"cell_type": "markdown",
78-
"id": "5804cfca",
78+
"id": "bd6f5847",
7979
"metadata": {},
8080
"source": [
8181
"To access tables, we will use the TAP service in a similar manner to what we showed in the [Intro to DP0 notebook](https://github.com/rubin-dp0/tutorial-notebooks/blob/main/01_Intro_to_DP0_Notebooks.ipynb), and explored further in the [TAP tutorial notebook](https://github.com/rubin-dp0/tutorial-notebooks/blob/main/02_Intermediate_TAP_Query.ipynb). See those notebooks for more details."
@@ -84,7 +84,7 @@
8484
{
8585
"cell_type": "code",
8686
"execution_count": 3,
87-
"id": "9cd8365c",
87+
"id": "d92075a0",
8888
"metadata": {},
8989
"outputs": [
9090
{
@@ -109,7 +109,7 @@
109109
},
110110
{
111111
"cell_type": "markdown",
112-
"id": "0692f75b",
112+
"id": "2c360ee6",
113113
"metadata": {},
114114
"source": [
115115
"### 2. Loading tables with TAP\n",
@@ -120,7 +120,7 @@
120120
{
121121
"cell_type": "code",
122122
"execution_count": 4,
123-
"id": "951e7454",
123+
"id": "542205dc",
124124
"metadata": {},
125125
"outputs": [
126126
{
@@ -175,7 +175,7 @@
175175
},
176176
{
177177
"cell_type": "markdown",
178-
"id": "34671835",
178+
"id": "fed3c407",
179179
"metadata": {},
180180
"source": [
181181
"For our analysis, let's choose the Object table, `dp01_dc2_catalogs.object`, and then we will compare the measurements from this table to the \"truth\" values from `dp01_dc2_catalogs.truth_match`.\n",
@@ -186,7 +186,7 @@
186186
{
187187
"cell_type": "code",
188188
"execution_count": 5,
189-
"id": "8d8582e7",
189+
"id": "f8c99854",
190190
"metadata": {},
191191
"outputs": [
192192
{
@@ -1480,7 +1480,7 @@
14801480
{
14811481
"cell_type": "code",
14821482
"execution_count": 6,
1483-
"id": "d11c682b",
1483+
"id": "cbf6cd38",
14841484
"metadata": {},
14851485
"outputs": [
14861486
{
@@ -1558,7 +1558,7 @@
15581558
},
15591559
{
15601560
"cell_type": "markdown",
1561-
"id": "706be8e0",
1561+
"id": "548c4deb",
15621562
"metadata": {},
15631563
"source": [
15641564
"For this exploration, we will select a small region of sky around a random RA, Dec position. The following two cells read data centered on (RA, Dec) = (62.0, -37.0) degrees, within a radius of 0.1 degrees, for first the Object table, then the Truth-Match table. Note that we are selecting only a subset of the columns seen in the schema above. You can add or remove columns as you wish.\n",
@@ -1569,7 +1569,7 @@
15691569
{
15701570
"cell_type": "code",
15711571
"execution_count": 28,
1572-
"id": "01f5a6a1",
1572+
"id": "31cb6776",
15731573
"metadata": {},
15741574
"outputs": [
15751575
{
@@ -1600,7 +1600,7 @@
16001600
},
16011601
{
16021602
"cell_type": "markdown",
1603-
"id": "92bddbf7",
1603+
"id": "c47251a0",
16041604
"metadata": {},
16051605
"source": [
16061606
"Note: the reason for including the timing of the cells' execution will become clear later in this notebook."
@@ -1609,7 +1609,7 @@
16091609
{
16101610
"cell_type": "code",
16111611
"execution_count": 29,
1612-
"id": "9a9e1d71",
1612+
"id": "f301e7bf",
16131613
"metadata": {},
16141614
"outputs": [
16151615
{
@@ -1641,7 +1641,7 @@
16411641
},
16421642
{
16431643
"cell_type": "markdown",
1644-
"id": "28f32658",
1644+
"id": "0d31c06b",
16451645
"metadata": {},
16461646
"source": [
16471647
"These tables will be much easier to work with as `pandas` \"dataframes\". The query results have convenient methods that we can use to convert them."
@@ -1650,7 +1650,7 @@
16501650
{
16511651
"cell_type": "code",
16521652
"execution_count": 36,
1653-
"id": "e00c223b",
1653+
"id": "cad26f3e",
16541654
"metadata": {},
16551655
"outputs": [],
16561656
"source": [
@@ -1660,7 +1660,7 @@
16601660
},
16611661
{
16621662
"cell_type": "markdown",
1663-
"id": "7959876d",
1663+
"id": "92a57677",
16641664
"metadata": {},
16651665
"source": [
16661666
"### 3. Merge the two tables and compare measurements to truth values\n",
@@ -1671,7 +1671,7 @@
16711671
{
16721672
"cell_type": "code",
16731673
"execution_count": 37,
1674-
"id": "968c4de8",
1674+
"id": "45e26c53",
16751675
"metadata": {},
16761676
"outputs": [],
16771677
"source": [
@@ -1692,30 +1692,9 @@
16921692
"# suffixes=['_obj', '_truth'])"
16931693
]
16941694
},
1695-
{
1696-
"cell_type": "code",
1697-
"execution_count": 50,
1698-
"id": "e0501732",
1699-
"metadata": {},
1700-
"outputs": [
1701-
{
1702-
"data": {
1703-
"text/plain": [
1704-
"14428"
1705-
]
1706-
},
1707-
"execution_count": 50,
1708-
"metadata": {},
1709-
"output_type": "execute_result"
1710-
}
1711-
],
1712-
"source": [
1713-
"len(tmatch_pd.index)"
1714-
]
1715-
},
17161695
{
17171696
"cell_type": "markdown",
1718-
"id": "b64cb2f7",
1697+
"id": "efd48a2b",
17191698
"metadata": {},
17201699
"source": [
17211700
"### 4. Do the same table join, but as a single query within ADQL\n",
@@ -1728,7 +1707,7 @@
17281707
{
17291708
"cell_type": "code",
17301709
"execution_count": 40,
1731-
"id": "d789c1b8",
1710+
"id": "37da07ec",
17321711
"metadata": {},
17331712
"outputs": [
17341713
{
@@ -1763,7 +1742,7 @@
17631742
{
17641743
"cell_type": "code",
17651744
"execution_count": 51,
1766-
"id": "18c5f0e2",
1745+
"id": "1aaec194",
17671746
"metadata": {},
17681747
"outputs": [
17691748
{
@@ -1783,7 +1762,7 @@
17831762
{
17841763
"cell_type": "code",
17851764
"execution_count": 12,
1786-
"id": "656708df",
1765+
"id": "947b57c4",
17871766
"metadata": {},
17881767
"outputs": [],
17891768
"source": [
@@ -1817,7 +1796,7 @@
18171796
},
18181797
{
18191798
"cell_type": "markdown",
1820-
"id": "6ac5ce1f",
1799+
"id": "70725f50",
18211800
"metadata": {},
18221801
"source": [
18231802
"#### Compare the measurements from the Object table to the \"true\" values for some objects.\n",
@@ -1830,7 +1809,7 @@
18301809
{
18311810
"cell_type": "code",
18321811
"execution_count": 13,
1833-
"id": "fc1537e0",
1812+
"id": "63794774",
18341813
"metadata": {},
18351814
"outputs": [
18361815
{
@@ -1849,7 +1828,7 @@
18491828
},
18501829
{
18511830
"cell_type": "markdown",
1852-
"id": "6e48f05a",
1831+
"id": "0b6d075a",
18531832
"metadata": {},
18541833
"source": [
18551834
"Just to confirm that things look like we expect, let's plot a color-magnitude (g vs. g-i) and color-color (r-i vs. g-r) diagram."
@@ -1858,7 +1837,7 @@
18581837
{
18591838
"cell_type": "code",
18601839
"execution_count": 14,
1861-
"id": "1a10bfe0",
1840+
"id": "c800041b",
18621841
"metadata": {},
18631842
"outputs": [
18641843
{
@@ -1909,7 +1888,7 @@
19091888
},
19101889
{
19111890
"cell_type": "markdown",
1912-
"id": "59bc08df",
1891+
"id": "f10bef95",
19131892
"metadata": {},
19141893
"source": [
19151894
"Looks pretty normal - the stellar locus in color-color space is right where one expects it to be, and the galaxies dominate at the faint end of the CMD. \n",
@@ -1920,7 +1899,7 @@
19201899
{
19211900
"cell_type": "code",
19221901
"execution_count": 15,
1923-
"id": "aa255174",
1902+
"id": "d7d71847",
19241903
"metadata": {},
19251904
"outputs": [
19261905
{
@@ -1954,7 +1933,7 @@
19541933
},
19551934
{
19561935
"cell_type": "markdown",
1957-
"id": "ca567c55",
1936+
"id": "65b4c108",
19581937
"metadata": {},
19591938
"source": [
19601939
"Well, that looks good -- the ratio of measured to true fluxes is centered on 1.0. It seems like the fluxes are recovered pretty well, on average.\n",
@@ -1965,7 +1944,7 @@
19651944
{
19661945
"cell_type": "code",
19671946
"execution_count": null,
1968-
"id": "4780cc71",
1947+
"id": "ecffbcbe",
19691948
"metadata": {},
19701949
"outputs": [],
19711950
"source": []

0 commit comments

Comments
 (0)