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
virtual bool isPersistable() const
Whether the object is persistable using afw::table::io archives.
friend class TanWcsFactory
A coordinate class intended to represent absolute positions.
boost::shared_ptr< daf::base::PropertyList > getFitsMetadata() const
Return a PropertyList containing FITS header keywords that can be used to save the Wcs...
virtual geom::Point2D skyToPixelImpl(geom::Angle sky1, geom::Angle sky2) const
table::Key< table::Array< double > > cd
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.
An object passed to Persistable::write to allow it to persist itself.
Class for storing ordered metadata with comments.
geom::Angle pixelScale() const
Returns the pixel scale, in Angle/pixel.
table::PointKey< double > crval
geom::Point2D undistortPixel(geom::Point2D const &pixel) const
Applies the SIP A and B un-distortion (used in the pixelToSky direction)
Implementation of the WCS standard for a any projection.
std::map< Citizen const *, CitizenInfo > table
table::Key< table::Array< Kernel::Pixel > > image
virtual void write(OutputArchiveHandle &handle) const
Write the object to one or more catalogs.
Implementation of the WCS standard for the special case of the Gnomonic (tangent plane) projection...
virtual boost::shared_ptr< Wcs > clone() const
Polymorphic deep-copy.
table::Key< double > equinox
bool hasDistortion() const
friend boost::shared_ptr< Wcs > makeWcs(boost::shared_ptr< daf::base::PropertySet > const &metadata, bool)
Interface for Persistable base class.
#define LSST_PERSIST_FORMATTER(formatter...)
virtual bool _isSubset(Wcs const &) const
lsst::afw::geom::Angle Angle
Class for storing generic metadata.
boost::shared_ptr< lsst::afw::image::TanWcs const > ConstPtr
Point< double, 2 > Point2D
table::PointKey< int > pixel
geom::Point2D distortPixel(geom::Point2D const &pixel) const
Applies the SIP AP and BP distortion (used in the skyToPixel direction)
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.
boost::shared_ptr< lsst::afw::image::TanWcs > Ptr
virtual void pixelToSkyImpl(double pixel1, double pixel2, geom::Angle skyTmp[2]) const
virtual std::string getPersistenceName() const
Return the unique name used to persist this object and look up its factory.
table::PointKey< double > crpix