|
22 | 22 | "Data Release: <a href=\"https://dp1.lsst.io\">Data Preview 1</a> <br>\n", |
23 | 23 | "Container Size: large <br>\n", |
24 | 24 | "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", |
26 | 26 | "Repository: <a href=\"https://github.com/lsst/tutorial-notebooks\">github.com/lsst/tutorial-notebooks</a> <br>" |
27 | 27 | ] |
28 | 28 | }, |
|
344 | 344 | "metadata": {}, |
345 | 345 | "source": [ |
346 | 346 | "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)" |
349 | 365 | ] |
350 | 366 | }, |
351 | 367 | { |
|
357 | 373 | "source": [ |
358 | 374 | "bcg_data_ref = next(\n", |
359 | 375 | " 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", |
361 | 377 | ")" |
362 | 378 | ] |
363 | 379 | }, |
|
0 commit comments