prepareWcsData

lsst.afw.cameraGeom.utils.prepareWcsData(wcs, amp, isTrimmed=True)

Put Wcs from an Amp image into CCD coordinates

Parameters:
wcs : lsst.afw.geom.SkyWcs

The WCS object to start from.

amp : lsst.afw.table.AmpInfoRecord

Amp object to use

isTrimmed : bool

Is the image to which the WCS refers trimmed of non-imaging pixels?

Returns:
ampWcs : lsst.afw.geom.SkyWcs

The modified WCS.