Commit 24d3e1c5 authored by michitaro's avatar michitaro
Browse files

Add new file

parent 3e37c6d1
# python module calling butler
import lsst.daf.persistence as dafPersist
# Specify rerun directory in which the data you want to use is stored
dataDir = "~/hsc/rerun/<rerun name>"
# Call butler
butler = dafPersist.Butler(dataDir)
# Specify the target data and searched by butler
#
# CORR-0902798-59.fits
# 'calexp' means CORR-*.fits
# For calexp type data, you need to specify visit and ccd in dataId
dataId = {'visit': 902798, 'ccd': 59}
exp = butler.get('calexp', dataId)
# put the settings in a dict object and call ds9.mtv()
settings = {'scale':scale, 'zoom': zoom, 'mask' : 'transparency 60'}
ds9.mtv(exp, frame=frame, title=title, settings=settings)
# get the exposure from the butler
sources = butler.get('src', dataId)
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment