Function lsst::afw::geom::makeCdMatrix

Function Documentation

Eigen::Matrix2d lsst::afw::geom::makeCdMatrix(lsst::geom::Angle const &scale, lsst::geom::Angle const &orientation = 0 * lsst::geom::degrees, bool flipX = false)

Make a WCS CD matrix

Return

the CD matrix, where element (i-1, j-1) corresponds to FITS keyword CDi_j and i, j have range [1, 2]

Parameters
  • [in] scale: Pixel scale as an angle on sky/pixels

  • [in] orientation: Position angle of pixel +Y, measured from N through E. 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.