|
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-02 <br>\n", |
| 25 | + "Last verified to run: 2025-09-30 <br>\n", |
26 | 26 | "Repository: <a href=\"https://github.com/lsst/tutorial-notebooks\">github.com/lsst/tutorial-notebooks</a> <br>" |
27 | 27 | ] |
28 | 28 | }, |
|
107 | 107 | "id": "c217adff-25ed-4fce-95e7-8aa04630f6cc", |
108 | 108 | "metadata": {}, |
109 | 109 | "source": [ |
110 | | - "### 1.2. Define parameters and functions\n", |
111 | | - "\n", |
112 | | - "Define parameters to use colorblind-friendly colors with `matplotlib`." |
113 | | - ] |
114 | | - }, |
115 | | - { |
116 | | - "cell_type": "code", |
117 | | - "execution_count": null, |
118 | | - "id": "ecc6cb66-ec5c-47c1-bcd0-4592a32179cd", |
119 | | - "metadata": {}, |
120 | | - "outputs": [], |
121 | | - "source": [ |
122 | | - "plt.style.use('seaborn-v0_8-colorblind')\n", |
123 | | - "prop_cycle = plt.rcParams['axes.prop_cycle']\n", |
124 | | - "colors = prop_cycle.by_key()['color']" |
| 110 | + "### 1.2. Define parameters and functions" |
125 | 111 | ] |
126 | 112 | }, |
127 | 113 | { |
|
198 | 184 | " visit_detector_region.region OVERLAPS POINT({ra}, {dec})\"\n", |
199 | 185 | "\n", |
200 | 186 | "visit_img_refs = butler.query_datasets('visit_image',\n", |
201 | | - " where=query,\n", |
202 | | - " order_by='visit.timespan.begin')" |
| 187 | + " where=query)" |
203 | 188 | ] |
204 | 189 | }, |
205 | 190 | { |
|
568 | 553 | "source": [ |
569 | 554 | "### 4.3. Compare the images before and after injection\n", |
570 | 555 | "\n", |
571 | | - "Display the images in separate panels with matplotlib, and compare them to confirm that the sources have been injected." |
| 556 | + "Display the images in separate panels with matplotlib, and compare them to confirm that the sources have been injected.\n", |
| 557 | + "\n", |
| 558 | + "Optionally, uncomment the commented-out \"display1.mtv\" cell to zoom in on the injected stamp image." |
572 | 559 | ] |
573 | 560 | }, |
574 | 561 | { |
|
584 | 571 | "\n", |
585 | 572 | "plt.sca(ax[0])\n", |
586 | 573 | "display0 = afwDisplay.Display(frame=fig)\n", |
587 | | - "# display0.scale('linear', 'zscale')\n", |
588 | | - "display0.scale('linear', min=-20, max=150)\n", |
| 574 | + "display0.scale('linear', 'zscale')\n", |
589 | 575 | "display0.mtv(visit_img.image)\n", |
590 | 576 | "plt.title('calexp image')\n", |
591 | 577 | "\n", |
592 | 578 | "plt.sca(ax[1])\n", |
593 | 579 | "display1 = afwDisplay.Display(frame=fig)\n", |
594 | | - "# display1.scale('linear', 'zscale')\n", |
595 | | - "display1.scale('linear', min=-20, max=150)\n", |
| 580 | + "display1.scale('linear', 'zscale')\n", |
596 | 581 | "display1.mtv(plot_injected_img.image)\n", |
597 | 582 | "# To zoom on the PGC 038749 stamp:\n", |
598 | 583 | "# display1.mtv(plot_injected_img.image[1700:2200, 1950:2450])\n", |
|
0 commit comments