|
130 | 130 | "cell_type": "markdown", |
131 | 131 | "metadata": {}, |
132 | 132 | "source": [ |
133 | | - "### 1. Load the LSST Science Pipelines\n", |
| 133 | + "### 2. Load the LSST Science Pipelines\n", |
134 | 134 | "\n", |
135 | 135 | "First, we load the `lsst.afw.display` library to gain access to the image visualization routines we'd like to use, and the `lsst.daf.butler` library, which is used to access data products." |
136 | 136 | ] |
|
151 | 151 | "cell_type": "markdown", |
152 | 152 | "metadata": {}, |
153 | 153 | "source": [ |
154 | | - "### 2. Load the Data to Visualize\n", |
| 154 | + "### 3. Load the Data to Visualize\n", |
155 | 155 | "\n", |
156 | 156 | "To display an image, we must first load some data. These data have been processed with the LSST Science Pipelines, and are organized in a structure that enables us to access them through the `Butler`. For more information on the `Butler`, see [lsst.daf.butler](https://pipelines.lsst.io/modules/lsst.daf.butler/index.html).\n", |
157 | 157 | "\n", |
|
188 | 188 | "cell_type": "markdown", |
189 | 189 | "metadata": {}, |
190 | 190 | "source": [ |
191 | | - "### 3.1: Use AFWDisplay to Visualize the Image\n", |
| 191 | + "### 4.1: Use AFWDisplay to Visualize the Image\n", |
192 | 192 | "\n", |
193 | 193 | "Now, with a `Butler` instance defined and a calibrated exposure retrieved, we can use [`lsst.afw.display`](https://github.com/lsst/afw/tree/master/python/lsst/afw/display) to visualize the data. The next task is to let AFWDisplay know that we want it to use `matplotlib` as our default display backend. To do this, we use the `setDefaultBackend()` function. Remember that we made an alias to `lsst.afw.display` called `afwDisplay`, so we'll use that to call `setDefaultBackend()`." |
194 | 194 | ] |
|
322 | 322 | "cell_type": "markdown", |
323 | 323 | "metadata": {}, |
324 | 324 | "source": [ |
325 | | - "### 3.2: Use AFWDisplay to Visualize the Image and Mask Plane\n", |
| 325 | + "### 4.2: Use AFWDisplay to Visualize the Image and Mask Plane\n", |
326 | 326 | "\n", |
327 | 327 | "The `calexp` returned by the butler contains more than just the image pixel values (see the Stack Club [calexp tutorial](https://github.com/LSSTScienceCollaborations/StackClub/blob/master/Basics/Calexp_guided_tour.ipynb) for more details). One other component is the mask plane associated with the image. `afwDisplay` provides a nice pre-packaged interface for overplotting the mask associated with an image. A mask is composed of a set of \"mask planes,\" 2D binary bit maps corresponding to pixels that are masked for various reasons (see [here](https://pipelines.lsst.io/v/DM-11392/getting-started/display.html#interpreting-displayed-mask-colors) for more details)." |
328 | 328 | ] |
|
383 | 383 | "cell_type": "markdown", |
384 | 384 | "metadata": {}, |
385 | 385 | "source": [ |
386 | | - "### 4. More Information about lsst.afw.display\n", |
| 386 | + "### 5. More Information about lsst.afw.display\n", |
387 | 387 | "\n", |
388 | 388 | "To get some more information about `lsst.afw.display`, we can print the method list to see what's available. The next cell will print `lsst.afw.display` methods to the screen." |
389 | 389 | ] |
|
429 | 429 | "cell_type": "markdown", |
430 | 430 | "metadata": {}, |
431 | 431 | "source": [ |
432 | | - "### 5. Extract a cutout image\n", |
| 432 | + "### 6. Extract a cutout image\n", |
433 | 433 | "\n", |
434 | 434 | "Say we want to grab a cutout of the DP0.1 coadded images at a specific location. In order to do this, we need a few other packages from the LSST Science Pipelines. In particular, we'll need access to the geometry and coordinate packages." |
435 | 435 | ] |
|
617 | 617 | "cell_type": "markdown", |
618 | 618 | "metadata": {}, |
619 | 619 | "source": [ |
620 | | - "### 6. Plot an RGB composite image\n", |
| 620 | + "### 7. Plot an RGB composite image\n", |
621 | 621 | "\n", |
622 | 622 | "That's a pretty cluster, but what if we really want to know about the colors of the stars and galaxies in that image? To do that, we can extract images taken with three different filters, then assign those images to the RGB channels of a color image.\n", |
623 | 623 | "\n", |
|
0 commit comments