Best way to warp a PSF to match a warped image?

Hi @charlotteaward – thanks for your message. Another community member recently posted an example of using WarpedPsf :

Specifically the lines:

xyTransform = afwGeom.makeWcsPairTransform(template.wcs,calexp.wcs)
warpedPsf = measAlgorithms.WarpedPsf(template.psf, xyTransform)

Does that approach (passing an output from afwGeom.makeWcsPairTransform as an input to WarpedPsf) work for you? Thanks again.