23 __all__ = [
'WcsFactory']
30 """A factory for creating Wcs objects for the sky tiles.
34 pixelScale : `lsst.geom.Angle`
35 Desired scale, as sky/pixel.
37 FITS-standard 3-letter name of projection, e.g.: TAN (tangent),
38 STG (stereographic), MOL (Mollweide's), AIT (Hammer-Aitoff)
39 see Representations of celestial coordinates in FITS
40 (Calabretta and Greisen, 2002).
41 rotation : `lsst.geom.Angle`
42 Rotation relative to cardinal.
47 def __init__(self, pixelScale, projection, rotation=0*geom.radians, flipX=False):
48 if len(projection) != 3:
49 raise RuntimeError(
"projection=%r; must have length 3" % (projection,))
51 self.
_cdMatrix = afwGeom.makeCdMatrix(scale=pixelScale, orientation=rotation, flipX=flipX)
58 crPixPos : `lsst.geom.Point2D`
59 crPix for WCS, using the LSST standard.
60 crValCoord : `lsst.geom.SpherePoint`
65 results : `lsst.afw.geom.SkyWcs`
66 The new SkyWcs object.
68 return afwGeom.makeSkyWcs(crpix=crPixPos, crval=crValCoord,