23 #include "lsst/pex/exceptions.h"
32 :
TanWcs(tanWcs), _pixelsToTanPixelsPtr(pixelsToTanPixels.
clone()) {
34 throw LSST_EXCEPT(pex::exceptions::InvalidParameterError,
"tanWcs has distortion terms");
43 throw LSST_EXCEPT(pex::exceptions::LogicError,
"== is not implemented");
47 throw LSST_EXCEPT(pex::exceptions::LogicError,
"flipImage is not implemented");
51 throw LSST_EXCEPT(pex::exceptions::LogicError,
"rotateImageBy90 is not implemented");
55 throw LSST_EXCEPT(pex::exceptions::LogicError,
"shiftReferencePixel is not implemented");
60 return _pixelsToTanPixelsPtr->reverseTransform(tanPos);
65 auto const tanPos = _pixelsToTanPixelsPtr->forwardTransform(pos);
afw::table::PointKey< int > dimensions
virtual void shiftReferencePixel(double dx, double dy)
void pixelToSkyImpl(double pixel1, double pixel2, geom::Angle skyTmp[2]) const override
Worker routine for pixelToSky.
virtual void flipImage(int flipLR, int flipTB, lsst::afw::geom::Extent2I dimensions) const
virtual void pixelToSkyImpl(double pixel1, double pixel2, geom::Angle skyTmp[2]) const
Worker routine for skyToPixel.
Implementation of the WCS standard for a any projection.
geom::Point2D skyToPixelImpl(geom::Angle sky1, geom::Angle sky2) const override
Worker routine for skyToPixel.
virtual std::shared_ptr< Wcs > clone() const
Polymorphic deep-copy.
bool hasDistortion() const override
A class representing an angle.
Implementation of the WCS standard for the special case of the Gnomonic (tangent plane) projection...
Point< double, 2 > Point2D
bool operator==(Wcs const &other) const
virtual geom::Point2D skyToPixelImpl(geom::Angle sky1, geom::Angle sky2) const
Worker routine for pixelToSky.
DistortedTanWcs(TanWcs const &tanWcs, geom::XYTransform const &pixelsToTanPixels)
Construct a DistortedTanWcs.
virtual void rotateImageBy90(int nQuarter, lsst::afw::geom::Extent2I dimensions) const