24 #ifndef LSST_AFW_IMAGE_TANWCS_H
25 #define LSST_AFW_IMAGE_TANWCS_H
45 namespace formatters {
46 class TanWcsFormatter;
70 typedef boost::shared_ptr<lsst::afw::image::TanWcs>
Ptr;
71 typedef boost::shared_ptr<lsst::afw::image::TanWcs const>
ConstPtr;
76 std::string
const & which,
93 Eigen::Matrix2d
const &
cd,
94 double equinox=2000, std::string
const & raDecSys=
"FK5",
95 std::string
const & cunits1=
"deg", std::string
const & cunits2=
"deg"
115 Eigen::Matrix2d
const &
cd,
116 Eigen::MatrixXd
const & sipA,
117 Eigen::MatrixXd
const & sipB,
118 Eigen::MatrixXd
const & sipAp,
119 Eigen::MatrixXd
const & sipBp,
120 double equinox=2000, std::string
const & raDecSys=
"FK5",
121 std::string
const & cunits1=
"deg", std::string
const & cunits2=
"deg"
158 Eigen::MatrixXd const & sipA,
159 Eigen::MatrixXd const & sipB,
160 Eigen::MatrixXd const & sipAp,
161 Eigen::MatrixXd const & sipBp
friend class TanWcsFactory
virtual bool _isSubset(Wcs const &) const
A coordinate class intended to represent absolute positions.
lsst::afw::geom::Angle Angle
table::Key< table::Array< double > > cd
An object passed to Persistable::write to allow it to persist itself.
Class for storing ordered metadata with comments.
virtual bool isPersistable() const
Whether the object is persistable using afw::table::io archives.
table::PointKey< double > crval
Point< double, 2 > Point2D
static void decodeSipHeader(daf::base::PropertySet const &fitsMetadata, std::string const &which, Eigen::MatrixXd &m)
Decode the SIP headers for a given matrix, if present.
Implementation of the WCS standard for a any projection.
bool hasDistortion() const
virtual geom::Point2D skyToPixelImpl(geom::Angle sky1, geom::Angle sky2) const
std::map< Citizen const *, CitizenInfo > table
table::Key< table::Array< Kernel::Pixel > > image
boost::shared_ptr< daf::base::PropertyList > getFitsMetadata() const
Return a PropertyList containing FITS header keywords that can be used to save the Wcs...
Implementation of the WCS standard for the special case of the Gnomonic (tangent plane) projection...
table::Key< double > equinox
virtual void pixelToSkyImpl(double pixel1, double pixel2, geom::Angle skyTmp[2]) const
boost::shared_ptr< lsst::afw::image::TanWcs const > ConstPtr
geom::Point2D undistortPixel(geom::Point2D const &pixel) const
Applies the SIP A and B un-distortion (used in the pixelToSky direction)
friend boost::shared_ptr< Wcs > makeWcs(boost::shared_ptr< daf::base::PropertySet > const &metadata, bool)
#define LSST_PERSIST_FORMATTER(formatter...)
Interface for Persistable base class.
virtual void write(OutputArchiveHandle &handle) const
Write the object to one or more catalogs.
Class for storing generic metadata.
table::PointKey< int > pixel
virtual std::string getPersistenceName() const
Return the unique name used to persist this object and look up its factory.
boost::shared_ptr< lsst::afw::image::TanWcs > Ptr
geom::Angle pixelScale() const
Returns the pixel scale, in Angle/pixel.
virtual boost::shared_ptr< Wcs > clone() const
Polymorphic deep-copy.
A coordinate class intended to represent offsets and dimensions.
A CRTP facade class for subclasses of Persistable.
void setDistortionMatrices(Eigen::MatrixXd const &sipA, Eigen::MatrixXd const &sipB, Eigen::MatrixXd const &sipAp, Eigen::MatrixXd const &sipBp)
Set the distortion matrices.
geom::Point2D distortPixel(geom::Point2D const &pixel) const
Applies the SIP AP and BP distortion (used in the skyToPixel direction)
table::PointKey< double > crpix