Function lsst::afw::geom::makeSkyWcs(TransformPoint2ToPoint2 const&, lsst::geom::Angle const&, bool, lsst::geom::SpherePoint const&, std::string const&)

Function Documentation

std::shared_ptr<SkyWcs> lsst::afw::geom::makeSkyWcs(TransformPoint2ToPoint2 const &pixelsToFieldAngle, lsst::geom::Angle const &orientation, bool flipX, lsst::geom::SpherePoint const &boresight, std::string const &projection = "TAN")

Construct a FITS SkyWcs from camera geometry

Return

a SkyWcs whose sky origin is the boresight and pixel origin is focal plane (0, 0).

Note

Unlike makeCdMatrix, orientation is with respect to the focal plane axes, not the CCD axes. This is because field angle is defined with respect to focal plane axes.

Parameters
  • [in] pixelsToFieldAngle: Transformation from pixels to field angle (in radians).

  • [in] orientation: Position angle of focal plane +Y, measured from N through E at crval. At 0 degrees, +Y is along N and +X is along W/E if flipX false/true. At 90 degrees, +Y is along E and +X is along N/S if flipX false/true.

  • [in] flipX: Flip x axis? See orientation for details.

  • [in] boresight: ICRS sky position at the boresight (field angle (0, 0)).

  • [in] projection: The name of the FITS WCS projection, e.g. “TAN” or “STG”.