Commit 07b5c9d3 authored by michitaro's avatar michitaro
Browse files

Add new file

# Using Butler
import lsst.daf.persistence as dafPersist
dataDir = "$home/hsc/rerun/[rerun]"
butler = dafPersist.Butler(dataDir)
dataId = {'tract':xxxx, 'patch':xxxx}
catalog = butler.get('psf', dataId, immediate=True)
Ixx = catalog.getIxx()
Iyy = catalog.getIyy()
Ixy = catalog.getIxy()
size = (Ixx*Iyy - Ixy**2)**(1./4)
# In case of using pyfits, the data is stored as array[Ixx, Iyy, Ixy].
# You can use this array for size calculation.
\ No newline at end of file
Supports Markdown
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