23__all__ = [
'WcsFactory']
30 """A factory for creating Wcs objects for the sky tiles.
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).
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)
59 crPix for WCS, using the LSST standard.
66 The new SkyWcs object.
68 return afwGeom.makeSkyWcs(crpix=crPixPos, crval=crValCoord,
makeWcs(self, crPixPos, crValCoord)
__init__(self, pixelScale, projection, rotation=0 *geom.radians, flipX=False)