24 #ifndef LSST_AFW_IMAGE_TANWCS_H 25 #define LSST_AFW_IMAGE_TANWCS_H 28 #include "lsst/daf/base/Citizen.h" 29 #include "lsst/daf/base/Persistable.h" 45 namespace formatters {
46 class TanWcsFormatter;
86 double equinox = 2000, std::string
const &raDecSys =
"FK5", std::string
const &cunits1 =
"deg",
87 std::string
const &cunits2 =
"deg");
105 Eigen::MatrixXd
const &sipA, Eigen::MatrixXd
const &sipB, Eigen::MatrixXd
const &sipAp,
106 Eigen::MatrixXd
const &sipBp,
double equinox = 2000, std::string
const &raDecSys =
"FK5",
107 std::string
const &cunits1 =
"deg", std::string
const &cunits2 =
"deg");
112 std::shared_ptr<Wcs>
clone()
const override;
131 std::shared_ptr<daf::base::PropertyList> getFitsMetadata()
const override;
145 void setDistortionMatrices(Eigen::MatrixXd
const &sipA, Eigen::MatrixXd
const &sipB,
146 Eigen::MatrixXd
const &sipAp, Eigen::MatrixXd
const &sipBp);
149 Eigen::MatrixXd
const &
getSipA()
const {
return _sipA; }
152 Eigen::MatrixXd
const &
getSipB()
const {
return _sipB; }
155 Eigen::MatrixXd
const &
getSipAp()
const {
return _sipAp; }
158 Eigen::MatrixXd
const &
getSipBp()
const {
return _sipBp; }
161 bool isPersistable()
const override;
166 void pixelToSkyImpl(
double pixel1,
double pixel2,
geom::Angle skyTmp[2])
const override;
170 friend std::shared_ptr<Wcs>
makeWcs(std::shared_ptr<daf::base::PropertySet>
const &metadata,
bool);
172 friend class TanWcsFactory;
174 std::string getPersistenceName()
const override;
178 bool _isSubset(
Wcs const &)
const override;
189 TanWcs(std::shared_ptr<daf::base::PropertySet const>
const &fitsMetadata);
199 Eigen::MatrixXd _sipA, _sipB, _sipAp, _sipBp;
Eigen::MatrixXd const & getSipBp() const
Return the SIP reverse distortion matrix for y pixel coordinates.
std::shared_ptr< ImageT > flipImage(ImageT const &inImage, bool flipLR, bool flipTB)
Flip an image left–right and/or top–bottom.
An object passed to Persistable::write to allow it to persist itself.
table::PointKey< double > crval
Implementation of the WCS standard for a any projection.
Eigen::MatrixXd const & getSipA() const
Return the SIP forward distortion matrix for the 1st intermediate world coordinate system axis...
Eigen::MatrixXd const & getSipB() const
Return the SIP forward distortion matrix for the 2st intermediate world coordinate system axis...
lsst::daf::base::PropertySet PropertySet
bool hasDistortion() const override
afw::table::PointKey< int > dimensions
A class representing an angle.
A base class for image defects.
Implementation of the WCS standard for the special case of the Gnomonic (tangent plane) projection...
table::Key< double > equinox
std::shared_ptr< ImageT > rotateImageBy90(ImageT const &image, int nQuarter)
Rotate an image by an integral number of quarter turns.
Base class for all records.
table::PointKey< int > pixel
table::Key< table::Array< double > > cd
std::shared_ptr< Wcs > makeWcs(std::shared_ptr< lsst::daf::base::PropertySet > const &fitsMetadata, bool stripMetadata=false)
Create a Wcs object from a fits header.
A CRTP facade class for subclasses of Persistable.
Eigen::MatrixXd const & getSipAp() const
Return the SIP reverse distortion matrix for x pixel coordinates.
table::PointKey< double > crpix