Skip to content

Commit fdf2af5

Browse files
committed
Update 103_7 notebook
1 parent 0603e36 commit fdf2af5

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

DP1/100_How_to_Use_RSP_Tools/103_Image_access_and_display/103_7_Big_deep_coadd_cutout.ipynb

Lines changed: 20 additions & 4 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-22 <br>\n",
25+
"Last verified to run: 2025-10-15 <br>\n",
2626
"Repository: <a href=\"https://github.com/lsst/tutorial-notebooks\">github.com/lsst/tutorial-notebooks</a> <br>"
2727
]
2828
},
@@ -344,8 +344,24 @@
344344
"metadata": {},
345345
"source": [
346346
"Use the BCG location to obtain the pixel scale there.\n",
347-
"First, get the WCS of the patch and tract where the BCG is located.\n",
348-
"From the 300 DP1 tutorials, the patch and tract numbers are 10463 and 62 respectively."
347+
"First, get the WCS of the patch and tract where the BCG is located."
348+
]
349+
},
350+
{
351+
"cell_type": "code",
352+
"execution_count": null,
353+
"id": "ae116f76-2aca-447f-833f-75bc36a7ebab",
354+
"metadata": {},
355+
"outputs": [],
356+
"source": [
357+
"bcg_point = SpherePoint(ra_bcg * degrees,\n",
358+
" dec_bcg * degrees)\n",
359+
"bcg_tract = skymap.findTract(bcg_point)\n",
360+
"bcg_patch = bcg_tract.findPatch(bcg_point)\n",
361+
"\n",
362+
"bcg_tract_number = bcg_tract.tract_id\n",
363+
"bcg_patch_number = bcg_patch.getSequentialIndex()\n",
364+
"print(bcg_tract_number, bcg_patch_number)"
349365
]
350366
},
351367
{
@@ -357,7 +373,7 @@
357373
"source": [
358374
"bcg_data_ref = next(\n",
359375
" ref for ref in tract_container\n",
360-
" if ref.dataId[\"tract\"] == 10463 and ref.dataId[\"patch\"] == 62\n",
376+
" if ref.dataId[\"tract\"] == bcg_tract_number and ref.dataId[\"patch\"] == bcg_patch_number\n",
361377
")"
362378
]
363379
},

0 commit comments

Comments
 (0)