Function lsst::meas::astrom::transformWcsPixels¶
Function Documentation¶
-
std::shared_ptr<afw::geom::SkyWcs>
lsst::meas::astrom
::
transformWcsPixels
(afw::geom::SkyWcs const &wcs, geom::AffineTransform const &s) Create a new SkyWcs whose pixel coordinate system has been transformed via an affine transform.
- Return
a new Wcs that satisfies the following:
for all sky coordinatesnewWcs = transformWcsPixels(wcs, s); assert(newWcs.skyToPixel(sky), s(wcs.skyToPixel(sky))); assert(newWcs.pixelToSky(pixel), wcs.pixelToSky(s.inverted()(pixel)));
sky
and pixel coordinatespixel
.- Parameters
[in] wcs
: Original SkyWcs object.[in] s
: AffineTransform to apply to the pixel coordinate system.