Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-20440 Update sample footprints notebook in display_firefly #31

Merged
merged 3 commits into from
Jul 3, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
5 changes: 3 additions & 2 deletions doc/lsst.display.firefly/viewing-footprints.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,15 @@ Viewing LSST Source Detection Footprints
The Firefly backend for ``lsst.afw.display`` includes specialized functions
for overlaying and interacting with LSST Source Detection Footprints.

Here is an example using HSC-reprocessed data.
Here is an example using HSC-reprocessed data. When using the LSST Science
Platform, a "medium" or larger container size is recommended.

Define a Butler instance and an identifier for retrieving the data.

.. code-block:: py

from lsst.daf.persistence import Butler
butler = Butler('/datasets/hsc/repo/rerun/RC/w_2018_38/DM-15690/')
butler = Butler('/datasets/hsc/repo/rerun/RC/w_2019_22/DM-19244/')
dataId = dict(filter='HSC-R', tract=9813, patch='4,4')

Define bounding boxes for two regions of interest, one for the catalog and
Expand Down
27 changes: 4 additions & 23 deletions examples/HSC-Footprints.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"cell_type": "markdown",
"metadata": {},
"source": [
"This example uses HSC-reprocessed data from `/datasets/hsc/repo/rerun/RC/w_2018_38/DM-15690/deepCoadd-results`"
"This example uses HSC-reprocessed data from `/datasets/hsc/repo/rerun/RC/w_2019_22/DM-19244/deepCoadd-results`"
]
},
{
Expand All @@ -55,7 +55,7 @@
"metadata": {},
"outputs": [],
"source": [
"butler = Butler('/datasets/hsc/repo/rerun/RC/w_2018_38/DM-15690/')"
"butler = Butler('/datasets/hsc/repo/rerun/RC/w_2019_22/DM-19244/')"
]
},
{
Expand Down Expand Up @@ -143,23 +143,6 @@
"catalogSubset = measCat.subset(catSelect)"
]
},
{
"cell_type": "markdown",
"metadata": {},
"source": [
"Make a unique channel name that will be persistent across restarts of the notebook. In the near future this will no longer be necessary."
]
},
{
"cell_type": "code",
"execution_count": null,
"metadata": {},
"outputs": [],
"source": [
"import os\n",
"channel = os.environ['USER'] + '-footprint-test'"
]
},
{
"cell_type": "markdown",
"metadata": {},
Expand All @@ -173,9 +156,7 @@
"metadata": {},
"outputs": [],
"source": [
"display1 = afwDisplay.Display(frame=1, backend='firefly',\n",
" url='https://lsst-demo.ncsa.illinois.edu/firefly',\n",
" name=channel)"
"display1 = afwDisplay.Display(frame=1, backend='firefly')"
]
},
{
Expand Down Expand Up @@ -282,7 +263,7 @@
"name": "python",
"nbconvert_exporter": "python",
"pygments_lexer": "ipython3",
"version": "3.6.6"
"version": "3.7.2"
}
},
"nbformat": 4,
Expand Down