Skip to content

Commit f6d1581

Browse files
committed
Minor edits after review
1 parent 0767872 commit f6d1581

1 file changed

Lines changed: 65 additions & 15 deletions

File tree

DP1/300_Science_Demos/309_Astronomical_analysis/309_2_convert_between_photometric_systems.ipynb

Lines changed: 65 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"Data Release: <a href=\"https://dp1.lsst.io/\">Data Preview 1</a>\\\n",
2323
"Container Size: medium\\\n",
2424
"LSST Science Pipelines version: v29.2.0\\\n",
25-
"Last verified to run: 2026-02-10\\\n",
25+
"Last verified to run: 2026-03-24\\\n",
2626
"Repository: [github.com/lsst/tutorial-notebooks](https://github.com/lsst/tutorial-notebooks)\\\n",
2727
"DOI: [10.11578/rubin/dc.20250909.20](https://doi.org/10.11578/rubin/dc.20250909.20)"
2828
]
@@ -63,7 +63,7 @@
6363
"\n",
6464
"Two methods for transforming between photometric systems are explored in <a href=\"https://rtn-099.lsst.io/\">RTN-099</a>: polynomial relations and lookup tables. The guiding principle for which is to use is driven by the balance between simplicity and accuracy: in general, simple first- or second-order polynomials are sufficient, but, for higher accuracy, one may instead choose the slightly more difficult-to-employ lookup-table method.\n",
6565
"\n",
66-
"This tutorial demonstrates how to apply both methods of photometric transformation. Examples are provided for converting from Rubin DP1 $i$-band photometry to PanSTARRS1 DR2 and DES DR2 $i$ bands, and from Rubin DP1 $g$-band photometry to Gaia DR3 $RP$-band photometry.\n",
66+
"This tutorial demonstrates how to apply both methods of photometric transformation. Examples are provided for converting from Rubin DP1 $i$-band photometry to PanSTARRS1 DR2 and DES DR2 $i$ bands, and from Rubin DP1 $g$-band photometry to Gaia DR3 $BP$-band photometry.\n",
6767
"\n",
6868
"**Related tutorials:** The 100-level tutorials demonstrate how to use the butler, the TAP service, and the Firefly image display. The 200-level tutorials introduce the types of image and catalog data.\n"
6969
]
@@ -336,7 +336,15 @@
336336
{
337337
"cell_type": "markdown",
338338
"id": "686c2789-0b71-4bc4-b15b-0b020a0d965f",
339-
"metadata": {},
339+
"metadata": {
340+
"execution": {
341+
"iopub.execute_input": "2025-10-17T18:50:22.291274Z",
342+
"iopub.status.busy": "2025-10-17T18:50:22.291002Z",
343+
"iopub.status.idle": "2025-10-17T18:50:22.295488Z",
344+
"shell.execute_reply": "2025-10-17T18:50:22.294633Z",
345+
"shell.execute_reply.started": "2025-10-17T18:50:22.291257Z"
346+
}
347+
},
340348
"source": [
341349
"Calculate color indices using the PSF magnitudes, and plot a color-color diagram. Color-code points by the $r$-band PSF magnitude error."
342350
]
@@ -410,7 +418,15 @@
410418
{
411419
"cell_type": "markdown",
412420
"id": "e3e1fe82-cea3-4cc2-81d6-5e9310d2ced1",
413-
"metadata": {},
421+
"metadata": {
422+
"execution": {
423+
"iopub.execute_input": "2025-12-05T20:06:47.537387Z",
424+
"iopub.status.busy": "2025-12-05T20:06:47.537024Z",
425+
"iopub.status.idle": "2025-12-05T20:06:47.542498Z",
426+
"shell.execute_reply": "2025-12-05T20:06:47.541537Z",
427+
"shell.execute_reply.started": "2025-12-05T20:06:47.537361Z"
428+
}
429+
},
414430
"source": [
415431
"\n",
416432
"| Conversion | Transformation Equation | RMS | Applicable Color Range | QA Plot |\n",
@@ -548,7 +564,15 @@
548564
{
549565
"cell_type": "markdown",
550566
"id": "c4f941a7-2394-4dd9-b2cf-ce5fb16f8395",
551-
"metadata": {},
567+
"metadata": {
568+
"execution": {
569+
"iopub.execute_input": "2025-12-19T23:32:23.571408Z",
570+
"iopub.status.busy": "2025-12-19T23:32:23.571024Z",
571+
"iopub.status.idle": "2025-12-19T23:32:23.576885Z",
572+
"shell.execute_reply": "2025-12-19T23:32:23.575789Z",
573+
"shell.execute_reply.started": "2025-12-19T23:32:23.571384Z"
574+
}
575+
},
552576
"source": [
553577
"Use the `cross_match_catalogs` function defined above to match the two catalogs based on the stars' coordinates."
554578
]
@@ -569,7 +593,15 @@
569593
{
570594
"cell_type": "markdown",
571595
"id": "8623e190-aa85-4dd0-b186-88e19483743f",
572-
"metadata": {},
596+
"metadata": {
597+
"execution": {
598+
"iopub.execute_input": "2025-12-16T19:45:53.129870Z",
599+
"iopub.status.busy": "2025-12-16T19:45:53.129489Z",
600+
"iopub.status.idle": "2025-12-16T19:45:53.133314Z",
601+
"shell.execute_reply": "2025-12-16T19:45:53.132627Z",
602+
"shell.execute_reply.started": "2025-12-16T19:45:53.129846Z"
603+
}
604+
},
573605
"source": [
574606
"### 3.3.3 Compare the LSSTComCam-estimated PS1 i-band magnitudes with the PanSTARRS1 DR2 i-band magnitudes"
575607
]
@@ -688,7 +720,15 @@
688720
{
689721
"cell_type": "markdown",
690722
"id": "0570b618-901f-4c60-bd32-17ea8d69c99f",
691-
"metadata": {},
723+
"metadata": {
724+
"execution": {
725+
"iopub.execute_input": "2025-12-05T19:57:07.257591Z",
726+
"iopub.status.busy": "2025-12-05T19:57:07.257182Z",
727+
"iopub.status.idle": "2025-12-05T19:57:07.261246Z",
728+
"shell.execute_reply": "2025-12-05T19:57:07.260527Z",
729+
"shell.execute_reply.started": "2025-12-05T19:57:07.257564Z"
730+
}
731+
},
692732
"source": [
693733
"## 4. Piecewise 1st-order polynomial transformation: LSSTComCam $i$ --> DES DR2 $i$\n",
694734
"\n",
@@ -729,7 +769,15 @@
729769
{
730770
"cell_type": "markdown",
731771
"id": "35075b43-4e76-4463-a359-def323fa8520",
732-
"metadata": {},
772+
"metadata": {
773+
"execution": {
774+
"iopub.execute_input": "2025-12-05T20:10:17.123399Z",
775+
"iopub.status.busy": "2025-12-05T20:10:17.123015Z",
776+
"iopub.status.idle": "2025-12-05T20:10:17.128630Z",
777+
"shell.execute_reply": "2025-12-05T20:10:17.127665Z",
778+
"shell.execute_reply.started": "2025-12-05T20:10:17.123372Z"
779+
}
780+
},
733781
"source": [
734782
"![Alt text](https://rtn-099.lsst.io/_downloads/0d5bd60339db84127abb8bd0f7b096e0/qaPlot.ComCam_to_DESDR2_ECDFS.fit.dmag_i_des-i_ComCam.gi_ComCam.norder1.qa1.png)\n",
735783
"\n",
@@ -1027,7 +1075,7 @@
10271075
"id": "939e52ad-9ce0-45eb-a163-bb9ad9467df8",
10281076
"metadata": {},
10291077
"source": [
1030-
"Here are the quality assurance (QA) plots from <a href=\"https://rtn-099.lsst.io/\">RTN-099</a> associated with the second-order polynomial fit of the DP1 $g$-band to Gaia DR3 $RP$-band. Note from the bottom-right plot that a third-order term might benefit the fit, but staying with the simpler second-order polynomial still achieves a 0.027 mag RMS in the fit. For more accuracy, using the lookup table method (described in the next section) is recommended."
1078+
"Here are the quality assurance (QA) plots from <a href=\"https://rtn-099.lsst.io/\">RTN-099</a> associated with the second-order polynomial fit of the DP1 $g$-band to Gaia DR3 $BP$-band. Note from the bottom-right plot that a third-order term might benefit the fit, but staying with the simpler second-order polynomial still achieves a 0.027 mag RMS in the fit. For more accuracy, using the lookup table method (described in the next section) is recommended."
10311079
]
10321080
},
10331081
{
@@ -1085,7 +1133,7 @@
10851133
"id": "10f38f41-8bec-418e-a778-18246278f130",
10861134
"metadata": {},
10871135
"source": [
1088-
"Test the transformation by comparing the Gaia DR3 $RP$-band magnitudes estimated from the DP1 data in ECDFS against the Gaia DR3 $RP$-band magnitudes from the Gaia DR3 data themselves in ECDFS."
1136+
"Test the transformation by comparing the Gaia DR3 $BP$-band magnitudes estimated from the DP1 data in ECDFS against the Gaia DR3 $BP$-band magnitudes from the Gaia DR3 data themselves in ECDFS."
10891137
]
10901138
},
10911139
{
@@ -1180,7 +1228,7 @@
11801228
"id": "febf7500-a25f-4209-b337-86108f4f4d6c",
11811229
"metadata": {},
11821230
"source": [
1183-
"Calculate both the differences between the DP1 $g$-band magnitude and the Gaia DR3 $RP$-band magnitude (\"before transformation\") and the differences between DP1-estimated Gaia DR3 $RP$-band magnitude and the actual Gaia DR3 $RP$-band magnitude (\"after transformation\"):"
1231+
"Calculate both the differences between the DP1 $g$-band magnitude and the Gaia DR3 $BP$-band magnitude (\"before transformation\") and the differences between DP1-estimated Gaia DR3 $BP$-band magnitude and the actual Gaia DR3 $BP$-band magnitude (\"after transformation\"):"
11841232
]
11851233
},
11861234
{
@@ -1324,7 +1372,7 @@
13241372
"id": "3581e642-4b84-4cc9-b898-be00f0846653",
13251373
"metadata": {},
13261374
"source": [
1327-
"Here are the quality‑assurance (QA) plots from <a href=\"https://rtn-099.lsst.io/\">RTN-099</a> that document the lookup‑table transformation from the DP1 $g$‑band to the Gaia DR3 $RP$‑band. The lookup table is constructed by binning matched stars in the ECDFS field by their Rubin DP1 $(g–i)$ color, and then tabulating the median magnitude offset between the Gaia DR3 RP‑band and the Rubin DP1 g‑band for the stars in each color bin."
1375+
"Here are the quality‑assurance (QA) plots from <a href=\"https://rtn-099.lsst.io/\">RTN-099</a> that document the lookup‑table transformation from the DP1 $g$‑band to the Gaia DR3 $BP$‑band. The lookup table is constructed by binning matched stars in the ECDFS field by their Rubin DP1 $(g–i)$ color, and then tabulating the median magnitude offset between the Gaia DR3 RP‑band and the Rubin DP1 g‑band for the stars in each color bin."
13281376
]
13291377
},
13301378
{
@@ -1375,7 +1423,9 @@
13751423
"cell_type": "code",
13761424
"execution_count": null,
13771425
"id": "d6f731f9-1084-46fc-a881-80a62b241dd8",
1378-
"metadata": {},
1426+
"metadata": {
1427+
"scrolled": true
1428+
},
13791429
"outputs": [],
13801430
"source": [
13811431
"df_lut = pd.read_csv(lut_url)\n",
@@ -1439,7 +1489,7 @@
14391489
"id": "376a20fd-2f9c-4005-9782-6d8607d59d72",
14401490
"metadata": {},
14411491
"source": [
1442-
"Test the transformation by comparing the Gaia DR3 $RP$-band magnitudes estimated from the DP1 data in ECDFS against the Gaia DR3 $RP$-band magnitudes from the Gaia DR3 data themselves."
1492+
"Test the transformation by comparing the Gaia DR3 $BP$-band magnitudes estimated from the DP1 data in ECDFS against the Gaia DR3 $BP$-band magnitudes from the Gaia DR3 data themselves."
14431493
]
14441494
},
14451495
{
@@ -1553,7 +1603,7 @@
15531603
"plt.grid(True)\n",
15541604
"plt.grid(color='grey')\n",
15551605
"plt.legend(loc='upper left', fontsize=8)\n",
1556-
"plt.title(r\"mag difference between LSSTComCam DP1 $g$-band (and transformed $BP$-band) and Gaia DR3 $RP$-band\")\n",
1606+
"plt.title(r\"mag difference between LSSTComCam DP1 $g$-band (and transformed $BP$-band) and Gaia DR3 $BP$-band\")\n",
15571607
"plt.show()"
15581608
]
15591609
},

0 commit comments

Comments
 (0)