25 #ifndef LSST_AFW_IMAGE_WCS_H 26 #define LSST_AFW_IMAGE_WCS_H 50 namespace formatters {
150 Eigen::Matrix2d getCDMatrix()
const;
169 bool isFlipped()
const;
231 double getEquinox()
const;
240 bool isSameSkySystem(
Wcs const&
wcs)
const;
330 virtual void shiftReferencePixel(
double dx,
double dy);
336 virtual bool isPersistable()
const;
361 bool _mayBePersistable()
const;
368 virtual bool _isSubset(
Wcs const& other)
const;
395 Wcs& operator=(
const Wcs&);
401 virtual void pixelToSkyImpl(
double pixel1,
double pixel2,
geom::Angle skyTmp[2])
const;
444 void _setWcslibParams();
474 bool stripMetadata =
false);
489 double CD21,
double CD22);
529 #endif // LSST_AFW_IMAGE_WCS_H
Interface for Persistable base class.
virtual bool hasDistortion() const
afw::coord::CoordSystem getCoordSystem() const
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.
std::shared_ptr< Wcs > makeWcs(coord::Coord const &crval, geom::Point2D const &crpix, double CD11, double CD12, double CD21, double CD22)
Create a Wcs object from crval, crpix, CD, using CD elements (useful from python) ...
int stripWcsKeywords(std::shared_ptr< lsst::daf::base::PropertySet > const &metadata, std::shared_ptr< Wcs const > const &wcs)
AngleUnit constexpr degrees
constant with units of degrees
table::PointKey< double > crval
bool operator==(CoordKey const &lhs, CoordKey const &rhs)
Compare CoordKeys for equality using the constituent Keys.
Implementation of the WCS standard for a any projection.
table::Key< std::string > ctype2
A class used to convert scalar POD types such as double to Angle.
A base class for objects that can be persisted via afw::table::io Archive classes.
afw::table::PointKey< int > dimensions
A class representing an angle.
A base class for image defects.
geom::Point2I getImageXY0FromMetadata(std::string const &wcsName, lsst::daf::base::PropertySet *metadata)
std::shared_ptr< lsst::daf::base::PropertyList > createTrivialWcsAsPropertySet(std::string const &wcsName, int const x0=0, int const y0=0)
table::Key< double > equinox
std::shared_ptr< ImageT > rotateImageBy90(ImageT const &image, int nQuarter)
Rotate an image by an integral number of quarter turns.
bool _skyAxesSwapped
if true then the sky axes are swapped
Base class for all records.
bool operator!=(Wcs const &other) const
int _wcshdrCtrl
Controls messages to stderr from wcshdr (0 for none); see wcshdr.h for details.
int _relax
Degree of permissiveness for wcspih (0 for strict); see wcshdr.h for details.
Class for storing generic metadata.
int _wcsfixCtrl
Do potentially unsafe translations of non-standard unit strings? 0/1 = no/yes.
table::PointKey< int > pixel
Base class for all persistable classes.
Citizen is a class that should be among all LSST classes base classes, and handles basic memory manag...
#define LSST_PERSIST_FORMATTER(formatter...)
Macro used to connect the persistable class with the Formatter and boost::serialization.
This is the base class for spherical coordinates.
A CRTP facade class for subclasses of Persistable.
table::Key< std::string > ctype1
coord::CoordSystem _coordSystem
virtual void shiftReferencePixel(geom::Extent2D const &d)
table::PointKey< double > crpix