Skip to content

Commit

Permalink
Update MultibandExposure doc example
Browse files Browse the repository at this point in the history
  • Loading branch information
timj committed Aug 15, 2022
1 parent fb005c5 commit a16221e
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions doc/lsst.afw.multiband/multiband.rst
Original file line number Diff line number Diff line change
Expand Up @@ -480,17 +480,16 @@ to load an exposure from a file:
.. code-block:: python
from lsst.afw.image import MultibandExposure
from lsst.daf.persistence import Butler
from lsst.daf.butler import Butler
# This is an example dataset on lsstdev which may be out of date,
# replace with a local dataset
DATA_DIR = "/datasets/hsc/repo/rerun/RC/w_2018_22/DM-14547"
butler = Butler(inputs=DATA_DIR)
DATA_DIR = "/datasets/hsc/repo/"
butler = Butler(DATA_DIR)
filters = ["G", "R","I"]
hscFilters = ["HSC-"+f for f in filters]
mExposure = MultibandExposure.fromButler(butler, hscFilters, None, "deepCoadd_calexp",
patch="1,1", tract=9813)
bands = ["g", "r", "i"]
mExposure = MultibandExposure.fromButler(butler, bands, None, "deepCoadd_calexp",
patch=42, tract=9813)
MultibandFootprint
==================
Expand Down

0 comments on commit a16221e

Please sign in to comment.