26 """A factory for creating Wcs objects for the sky tiles. 29 def __init__(self, pixelScale, projection, rotation=0*afwGeom.radians, flipX=False):
32 @param[in] pixelScale: desired scale, as sky/pixel, an afwGeom.Angle 33 @param[in] projection: FITS-standard 3-letter name of projection, e.g.: 34 TAN (tangent), STG (stereographic), MOL (Mollweide's), AIT (Hammer-Aitoff) 35 see Representations of celestial coordinates in FITS (Calabretta and Greisen, 2002) 36 @param[in] rotation: Rotation relative to cardinal, as an lsst.afw.geom.Angle 37 @param[in] flipX: Flip the X axis? 39 if len(projection) != 3:
40 raise RuntimeError(
"projection=%r; must have length 3" % (projection,))
42 self.
_cdMatrix = afwGeom.makeCdMatrix(scale=pixelScale, orientation=rotation, flipX=flipX)
47 @param[in] crPixPos: crPix for WCS, using the LSST standard; an afwGeom.Point2D or pair of floats 48 @param[in] crValCoord: ICRS crVal for WCS (lsst.afw.geom.SpherePoint) 50 return afwGeom.makeSkyWcs(crpix=crPixPos, crval=crValCoord,
def makeWcs(self, crPixPos, crValCoord)
def __init__(self, pixelScale, projection, rotation=0 *afwGeom.radians, flipX=False)