|
6 | 6 | "source": [ |
7 | 7 | "<img align=\"left\" src = https://project.lsst.org/sites/default/files/Rubin-O-Logo_0.png width=250> \n", |
8 | 8 | "<b>Introduction to Source Detection</b> <br>\n", |
9 | | - "Last verified to run on <b>TBD</b> with LSST Science Pipelines release <b>TBD</b> <br>\n", |
| 9 | + "Last verified to run on <b>2021-06-10</b> with LSST Science Pipelines release <b>w_2021_20</b> <br>\n", |
10 | 10 | "Contact author: Alex Drlica-Wagner <br>\n", |
11 | 11 | "<b>Credit</b>: Content was originally developed by Alex Drlica-Wagner and Imran Hasan in the context of the LSST Stack Club <br>\n", |
12 | 12 | "Target audience: All DP0 delegates. <br>\n", |
|
16 | 16 | "<br>\n", |
17 | 17 | "\n", |
18 | 18 | "\n", |
19 | | - "This notebook provides a brief introduction to running the LSST Science Pipelines source detection, measurement, and deblending algorithms. It does not go into any depth about optimizing detection, measurement, or deblending parameters for different types of sources. \n", |
| 19 | + "This notebook provides a brief introduction to running the LSST Science Pipelines source detection, measurement, and deblending algorithms. It does not go into depth about optimizing detection, measurement, or deblending parameters for different types of sources. \n", |
20 | 20 | "\n", |
21 | 21 | "Some source detection and measurement details come from Robert Lupton's [Tune Detection.ipynb](https://github.com/RobertLuptonTheGood/notebooks/blob/master/Demos/Tune%20Detection.ipynb) and [Kron.ipynb](https://github.com/RobertLuptonTheGood/notebooks/blob/master/Demos/Kron.ipynb).\n", |
22 | 22 | "Interaction with `lsst.afw.display` was also improved by studying Michael Wood-Vasey's [DC2_Postage Stamps.ipynb](https://github.com/LSSTDESC/DC2-analysis/blob/master/tutorials/dm_butler_postage_stamps.ipynb).\n", |
|
151 | 151 | "cell_type": "markdown", |
152 | 152 | "metadata": {}, |
153 | 153 | "source": [ |
154 | | - "Our next step is to generate a cutout image. This is done by creating a bounding box and passing it to the `Factory` method of our calexp (a `lsst.afw.image.Exposure` object). Unfortunately, the arguments for the `Factory` method are poorly documented, and below we explain the specific arguments that we are passing to `Factory`:\n", |
| 154 | + "Our next step is to generate a cutout image. This is done by creating a bounding box and passing it to the `Factory` method of our calexp (a `lsst.afw.image.Exposure` object). Below we explain the specific arguments that we are passing to `Factory`:\n", |
155 | 155 | "```\n", |
156 | 156 | "calexp : the ExposureF we are starting from\n", |
157 | 157 | "bbox : the bounding box of the cutout\n", |
|
201 | 201 | "source": [ |
202 | 202 | "## 2.0 Source Detection, Deblending, and Measurement\n", |
203 | 203 | "\n", |
204 | | - "We now want to run the LSST Science Pipelines' source detection, deblending, and measurement tasks. While we run all three tasks, this notebook is mostly focused on the detection of faint sources." |
| 204 | + "We now want to run the LSST Science Pipelines' source detection, deblending, and measurement tasks. While we run all three tasks, this notebook is mostly focused on the detection of sources." |
205 | 205 | ] |
206 | 206 | }, |
207 | 207 | { |
|
507 | 507 | "source": [ |
508 | 508 | "## 3.0 Footprints\n", |
509 | 509 | "\n", |
510 | | - "To paraphrase from [Bosch et al. (2017)](https://arxiv.org/pdf/1705.06766.pdf), \n", |
| 510 | + "To quote [Bosch et al. (2017)](https://arxiv.org/pdf/1705.06766.pdf), \n", |
511 | 511 | "\n", |
512 | 512 | "> Footprints record the exact above-threshold detection region on a CCD. These are similar to SExtractor’s “segmentation map\", in that they identify which pixels belong to which detected objects\n", |
513 | 513 | "\n", |
|
529 | 529 | "metadata": {}, |
530 | 530 | "outputs": [], |
531 | 531 | "source": [ |
532 | | - "# Grab the above-threshold footprints that were detected, and assign them to a variable fps\n", |
| 532 | + "# Grab the above-threshold footprints that were detected, and assign them to the variable `fps`\n", |
533 | 533 | "fpset = result.positive\n", |
534 | 534 | "fps = fpset.getFootprints()" |
535 | 535 | ] |
|
548 | 548 | "cell_type": "markdown", |
549 | 549 | "metadata": {}, |
550 | 550 | "source": [ |
551 | | - "You can almost see the footprint by looking at the 1's and zeros here. Keep in mind that the first row of this array will be the *bottom* row of the image. Later, when we display the footprint, its general pattern will appear \"upside down\" compared to this pattern of 1s. " |
| 551 | + "You can almost see the footprint by looking at the 1's and 0's here. Keep in mind that the first row of this array will be the *bottom* row of the image. Later, when we display the footprint, its general pattern will appear \"upside down\" compared to this pattern of 1s. " |
552 | 552 | ] |
553 | 553 | }, |
554 | 554 | { |
|
0 commit comments