createInitialSkyWcsFromBoresight¶
- lsst.obs.base.createInitialSkyWcsFromBoresight(boresight, orientation, detector, flipX=None)¶
- Create a SkyWcs from the telescope boresight and detector geometry. - A typical usecase for this is to create the initial WCS for a newly-read raw exposure. - Parameters:
- boresightlsst.geom.SpherePoint
- The ICRS boresight RA/Dec 
- orientationlsst.geom.Angle
- The rotation angle of the focal plane on the sky. 
- detectorlsst.afw.cameraGeom.Detector
- Where to get the camera geometry from. 
- flipXboolorNone, optional
- If - False, +X is along W, if- True+X is along E. If- None, the focal plane parity in the camera geometry is assumed to be correct, which may not be true for old camera datasets.
 
- boresight
- Returns:
- skyWcslsst.afw.geom.SkyWcs
- The new composed WCS. 
 
- skyWcs
- Raises:
- InitialSkyWcsError
- Raised if there is an error generating the SkyWcs, chained from the lower-level exception if available.