Function lsst::afw::geom::makeSimpleWcsMetadata

Function Documentation

std::shared_ptr<daf::base::PropertyList> lsst::afw::geom::makeSimpleWcsMetadata(lsst::geom::Point2D const &crpix, lsst::geom::SpherePoint const &crval, Eigen::Matrix2d const &cdMatrix, std::string const &projection = "TAN")

Make FITS metadata for a simple FITS WCS (one with no distortion).

This can also be used as a starting point for creating metadata for more sophisticated FITS WCS.

Parameters
  • [in] crpix: Center of projection on the CCD using the LSST convention: 0, 0 is the lower left pixel of the image

  • [in] crval: Center of projection on the sky

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

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