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