|
23 | 23 | "\n", |
24 | 24 | "This tutorial is designed to help users get a brief feel for the `lsst.afw.display` library that enables the visual inspection of data. The [`lsst.afw` library](https://github.com/lsst/afw) provides an \"Astronomical Framework\" (afw) while the `lsst.daf.*` libraries (see, e.g., [daf_base](https://github.com/lsst/daf_base)) provides a Data Access Framework (daf). Both libraries are used in this tutorial, with the `lsst.daf.persistence` library used to access a calibrated exposure (calexp) and the `lsst.afw.display` library used to show the exposure image on the screen.\n", |
25 | 25 | "\n", |
26 | | - "**Credit:** This tutorial is based on the [`AFW_Display_Demo.ipynb`](https://github.com/LSSTScienceCollaborations/StackClub/blob/master/Visualization/AFW_Display_Demo.ipynb) notebook originally written by Brant Robertson and maintained by the LSST Stack Club. More examples of the use of `lsst.afw.display` can be found in the [Stack ](https://pipelines.lsst.io/getting-started/display.html).\n", |
| 26 | + "**Credit:** This tutorial is based on the [`AFW_Display_Demo.ipynb`](https://github.com/LSSTScienceCollaborations/StackClub/blob/master/Visualization/AFW_Display_Demo.ipynb) notebook originally written by Brant Robertson and maintained by the LSST Stack Club. More examples of the use of `lsst.afw.display` can be found in the [LSST Science Pipelines documentation](https://pipelines.lsst.io/getting-started/display.html).\n", |
27 | 27 | "\n", |
28 | 28 | "### Set Up" |
29 | 29 | ] |
|
125 | 125 | "\n", |
126 | 126 | "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", |
127 | 127 | "\n", |
128 | | - "The DP0.1 data set contains simulated images from the LSST DESC Data Challenge 2 (DC2). These data are available in the data directory `/datasets/DC2/DR6/Run2.2i/patched/2021-02-10/rerun/run2.2i-calexp-v1/`. We access a single image from a specific visit (`512055`), raft (`R20`), and detector (`76`). This happens to be an i-band exposure.\n", |
| 128 | + "The DP0.1 data set contains simulated images from the LSST DESC Data Challenge 2 (DC2). These data are available in an S3 bucket `s3://butler-us-central1-dp01`. We access a single image from a specific visit (`227982`) and detector (`129`).\n", |
129 | 129 | "\n", |
130 | | - "Once we define a string that contains the data directory, we start the `Butler` instance using the `lsst.daf.persistence` library alias `dafPersist` and its `Butler` class. The `Butler` object is initialized with a string containing the data directory we wish to access. Running the cell may take a few moments.\n", |
| 130 | + "Once we define a string that contains the data directory, we start the `Butler` instance using the `lsst.daf.butler` library and its `Butler` class. The `Butler` object is initialized with a string containing the data directory we wish to access. Running the cell may take a few moments.\n", |
131 | 131 | "\n", |
132 | 132 | "With the `Butler` instance now generated using our data directory, we can retrieve the desired calibrated exposure by telling the butler which filter, CCD, and visit we wish to view. To do this, we definie dictionary with the required information." |
133 | 133 | ] |
|
140 | 140 | "source": [ |
141 | 141 | "# Note that the keys are slightly different for DC2/LSSTCam \n", |
142 | 142 | "# You can view all the keys by creating the butler and calling: print(butler.getKeys('calexp'))\n", |
143 | | - "dataId = {'visit': 227982, 'raftName': 'R31', 'detector': 129}\n", |
| 143 | + "dataId = {'visit': 227982, 'detector': 129}\n", |
144 | 144 | "repo = 's3://butler-us-central1-dp01' \n", |
145 | 145 | "collection='2.2i/runs/DP0.1'\n", |
146 | 146 | "butler = Butler(repo,collections=collection)\n", |
|
0 commit comments