...
One consequence of this overhaul is that measurements using the SdssCentroid
algorithm, which is currently the default, require that a PSF be attached to the Exposure
being measured. This could be as simple as attaching a SingleGaussianPsf
:
Code Block | ||
---|---|---|
| ||
# Add a Gaussian PSF to the exposure. This is needed by the SDSS Centroid Algorithm. # For the kernel make it 3*sigma on either side of the central pixel. sigma = 1.0 size = 2*int(3*sigma) + 1 gaussianPSF = measAlg.SingleGaussianPsf(size, size, sigma) exposure.setPsf(gaussianPSF) |
...