196 (crDiffSourceFile, crDiffExposureFile) = args
199 crDiffExposure = afwImage.ExposureF(crDiffExposureFile)
204 expX0 = crDiffExposure.getX0()
205 expY0 = crDiffExposure.getY0()
206 expX1 = expX0 + crDiffExposure.getWidth() - 1
207 expY1 = expY0 + crDiffExposure.getHeight() - 1
209 for i
in range(crDiffSources.size()):
210 crDiffSource = crDiffSources[i]
216 xAstrom = crDiffSource.getXAstrom()
217 yAstrom = crDiffSource.getYAstrom()
218 Ixx = max(1.0, crDiffSource.getIxx())
219 Iyy = max(1.0, crDiffSource.getIyy())
220 x0 = max(expX0, int(xAstrom - scaling * Ixx))
221 x1 = min(expX1, int(xAstrom + scaling * Ixx))
222 y0 = max(expY0, int(yAstrom - scaling * Iyy))
223 y1 = min(expY1, int(yAstrom + scaling * Iyy))
226 subExp = afwImage.ExposureF(crDiffExposure, bbox)
227 subMi = subExp.getMaskedImage()
228 imArr, maArr, varArr = subMi.getArrays()
230 if analyst.testSource(crDiffSource, subMi):
231 ds9.mtv(subExp, frame=1)
raw_input(
'Next: ')