24 #ifndef LSST_AFW_GEOM_SKYWCS_H 25 #define LSST_AFW_GEOM_SKYWCS_H 40 #include "lsst/daf/base/PropertyList.h" 191 std::pair<Angle, Angle>
pixelToSky(
double x,
double y)
const;
193 std::vector<coord::IcrsCoord>
pixelToSky(std::vector<Point2D>
const &pixels)
const {
206 std::vector<Point2D>
skyToPixel(std::vector<coord::IcrsCoord>
const &sky)
const {
235 void writeStream(std::ostream & os)
const override;
242 explicit SkyWcs(std::shared_ptr<ast::FrameSet> &&frameSet);
246 std::shared_ptr<ast::FrameSet> _checkFrameSet(ast::FrameSet
const &frameSet)
const;
coord::IcrsCoord getSkyOrigin() const
Get CRVAL, the sky origin or celestial fiducial point.
A WCS that transform pixels to ICRS RA/Dec using the LSST standard for pixels.
lsst::afw::geom::Angle Angle
SkyWcs copyAtShiftedPixelOrigin(Extent2D const &shift) const
Return a copy of this SkyWcs with the pixel origin by the specified amount.
def scale(algorithm, min, max=None, frame=None)
AngleUnit constexpr degrees
constant with units of degrees
static SkyWcs readString(std::string &str)
Deserialize a SkyWcs from a string, using the same format as readStream.
std::vector< coord::IcrsCoord > pixelToSky(std::vector< Point2D > const &pixels) const
Compute sky position(s) from pixel position(s)
Eigen::Matrix2d getCdMatrix() const
Get the 2x2 CD matrix at the pixel origin.
A class representing an angle.
A base class for image defects.
Angle getPixelScale() const
Get the pixel scale at the pixel origin.
static std::string getShortClassName()
void writeStream(std::ostream &os) const override
Serialize this SkyWcs to an output stream.
coord::IcrsCoord pixelToSky(Point2D const &pixel) const
Compute sky position(s) from pixel position(s)
Point2D skyToPixel(coord::IcrsCoord const &sky) const
Compute pixel position(s) from sky position(s)
std::vector< Point2D > skyToPixel(std::vector< coord::IcrsCoord > const &sky) const
Compute pixel position(s) from sky position(s)
Point2D getPixelOrigin() const
Get CRPIX, the pixel origin, using the LSST convention.
static SkyWcs readStream(std::istream &is)
Deserialize a SkyWcs from an input stream.
std::pair< double, double > skyToPixel(Angle const &ra, Angle const &dec) const
Compute pixel position(s) from sky position(s)
SkyWcs(SkyWcs const &)=default
SkyWcs getTanWcs(Point2D const &pixel) const
Get a local TAN WCS approximation to this WCS at the specified pixel position.
std::string writeString() const override
Serialize this SkyWcs to a string, using the same format as writeStream.
Eigen::Matrix2d makeCdMatrix(Angle const &scale, Angle const &orientation=0 *degrees, bool flipX=false)
Make a WCS CD matrix.
table::PointKey< int > pixel
table::PointKey< double > crval
SkyWcs & operator=(SkyWcs const &)=delete
A class to handle Icrs coordinates (inherits from Coord)
table::PointKey< double > crpix
lsst::daf::base::PropertyList PropertyList
std::pair< Angle, Angle > pixelToSky(double x, double y) const
Compute sky position(s) from pixel position(s)