Skip to content

Commit 22f56fa

Browse files
MelissaGrahamshenmingfu
authored andcommitted
fix error and header
1 parent 3ee61f1 commit 22f56fa

7 files changed

Lines changed: 52 additions & 41 deletions

DP1/300_Science_Demos/301_Field_explorations/301_1_47Tuc_Globular_Cluster.ipynb

Lines changed: 6 additions & 9 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> <br>\n",
2323
"Container Size: large <br>\n",
2424
"LSST Science Pipelines version: r29.2.0 <br>\n",
25-
"Last verified to run: 2025-09-17 <br>\n",
25+
"Last verified to run: 2026-01-30 <br>\n",
2626
"Repository: <a href=\"https://github.com/lsst/tutorial-notebooks\">github.com/lsst/tutorial-notebooks</a> <br>"
2727
]
2828
},
@@ -440,7 +440,8 @@
440440
"style_dict = {\n",
441441
" tract: {'color': tract_colors[i], 'linestyle': linestyles[i]}\n",
442442
" for i, tract in enumerate(unique_tracts)\n",
443-
"}"
443+
"}\n",
444+
"print('unique tracts: ', unique_tracts)"
444445
]
445446
},
446447
{
@@ -458,10 +459,10 @@
458459
"metadata": {},
459460
"outputs": [],
460461
"source": [
462+
"list_unique_tracts = \"(\" + \", \".join(str(tract) for tract in unique_tracts) + \")\"\n",
461463
"query = \"SELECT lsst_patch, lsst_tract, s_ra, s_dec, s_region \" \\\n",
462464
" \"FROM dp1.CoaddPatches \" \\\n",
463-
" \"WHERE CONTAINS(POINT('ICRS', s_ra, s_dec), \" \\\n",
464-
" \"CIRCLE('ICRS', {}, {}, {})) = 1 \".format(ra_cen, dec_cen, radius)\n",
465+
" \"WHERE lsst_tract IN {}\".format(list_unique_tracts)\n",
465466
"job = service.submit_job(query)\n",
466467
"job.run()\n",
467468
"job.wait(phases=['COMPLETED', 'ERROR'])\n",
@@ -473,11 +474,7 @@
473474
{
474475
"cell_type": "markdown",
475476
"id": "00f38067-8ee3-422c-b774-63ac8b83b60f",
476-
"metadata": {
477-
"jupyter": {
478-
"source_hidden": true
479-
}
480-
},
477+
"metadata": {},
481478
"source": [
482479
"Fetch the results as an `astropy` table."
483480
]

DP1/300_Science_Demos/301_Field_explorations/301_2_Low_Ecliptic_Latitude.ipynb

Lines changed: 6 additions & 5 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> <br>\n",
2323
"Container Size: large <br>\n",
2424
"LSST Science Pipelines version: r29.2.0 <br>\n",
25-
"Last verified to run: 2025-09-17 <br>\n",
25+
"Last verified to run: 2026-01-30 <br>\n",
2626
"Repository: <a href=\"https://github.com/lsst/tutorial-notebooks\">github.com/lsst/tutorial-notebooks</a> <br>"
2727
]
2828
},
@@ -440,15 +440,16 @@
440440
"style_dict = {\n",
441441
" tract: {'color': tract_colors[i], 'linestyle': linestyles[i]}\n",
442442
" for i, tract in enumerate(unique_tracts)\n",
443-
"}"
443+
"}\n",
444+
"print('unique tracts: ', unique_tracts)"
444445
]
445446
},
446447
{
447448
"cell_type": "markdown",
448449
"id": "b7417527-3836-4541-b56a-b6ed67a9f41c",
449450
"metadata": {},
450451
"source": [
451-
"Use TAP to find vertices of each patch covering the field in the `dp1.coaddPatches` table."
452+
"Use TAP to find the vertices of each patch for each of the unique tracts covering the field in the `dp1.coaddPatches` table."
452453
]
453454
},
454455
{
@@ -458,10 +459,10 @@
458459
"metadata": {},
459460
"outputs": [],
460461
"source": [
462+
"list_unique_tracts = \"(\" + \", \".join(str(tract) for tract in unique_tracts) + \")\"\n",
461463
"query = \"SELECT lsst_patch, lsst_tract, s_ra, s_dec, s_region \" \\\n",
462464
" \"FROM dp1.CoaddPatches \" \\\n",
463-
" \"WHERE CONTAINS(POINT('ICRS', s_ra, s_dec), \" \\\n",
464-
" \"CIRCLE('ICRS', {}, {}, {})) = 1 \".format(ra_cen, dec_cen, radius)\n",
465+
" \"WHERE lsst_tract IN {}\".format(list_unique_tracts)\n",
465466
"job = service.submit_job(query)\n",
466467
"job.run()\n",
467468
"job.wait(phases=['COMPLETED', 'ERROR'])\n",

DP1/300_Science_Demos/301_Field_explorations/301_3_Fornax_Dwarf_Spheroidal_Galaxy.ipynb

Lines changed: 6 additions & 5 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> <br>\n",
2323
"Container Size: large <br>\n",
2424
"LSST Science Pipelines version: r29.2.0 <br>\n",
25-
"Last verified to run: 2025-09-17 <br>\n",
25+
"Last verified to run: 2026-01-30 <br>\n",
2626
"Repository: <a href=\"https://github.com/lsst/tutorial-notebooks\">github.com/lsst/tutorial-notebooks</a> <br>"
2727
]
2828
},
@@ -441,15 +441,16 @@
441441
"style_dict = {\n",
442442
" tract: {'color': tract_colors[i], 'linestyle': linestyles[i]}\n",
443443
" for i, tract in enumerate(unique_tracts)\n",
444-
"}"
444+
"}\n",
445+
"print('unique tracts: ', unique_tracts)"
445446
]
446447
},
447448
{
448449
"cell_type": "markdown",
449450
"id": "dff8b8b9-a16b-4668-89c5-175257497d04",
450451
"metadata": {},
451452
"source": [
452-
"Use TAP to find vertices of each patch covering the field in the `dp1.coaddPatches` table."
453+
"Use TAP to find the vertices of each patch for each of the unique tracts covering the field in the `dp1.coaddPatches` table."
453454
]
454455
},
455456
{
@@ -459,10 +460,10 @@
459460
"metadata": {},
460461
"outputs": [],
461462
"source": [
463+
"list_unique_tracts = \"(\" + \", \".join(str(tract) for tract in unique_tracts) + \")\"\n",
462464
"query = \"SELECT lsst_patch, lsst_tract, s_ra, s_dec, s_region \" \\\n",
463465
" \"FROM dp1.CoaddPatches \" \\\n",
464-
" \"WHERE CONTAINS(POINT('ICRS', s_ra, s_dec), \" \\\n",
465-
" \"CIRCLE('ICRS', {}, {}, {})) = 1 \".format(ra_cen, dec_cen, radius)\n",
466+
" \"WHERE lsst_tract IN {}\".format(list_unique_tracts)\n",
466467
"job = service.submit_job(query)\n",
467468
"job.run()\n",
468469
"job.wait(phases=['COMPLETED', 'ERROR'])\n",

DP1/300_Science_Demos/301_Field_explorations/301_4_Extended_Chandra_Deep_Field_South.ipynb

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"Data Release: DP1 <br>\n",
2323
"Container Size: large <br>\n",
2424
"LSST Science Pipelines version: r29.2.0 <br>\n",
25-
"Last verified to run: 2025-09-17 <br>\n",
25+
"Last verified to run: 2026-01-30 <br>\n",
2626
"Repository: <a href=\"https://github.com/lsst/tutorial-notebooks\">github.com/lsst/tutorial-notebooks</a> <br>"
2727
]
2828
},
@@ -437,28 +437,29 @@
437437
"style_dict = {\n",
438438
" tract: {'color': colors[i], 'linestyle': linestyles[i]}\n",
439439
" for i, tract in enumerate(unique_tracts)\n",
440-
"}"
440+
"}\n",
441+
"print('unique tracts: ', unique_tracts)"
441442
]
442443
},
443444
{
444445
"cell_type": "markdown",
445446
"id": "44783f2b-0600-4642-b3db-01638b9886f5",
446447
"metadata": {},
447448
"source": [
448-
"Use TAP to find vertices of each patch covering the field in the `dp1.coaddPatches` table."
449+
"Use TAP to find the vertices of each patch for each of the unique tracts covering the field in the `dp1.coaddPatches` table."
449450
]
450451
},
451452
{
452453
"cell_type": "code",
453454
"execution_count": null,
454-
"id": "553d7fbf-8c2e-4d68-8c67-597f37dda0d7",
455+
"id": "c0ebbfa7-1457-4bb7-aa4e-ee2bb73601de",
455456
"metadata": {},
456457
"outputs": [],
457458
"source": [
459+
"list_unique_tracts = \"(\" + \", \".join(str(tract) for tract in unique_tracts) + \")\"\n",
458460
"query = \"SELECT lsst_patch, lsst_tract, s_ra, s_dec, s_region \" \\\n",
459461
" \"FROM dp1.CoaddPatches \" \\\n",
460-
" \"WHERE CONTAINS(POINT('ICRS', s_ra, s_dec), \" \\\n",
461-
" \"CIRCLE('ICRS', {}, {}, {})) = 1 \".format(ra_cen, dec_cen, radius)\n",
462+
" \"WHERE lsst_tract IN {}\".format(list_unique_tracts)\n",
462463
"job = service.submit_job(query)\n",
463464
"job.run()\n",
464465
"job.wait(phases=['COMPLETED', 'ERROR'])\n",
@@ -517,7 +518,7 @@
517518
" ra = (ra + 180) % 360 - 180\n",
518519
" dec = coordinates[1::2]\n",
519520
" vertices_deg = np.vstack([ra, dec]).T\n",
520-
"\n",
521+
" \n",
521522
" polygon = Polygon(vertices_deg, closed=True, facecolor='None',\n",
522523
" edgecolor=style_dict[tract]['color'],\n",
523524
" linestyle=style_dict[tract]['linestyle'],\n",

DP1/300_Science_Demos/301_Field_explorations/301_5_Euclid_Deep_Field_South.ipynb

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
"Data Release: DP1 <br>\n",
2323
"Container Size: Large <br>\n",
2424
"LSST Science Pipelines version: r29.2.0 <br>\n",
25-
"Last verified to run: 2025-09-17 <br>\n",
25+
"Last verified to run: 2026-01-30 <br>\n",
2626
"Repository: <a href=\"https://github.com/lsst/tutorial-notebooks\">github.com/lsst/tutorial-notebooks</a> <br>"
2727
]
2828
},
@@ -460,15 +460,16 @@
460460
"style_dict = {\n",
461461
" tract: {'color': tract_colors[i], 'linestyle': linestyles[i]}\n",
462462
" for i, tract in enumerate(unique_tracts)\n",
463-
"}"
463+
"}\n",
464+
"print('unique tracts: ', unique_tracts)"
464465
]
465466
},
466467
{
467468
"cell_type": "markdown",
468469
"id": "59dcf20d-5f2a-4eea-9912-5141725d5267",
469470
"metadata": {},
470471
"source": [
471-
"Use TAP to find vertices of each patch covering the field in the `dp1.coaddPatches` table."
472+
"Use TAP to find the vertices of each patch for each of the unique tracts covering the field in the `dp1.coaddPatches` table."
472473
]
473474
},
474475
{
@@ -478,10 +479,10 @@
478479
"metadata": {},
479480
"outputs": [],
480481
"source": [
482+
"list_unique_tracts = \"(\" + \", \".join(str(tract) for tract in unique_tracts) + \")\"\n",
481483
"query = \"SELECT lsst_patch, lsst_tract, s_ra, s_dec, s_region \" \\\n",
482484
" \"FROM dp1.CoaddPatches \" \\\n",
483-
" \"WHERE CONTAINS(POINT('ICRS', s_ra, s_dec), \" \\\n",
484-
" \"CIRCLE('ICRS', {}, {}, {})) = 1 \".format(ra_cen, dec_cen, radius)\n",
485+
" \"WHERE lsst_tract IN {}\".format(list_unique_tracts)\n",
485486
"job = rsp_tap.submit_job(query)\n",
486487
"job.run()\n",
487488
"job.wait(phases=['COMPLETED', 'ERROR'])\n",
@@ -1282,6 +1283,14 @@
12821283
"metadata": {},
12831284
"outputs": [],
12841285
"source": []
1286+
},
1287+
{
1288+
"cell_type": "code",
1289+
"execution_count": null,
1290+
"id": "4546ae77-f2ed-45fd-9ef9-ce204ff5281d",
1291+
"metadata": {},
1292+
"outputs": [],
1293+
"source": []
12851294
}
12861295
],
12871296
"metadata": {

DP1/300_Science_Demos/301_Field_explorations/301_6_Low_Galactic_Latitude_Field.ipynb

Lines changed: 6 additions & 5 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> <br>\n",
2323
"Container Size: large <br>\n",
2424
"LSST Science Pipelines version: r29.2.0 <br>\n",
25-
"Last verified to run: 2025-09-17 <br>\n",
25+
"Last verified to run: 2026-01-30 <br>\n",
2626
"Repository: <a href=\"https://github.com/lsst/tutorial-notebooks\">github.com/lsst/tutorial-notebooks</a> <br>"
2727
]
2828
},
@@ -432,15 +432,16 @@
432432
"linestyles = ['-', '--', '-.', ':'] * ((len(unique_tracts) // 4) + 1)\n",
433433
"\n",
434434
"style_dict = {tract: {'color': colors[i], 'linestyle': linestyles[i]}\n",
435-
" for i, tract in enumerate(unique_tracts)}"
435+
" for i, tract in enumerate(unique_tracts)}\n",
436+
"print('unique tracts: ', unique_tracts)"
436437
]
437438
},
438439
{
439440
"cell_type": "markdown",
440441
"id": "0ae67050-1ff9-451b-94a7-9c94e91dc9c8",
441442
"metadata": {},
442443
"source": [
443-
"Use TAP to find vertices of each patch covering the field in the `dp1.coaddPatches` table."
444+
"Use TAP to find the vertices of each patch for each of the unique tracts covering the field in the `dp1.coaddPatches` table."
444445
]
445446
},
446447
{
@@ -450,10 +451,10 @@
450451
"metadata": {},
451452
"outputs": [],
452453
"source": [
454+
"list_unique_tracts = \"(\" + \", \".join(str(tract) for tract in unique_tracts) + \")\"\n",
453455
"query = \"SELECT lsst_patch, lsst_tract, s_ra, s_dec, s_region \" \\\n",
454456
" \"FROM dp1.CoaddPatches \" \\\n",
455-
" \"WHERE CONTAINS(POINT('ICRS', s_ra, s_dec), \" \\\n",
456-
" \"CIRCLE('ICRS', {}, {}, {})) = 1 \".format(ra_cen, dec_cen, radius)\n",
457+
" \"WHERE lsst_tract IN {}\".format(list_unique_tracts)\n",
457458
"job = service.submit_job(query)\n",
458459
"job.run()\n",
459460
"job.wait(phases=['COMPLETED', 'ERROR'])\n",

DP1/300_Science_Demos/301_Field_explorations/301_7_Seagull_Nebula.ipynb

Lines changed: 6 additions & 5 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> <br>\n",
2323
"Container Size: large <br>\n",
2424
"LSST Science Pipelines version: r29.2.0 <br>\n",
25-
"Last verified to run: 2025-09-17 <br>\n",
25+
"Last verified to run: 2026-01-30 <br>\n",
2626
"Repository: <a href=\"https://github.com/lsst/tutorial-notebooks\">github.com/lsst/tutorial-notebooks</a> <br>"
2727
]
2828
},
@@ -418,15 +418,16 @@
418418
"linestyles = ['-', '--', '-.', ':'] * ((len(unique_tracts) // 4) + 1)\n",
419419
"\n",
420420
"style_dict = {tract: {'color': tract_colors[i], 'linestyle': linestyles[i]}\n",
421-
" for i, tract in enumerate(unique_tracts)}"
421+
" for i, tract in enumerate(unique_tracts)}\n",
422+
"print('unique tracts: ', unique_tracts)"
422423
]
423424
},
424425
{
425426
"cell_type": "markdown",
426427
"id": "b07f2eee-e69c-4017-9836-89dbc45ec242",
427428
"metadata": {},
428429
"source": [
429-
"Use TAP to find vertices of each patch covering the field in the `dp1.coaddPatches` table."
430+
"Use TAP to find the vertices of each patch for each of the unique tracts covering the field in the `dp1.coaddPatches` table."
430431
]
431432
},
432433
{
@@ -436,10 +437,10 @@
436437
"metadata": {},
437438
"outputs": [],
438439
"source": [
440+
"list_unique_tracts = \"(\" + \", \".join(str(tract) for tract in unique_tracts) + \")\"\n",
439441
"query = \"SELECT lsst_patch, lsst_tract, s_ra, s_dec, s_region \" \\\n",
440442
" \"FROM dp1.CoaddPatches \" \\\n",
441-
" \"WHERE CONTAINS(POINT('ICRS', s_ra, s_dec), \" \\\n",
442-
" \"CIRCLE('ICRS', {}, {}, {})) = 1 \".format(ra_cen, dec_cen, radius)\n",
443+
" \"WHERE lsst_tract IN {}\".format(list_unique_tracts)\n",
443444
"job = service.submit_job(query)\n",
444445
"job.run()\n",
445446
"job.wait(phases=['COMPLETED', 'ERROR'])\n",

0 commit comments

Comments
 (0)