Commit fadc510d authored by michitaro's avatar michitaro
Browse files

Add new file

parent 07b5c9d3
# (x, y) is patch local coordinate
import lsst.afw.image as afwImage
import leet.afw.geom as afwGeom
exp = afwImage.ExposureF("calexp-[filter]-[tract]-[patch].fits")
x0,y0 = exp.getXy0()
psf = exp.getPsf()
psfImage = psf.computeImage(afwGeom.Point2D(x+x0,y+y0))
psfImage.writeFits("out.fits")
\ 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