|
lsst.afw
14.0-58-g91bfccb15
|
Namespaces | |
| angle | |
| coordinates | |
| detail | |
| details | |
| ellipses | |
| polygon | |
| python | |
| skyWcs | |
| spherePoint | |
| testUtils | |
| transform | |
| transformConfig | |
| transformFromString | |
| utils | |
| wcsUtils | |
| xyTransformFactory | |
Classes | |
| class | AffineTransform |
| An affine coordinate transformation consisting of a linear transformation and an offset. More... | |
| class | AffineXYTransform |
| Wrap an AffineTransform. More... | |
| class | Angle |
| A class representing an angle. More... | |
| class | AngleUnit |
A class used to convert scalar POD types such as double to Angle. More... | |
| class | BaseEndpoint |
| Virtual base class for endpoints, which are helper classes for Transform. More... | |
| class | BaseVectorEndpoint |
| Base class for endpoints with Array = std::vector<Point> where Point has 2 dimensions. More... | |
| class | Box2D |
| A floating-point coordinate rectangle geometry. More... | |
| class | Box2I |
| An integer coordinate rectangle. More... | |
| class | CoordinateBase |
| A CRTP base class for coordinate objects. More... | |
| class | CoordinateBase< Derived, T, 2 > |
| Specialization of CoordinateBase for 2 dimensions. More... | |
| class | CoordinateBase< Derived, T, 3 > |
| Specialization of CoordinateBase for 3 dimensions. More... | |
| class | CoordinateExpr |
| A boolean coordinate. More... | |
| class | Extent |
| A coordinate class intended to represent offsets and dimensions. More... | |
| class | Extent< T, 2 > |
| A coordinate class intended to represent offsets and dimensions (2-d specialization). More... | |
| class | Extent< T, 3 > |
| A coordinate class intended to represent offsets and dimensions (3-d specialization). More... | |
| class | ExtentBase |
| class | Functor |
| Abstract base class for function objects. More... | |
| class | GenericEndpoint |
| A generic endpoint for data in the format used by ast::Mapping. More... | |
| class | IcrsCoordEndpoint |
| An endpoint for IcrsCoord. More... | |
| class | IdentityXYTransform |
| A trivial XYTransform satisfying f(x)=x. More... | |
| class | InvertedXYTransform |
| Wrap an XYTransform, swapping forward and reverse transforms. More... | |
| class | LinearFunctor |
| Concrete implementation of Functor subclass for testing. More... | |
| class | LinearTransform |
| A 2D linear coordinate transformation. More... | |
| class | MultiXYTransform |
| Wrap a sequence of multiple XYTransforms. More... | |
| class | Point |
| A coordinate class intended to represent absolute positions. More... | |
| class | Point2Endpoint |
| An endpoint for Point2D. More... | |
| class | Point< T, 2 > |
| A coordinate class intended to represent absolute positions (2-d specialization). More... | |
| class | Point< T, 3 > |
| A coordinate class intended to represent absolute positions (3-d specialization). More... | |
| class | PointBase |
| class | RadialXYTransform |
| A purely radial polynomial distortion, up to 6th order. More... | |
| class | SeparableXYTransform |
| A 2D transform for which the pixel distortions in the in the x- and y-directions are separable. More... | |
| class | SingularTransformException |
| class | SkyWcs |
| A 2-dimensional celestial WCS that transform pixels to ICRS RA/Dec, using the LSST standard for pixels. More... | |
| class | Span |
| A range of pixels within one row of an Image. More... | |
| class | SpanPixelIterator |
| An iterator that yields Point2I and increases in the x direction. More... | |
| class | SpanSet |
| A compact representation of a collection of pixels. More... | |
| class | SpherePoint |
| Point in an unspecified spherical coordinate system. More... | |
| class | Transform |
| Transform LSST spatial data, such as Point2D and IcrsCoord, using an AST transform. More... | |
| class | XYTransform |
| Virtual base class for 2D transforms. More... | |
Typedefs | |
| typedef Box2D | BoxD |
| typedef Box2I | BoxI |
| typedef CoordinateExpr< 2 > | CoordinateExpr2 |
| typedef CoordinateExpr< 3 > | CoordinateExpr3 |
| typedef Extent< int, 2 > | ExtentI |
| typedef Extent< int, 2 > | Extent2I |
| typedef Extent< int, 3 > | Extent3I |
| typedef Extent< double, 2 > | ExtentD |
| typedef Extent< double, 2 > | Extent2D |
| typedef Extent< double, 3 > | Extent3D |
| typedef Point< int, 2 > | PointI |
| typedef Point< int, 2 > | Point2I |
| typedef Point< int, 3 > | Point3I |
| typedef Point< double, 2 > | PointD |
| typedef Point< double, 2 > | Point2D |
| typedef Point< double, 3 > | Point3D |
| using | TransformPoint2ToPoint2 = Transform< Point2Endpoint, Point2Endpoint > |
| using | TransformPoint2ToGeneric = Transform< Point2Endpoint, GenericEndpoint > |
| using | TransformPoint2ToIcrsCoord = Transform< Point2Endpoint, IcrsCoordEndpoint > |
Enumerations | |
| enum | Stencil { Stencil::CIRCLE, Stencil::BOX, Stencil::MANHATTAN } |
| An enumeration class which describes the shapes. More... | |
Functions | |
| std::ostream & | operator<< (std::ostream &os, lsst::afw::geom::AffineTransform const &transform) |
| AffineTransform | makeAffineTransformFromTriple (Point2D const &p1, Point2D const &p2, Point2D const &p3, Point2D const &q1, Point2D const &q2, Point2D const &q3) |
| constexpr double | degToRad (double x) noexcept |
| constexpr double | radToDeg (double x) noexcept |
| constexpr double | radToArcsec (double x) noexcept |
| constexpr double | radToMas (double x) noexcept |
| constexpr double | arcsecToRad (double x) noexcept |
| constexpr double | masToRad (double x) noexcept |
| constexpr Angle | operator+ (Angle a, Angle d) noexcept |
| Sum of two angles. More... | |
| constexpr Angle | operator- (Angle a, Angle d) noexcept |
| Difference of two angles. More... | |
| constexpr Angle | operator* (Angle a, Angle d) noexcept |
| Product of two angles. More... | |
| constexpr Angle | operator- (Angle angle) |
| An angle in the opposite sense. More... | |
| constexpr Angle | operator/ (Angle a, int d) noexcept |
| Ratio of an angle and a scalar. More... | |
| constexpr Angle | operator/ (Angle a, double d) noexcept |
| Ratio of an angle and a scalar. More... | |
| template<typename T > | |
| constexpr double | operator/ (T const lhs, Angle rhs) noexcept=delete |
| std::ostream & | operator<< (std::ostream &s, Angle a) |
| Print an Angle to a stream. More... | |
| template<typename T > | |
| constexpr bool | isAngle (T) noexcept |
| Allow a user to check if they have an angle. More... | |
| template<typename T > | |
| constexpr Angle | operator* (T lhs, AngleUnit rhs) noexcept |
| Use AngleUnit to convert a POD (e.g. int, double) to an Angle; e.g. 180*degrees. More... | |
| std::ostream & | operator<< (std::ostream &os, Box2I const &box) |
| std::ostream & | operator<< (std::ostream &os, Box2D const &box) |
| template<typename Derived , typename T , int N> | |
| bool | allclose (CoordinateBase< Derived, T, N > const &a, CoordinateBase< Derived, T, N > const &b, T rtol=static_cast< T >(1E-5), T atol=static_cast< T >(1E-8)) |
| Floating-point comparison with tolerance. More... | |
| template<typename Derived , typename T , int N> | |
| std::ostream & | operator<< (std::ostream &os, CoordinateBase< Derived, T, N > const &coordinate) |
| template<int N> | |
| bool | all (CoordinateExpr< N > const &expr) |
| Return true if all elements are true. More... | |
| template<int N> | |
| bool | any (CoordinateExpr< N > const &expr) |
| Return true if any elements are true. More... | |
| std::ostream & | operator<< (std::ostream &os, GenericEndpoint const &endpoint) |
Print "GenericEndpoint(_n_)" to the ostream where _n_ is the number of axes, e.g. "GenericAxes(4)". More... | |
| std::ostream & | operator<< (std::ostream &os, Point2Endpoint const &endpoint) |
| Print "Point2Endpoint()" to the ostream. More... | |
| std::ostream & | operator<< (std::ostream &os, IcrsCoordEndpoint const &endpoint) |
| Print "IcrsCoordEndpoint()" to the ostream. More... | |
| template<int N> | |
| Extent< int, N > | truncate (Extent< double, N > const &input) |
| Return the component-wise truncation (round towards zero). More... | |
| template<int N> | |
| Extent< int, N > | floor (Extent< double, N > const &input) |
| Return the component-wise floor (round towards more negative). More... | |
| template<int N> | |
| Extent< int, N > | ceil (Extent< double, N > const &input) |
| Return the component-wise ceil (round towards more positive). More... | |
| template<typename T , int N> | |
| Extent< T, N > | operator* (T scalar, ExtentBase< T, N > const &rhs) |
| template<int N> | |
| Extent< double, N > | operator* (ExtentBase< int, N > const &lhs, double rhs) |
| template<int N> | |
| void | operator*= (ExtentBase< int, N > &lhs, double rhs) |
| template<int N> | |
| Extent< double, N > | operator/ (ExtentBase< int, N > const &lhs, double rhs) |
| template<int N> | |
| void | operator/= (ExtentBase< int, N > &lhs, double rhs) |
| template<int N> | |
| Extent< double, N > | operator* (double lhs, ExtentBase< int, N > const &rhs) |
| template<int N> | |
| Extent< double, N > | operator+ (Extent< double, N > const &lhs, Extent< int, N > const &rhs) |
| template<int N> | |
| Extent< double, N > & | operator+= (Extent< double, N > &lhs, Extent< int, N > const &rhs) |
| template<int N> | |
| Extent< double, N > | operator- (Extent< double, N > const &lhs, Extent< int, N > const &rhs) |
| template<int N> | |
| Extent< double, N > & | operator-= (Extent< double, N > &lhs, Extent< int, N > const &rhs) |
| template<int N> | |
| Extent< double, N > | operator+ (Extent< int, N > const &lhs, Extent< double, N > const &rhs) |
| template<int N> | |
| Extent< double, N > | operator- (Extent< int, N > const &lhs, Extent< double, N > const &rhs) |
| std::ostream & | operator<< (std::ostream &os, lsst::afw::geom::LinearTransform const &t) |
| template<int N> | |
| Point< double, N > | operator+ (Point< double, N > const &lhs, Extent< int, N > const &rhs) |
| template<int N> | |
| Point< double, N > | operator+ (Extent< int, N > const &rhs, Point< double, N > const &lhs) |
| template<int N> | |
| Point< double, N > & | operator+= (Point< double, N > &lhs, Extent< int, N > const &rhs) |
| template<int N> | |
| Point< double, N > | operator+ (Point< int, N > const &lhs, Extent< double, N > const &rhs) |
| template<int N> | |
| Point< double, N > | operator- (Point< double, N > const &lhs, Extent< int, N > const &rhs) |
| template<int N> | |
| Point< double, N > & | operator-= (Point< double, N > &lhs, Extent< int, N > const &rhs) |
| template<int N> | |
| Point< double, N > | operator- (Point< int, N > const &lhs, Extent< double, N > const &rhs) |
| template<int N> | |
| Extent< double, N > | operator- (Point< double, N > const &lhs, Point< int, N > const &rhs) |
| template<int N> | |
| Extent< double, N > | operator- (Point< int, N > const &lhs, Point< double, N > const &rhs) |
| Eigen::Matrix2d | makeCdMatrix (Angle const &scale, Angle const &orientation=0 *degrees, bool flipX=false) |
| Make a WCS CD matrix. More... | |
| std::shared_ptr< SkyWcs > | makeFlippedWcs (SkyWcs const &wcs, bool flipLR, bool flipTB, geom::Point2D const ¢er) |
| Return a copy of a FITS-WCS with pixel positions flipped around a specified center. More... | |
| std::shared_ptr< SkyWcs > | makeModifiedWcs (TransformPoint2ToPoint2 const &pixelTransform, SkyWcs const &wcs, bool modifyActualPixels) |
| Create a new SkyWcs whose pixels are transformed by pixelTransform, as described below. More... | |
| std::shared_ptr< SkyWcs > | makeSkyWcs (daf::base::PropertySet &metadata, bool strip=false) |
| Construct a SkyWcs from FITS keywords. More... | |
| std::shared_ptr< SkyWcs > | makeSkyWcs (Point2D const &crpix, coord::IcrsCoord const &crval, Eigen::Matrix2d const &cdMatrix, std::string const &projection="TAN") |
| Construct a simple FITS SkyWcs with no distortion. More... | |
| std::shared_ptr< SkyWcs > | makeTanSipWcs (Point2D const &crpix, coord::IcrsCoord const &crval, Eigen::Matrix2d const &cdMatrix, Eigen::MatrixXd const &sipA, Eigen::MatrixXd const &sipB) |
| Construct a TAN-SIP SkyWcs with forward SIP distortion terms and an iterative inverse. More... | |
| std::shared_ptr< SkyWcs > | makeTanSipWcs (Point2D const &crpix, coord::IcrsCoord const &crval, Eigen::Matrix2d const &cdMatrix, Eigen::MatrixXd const &sipA, Eigen::MatrixXd const &sipB, Eigen::MatrixXd const &sipAp, Eigen::MatrixXd const &sipBp) |
| Construct a TAN WCS with forward and inverse SIP distortion terms. More... | |
| std::shared_ptr< TransformPoint2ToPoint2 > | makeWcsPairTransform (SkyWcs const &src, SkyWcs const &dst) |
| A Transform obtained by putting two SkyWcs objects "back to back". More... | |
| std::shared_ptr< TransformPoint2ToIcrsCoord > | getIntermediateWorldCoordsToSky (SkyWcs const &wcs, bool simplify=true) |
| Return a transform from intermediate world coordinates to sky. More... | |
| std::shared_ptr< TransformPoint2ToPoint2 > | getPixelToIntermediateWorldCoords (SkyWcs const &wcs, bool simplify=true) |
| Return a transform from pixel coordinates to intermediate world coordinates. More... | |
| std::ostream & | operator<< (std::ostream &os, SkyWcs const &wcs) |
| Print a SkyWcs to an ostream. More... | |
| std::ostream & | operator<< (std::ostream &os, SpherePoint const &point) |
| Print the value of a point to a stream. More... | |
| template<class FromEndpoint , class ToEndpoint > | |
| std::ostream & | operator<< (std::ostream &os, Transform< FromEndpoint, ToEndpoint > const &transform) |
| Print a Transform to an ostream. More... | |
| AffineTransform | linearizeTransform (TransformPoint2ToPoint2 const &original, Point2D const &inPoint) |
| Approximate a Transform by its local linearization. More... | |
| std::shared_ptr< TransformPoint2ToPoint2 > | makeTransform (AffineTransform const &affine) |
| Wrap an AffineTransform as a Transform. More... | |
| std::shared_ptr< TransformPoint2ToPoint2 > | makeRadialTransform (std::vector< double > const &coeffs) |
| A purely radial polynomial distortion. More... | |
| std::shared_ptr< TransformPoint2ToPoint2 > | makeRadialTransform (std::vector< double > const &forwardCoeffs, std::vector< double > const &inverseCoeffs) |
| A purely radial polynomial distortion. More... | |
| std::shared_ptr< TransformPoint2ToPoint2 > | makeIdentityTransform () |
| Trivial Transform x → x. More... | |
| std::shared_ptr< daf::base::PropertyList > | createTrivialWcsMetadata (std::string const &wcsName, geom::Point2I const &xy0) |
| void | deleteBasicWcsMetadata (daf::base::PropertySet &metadata, std::string const &wcsName) |
| Eigen::Matrix2d | getCdMatrixFromMetadata (daf::base::PropertySet &metadata) |
| Read a CD matrix from FITS WCS metadata. More... | |
| geom::Point2I | getImageXY0FromMetadata (daf::base::PropertySet &metadata, std::string const &wcsName, bool strip=false) |
| Eigen::MatrixXd | getSipMatrixFromMetadata (daf::base::PropertySet const &metadata, std::string const &name) |
| bool | hasSipMatrix (daf::base::PropertySet const &metadata, std::string const &name) |
| std::shared_ptr< daf::base::PropertyList > | makeSipMatrixMetadata (Eigen::MatrixXd const &matrix, std::string const &name) |
| std::shared_ptr< daf::base::PropertyList > | makeSimpleWcsMetadata (Point2D const &crpix, coord::IcrsCoord const &crval, Eigen::Matrix2d const &cdMatrix, std::string const &projection="TAN") |
| Make FITS metadata for a simple FITS WCS (one with no distortion). More... | |
| std::shared_ptr< daf::base::PropertyList > | makeTanSipMetadata (Point2D const &crpix, coord::IcrsCoord const &crval, Eigen::Matrix2d const &cdMatrix, Eigen::MatrixXd const &sipA, Eigen::MatrixXd const &sipB) |
| Make metadata for a TAN-SIP WCS without inverse matrices. More... | |
| std::shared_ptr< daf::base::PropertyList > | makeTanSipMetadata (Point2D const &crpix, coord::IcrsCoord const &crval, Eigen::Matrix2d const &cdMatrix, Eigen::MatrixXd const &sipA, Eigen::MatrixXd const &sipB, Eigen::MatrixXd const &sipAp, Eigen::MatrixXd const &sipBp) |
| Make metadata for a TAN-SIP WCS. More... | |
| constexpr Angle | operator* (Angle a, double d) noexcept |
| Product of an angle and a scalar. More... | |
| constexpr Angle | operator* (double d, Angle a) noexcept |
| Product of an angle and a scalar. More... | |
| constexpr Angle | operator* (Angle a, int d) noexcept |
| Product of an angle and a scalar. More... | |
| constexpr Angle | operator* (int d, Angle a) noexcept |
| Product of an angle and a scalar. More... | |
Variables | |
| double constexpr | PI = boost::math::constants::pi<double>() |
| The ratio of a circle's circumference to diameter. More... | |
| double constexpr | TWOPI = boost::math::constants::pi<double>() * 2.0 |
| double constexpr | HALFPI = boost::math::constants::pi<double>() * 0.5 |
| double constexpr | ONE_OVER_PI = 1.0 / boost::math::constants::pi<double>() |
| double const | SQRTPI = sqrt(boost::math::constants::pi<double>()) |
| double const | INVSQRTPI = 1.0 / sqrt(boost::math::constants::pi<double>()) |
| double constexpr | ROOT2 = boost::math::constants::root_two<double>() |
| AngleUnit constexpr | radians = AngleUnit(1.0) |
| constant with units of radians More... | |
| AngleUnit constexpr | degrees = AngleUnit(PI / 180.0) |
| constant with units of degrees More... | |
| AngleUnit constexpr | hours = AngleUnit(PI * 15.0 / 180.0) |
| constant with units of hours More... | |
| AngleUnit constexpr | arcminutes = AngleUnit(PI / 60 / 180.0) |
| constant with units of arcminutes More... | |
| AngleUnit constexpr | arcseconds = AngleUnit(PI / 180.0 / 3600.0) |
| constant with units of arcseconds More... | |
| typedef Box2D lsst::afw::geom::BoxD |
| typedef Box2I lsst::afw::geom::BoxI |
| typedef CoordinateExpr<2> lsst::afw::geom::CoordinateExpr2 |
Definition at line 99 of file CoordinateExpr.h.
| typedef CoordinateExpr<3> lsst::afw::geom::CoordinateExpr3 |
Definition at line 100 of file CoordinateExpr.h.
| typedef Extent<double, 2> lsst::afw::geom::Extent2D |
| typedef Extent<int, 2> lsst::afw::geom::Extent2I |
| typedef Extent<double, 3> lsst::afw::geom::Extent3D |
| typedef Extent<int, 3> lsst::afw::geom::Extent3I |
| typedef Extent<double, 2> lsst::afw::geom::ExtentD |
| typedef Extent<int, 2> lsst::afw::geom::ExtentI |
| typedef Point<double, 2> lsst::afw::geom::Point2D |
| typedef Point<int, 2> lsst::afw::geom::Point2I |
| typedef Point<double, 3> lsst::afw::geom::Point3D |
| typedef Point<int, 3> lsst::afw::geom::Point3I |
| typedef Point<double, 2> lsst::afw::geom::PointD |
| typedef Point<int, 2> lsst::afw::geom::PointI |
| using lsst::afw::geom::TransformPoint2ToGeneric = typedef Transform<Point2Endpoint, GenericEndpoint> |
Definition at line 312 of file Transform.h.
| using lsst::afw::geom::TransformPoint2ToIcrsCoord = typedef Transform<Point2Endpoint, IcrsCoordEndpoint> |
Definition at line 313 of file Transform.h.
| using lsst::afw::geom::TransformPoint2ToPoint2 = typedef Transform<Point2Endpoint, Point2Endpoint> |
Definition at line 311 of file Transform.h.
|
strong |
|
inline |
Return true if all elements are true.
Definition at line 85 of file CoordinateExpr.h.
| bool allclose | ( | CoordinateBase< Derived, T, N > const & | a, |
| CoordinateBase< Derived, T, N > const & | b, | ||
| T | rtol = static_cast< T >(1E-5), |
||
| T | atol = static_cast< T >(1E-8) |
||
| ) |
Floating-point comparison with tolerance.
Interface, naming, and default tolerances matches Numpy.
|
inline |
Return true if any elements are true.
Definition at line 93 of file CoordinateExpr.h.
|
inlinenoexcept |
Return the component-wise ceil (round towards more positive).
In Python, this is available as both a free function and a method on ExtentD.
| std::shared_ptr<daf::base::PropertyList> lsst::afw::geom::createTrivialWcsMetadata | ( | std::string const & | wcsName, |
| geom::Point2I const & | xy0 | ||
| ) |
|
inlinenoexcept |
| void lsst::afw::geom::deleteBasicWcsMetadata | ( | daf::base::PropertySet & | metadata, |
| std::string const & | wcsName | ||
| ) |
Return the component-wise floor (round towards more negative).
In Python, this is available as both a free function and a method on ExtentD.
| Eigen::Matrix2d lsst::afw::geom::getCdMatrixFromMetadata | ( | daf::base::PropertySet & | metadata | ) |
Read a CD matrix from FITS WCS metadata.
The elements of the returned matrix are in degrees
| pex::exceptions::TypeError | if no CD matrix coefficients found (missing coefficients are set to 0, as usual, but they cannot all be missing). |
| geom::Point2I lsst::afw::geom::getImageXY0FromMetadata | ( | daf::base::PropertySet & | metadata, |
| std::string const & | wcsName, | ||
| bool | strip = false |
||
| ) |
| std::shared_ptr<TransformPoint2ToIcrsCoord> lsst::afw::geom::getIntermediateWorldCoordsToSky | ( | SkyWcs const & | wcs, |
| bool | simplify = true |
||
| ) |
Return a transform from intermediate world coordinates to sky.
| std::shared_ptr<TransformPoint2ToPoint2> lsst::afw::geom::getPixelToIntermediateWorldCoords | ( | SkyWcs const & | wcs, |
| bool | simplify = true |
||
| ) |
Return a transform from pixel coordinates to intermediate world coordinates.
The pixel frame is is the base frame: ACTUAL_PIXELS, if present, else PIXELS.
| Eigen::MatrixXd lsst::afw::geom::getSipMatrixFromMetadata | ( | daf::base::PropertySet const & | metadata, |
| std::string const & | name | ||
| ) |
| bool lsst::afw::geom::hasSipMatrix | ( | daf::base::PropertySet const & | metadata, |
| std::string const & | name | ||
| ) |
|
inlinenoexcept |
| AffineTransform lsst::afw::geom::linearizeTransform | ( | TransformPoint2ToPoint2 const & | original, |
| Point2D const & | inPoint | ||
| ) |
Approximate a Transform by its local linearization.
| FromEndpoint,ToEndpoint | The endpoints of the transform. |
| original | the Transform to linearize |
| inPoint | the point at which a linear approximation is desired |
inPoint match those of original. It may be invertible; in general, linearizations are invertible if the Jacobian at inPoint is invertible.| pex::exceptions::InvalidParameterError | Thrown if original does not have a well-defined value and Jacobian at inPoint |
| AffineTransform lsst::afw::geom::makeAffineTransformFromTriple | ( | Point2D const & | p1, |
| Point2D const & | p2, | ||
| Point2D const & | p3, | ||
| Point2D const & | q1, | ||
| Point2D const & | q2, | ||
| Point2D const & | q3 | ||
| ) |
| Eigen::Matrix2d lsst::afw::geom::makeCdMatrix | ( | Angle const & | scale, |
| Angle const & | orientation = 0 *degrees, |
||
| bool | flipX = false |
||
| ) |
Make a WCS CD matrix.
| [in] | scale | Pixel scale as an angle on sky/pixels |
| [in] | orientation | Position angle of focal plane +Y, measured from N through E. At 0 degrees, +Y is along N and +X is along W/E if flipX false/true At 90 degrees, +Y is along E and +X is along N/S if flipX false/true |
| [in] | flipX | Fip x axis? See orientation for details. |
| std::shared_ptr<SkyWcs> lsst::afw::geom::makeFlippedWcs | ( | SkyWcs const & | wcs, |
| bool | flipLR, | ||
| bool | flipTB, | ||
| geom::Point2D const & | center | ||
| ) |
Return a copy of a FITS-WCS with pixel positions flipped around a specified center.
| [in] | wcs | The initial WCS |
| [in] | flipLR | Flip pixel positions left/right about center |
| [in] | flipTB | Flip pixel positions top/bottom about center |
| [in] | center | Center pixel position of flip |
| std::shared_ptr<TransformPoint2ToPoint2> lsst::afw::geom::makeIdentityTransform | ( | ) |
| std::shared_ptr<SkyWcs> lsst::afw::geom::makeModifiedWcs | ( | TransformPoint2ToPoint2 const & | pixelTransform, |
| SkyWcs const & | wcs, | ||
| bool | modifyActualPixels | ||
| ) |
Create a new SkyWcs whose pixels are transformed by pixelTransform, as described below.
If modifyActualPixels is true and the ACTUAL_PIXELS frame exists then pixelTransform is inserted just after the ACTUAL_PIXELS frame:
newActualPixelsToPixels = pixelTransform -> oldActualPixelsToPixels
This is appropriate for shifting a WCS, e.g. when writing FITS metadata for a subimage.
If modifyActualPixels is false or the ACTUAL_PIXELS frame does not exist then pixelTransform is inserted just after the PIXELS frame:
newPixelsToIwc = pixelTransform -> oldPixelsToIwc
This is appropriate for inserting a model for optical distortion.
Other than the change described above, the new SkyWcs will be just like the old one.
| [in] | pixelTransform | Transform to insert |
| [in] | wcs | Input WCS |
| [in] | modifyActualPixels | Location at which to insert the transform; if true and the ACTUAL_PIXELS frame is present then insert just after the ACTUAL_PIXELS frame, else insert just after the PIXELS frame. |
| std::shared_ptr<TransformPoint2ToPoint2> lsst::afw::geom::makeRadialTransform | ( | std::vector< double > const & | coeffs | ) |
A purely radial polynomial distortion.
The Transform transforms an input \(x\) to
\[ \frac{x}{r} \sum_{i=1}^{N} \mathrm{coeffs[i]} \ r^i \]
where \(r\) is the magnitude of \(x\).
| coeffs | radial polynomial coefficients. May be an empty vector to represent the identity transformation; otherwise must have size > 1, coeffs[0] = 0, and coeffs[1] ≠ 0. |
coeffs. The Transform shall have an inverse, which may be approximate.| pex::exceptions::InvalidParameterError | Thrown if coeffs does not have the required format. |
| std::shared_ptr<TransformPoint2ToPoint2> lsst::afw::geom::makeRadialTransform | ( | std::vector< double > const & | forwardCoeffs, |
| std::vector< double > const & | inverseCoeffs | ||
| ) |
A purely radial polynomial distortion.
Similar to makeRadialTransform(std::vector<double> const &), but allows the user to provide an inverse.
| forwardCoeffs | radial polynomial coefficients. May be an empty vector to represent the identity transformation; otherwise must have size > 1, coeffs[0] = 0, and coeffs[1] ≠ 0. |
| inverseCoeffs | coefficients for the inverse transform, as above. Does not need to have the same degree as forwardCoeffs, but either both must be empty or neither must be empty. |
coeffs. The Transform shall have an inverse, whose accuracy is determined by the relationship between forwardCoeffs and inverseCoeffs.| pex::exceptions::InvalidParameterError | Thrown if forwardCoeffs or inverseCoeffs does not have the required format. |
| std::shared_ptr<daf::base::PropertyList> lsst::afw::geom::makeSimpleWcsMetadata | ( | Point2D const & | crpix, |
| coord::IcrsCoord const & | crval, | ||
| Eigen::Matrix2d const & | cdMatrix, | ||
| std::string const & | projection = "TAN" |
||
| ) |
Make FITS metadata for a simple FITS WCS (one with no distortion).
This can also be used as a starting point for creating metadata for more sophisticated FITS WCS.
| [in] | crpix | Center of projection on the CCD using the LSST convention: 0, 0 is the lower left pixel of the image |
| [in] | crval | Center of projection on the sky |
| [in] | cdMatrix | CD matrix where element (i-1, j-1) corresponds to FITS keyword CDi_j and i, j have range [1, 2] |
| [in] | projection | The name of the FITS WCS projection, e.g. "TAN" or "STG" |
| std::shared_ptr<daf::base::PropertyList> lsst::afw::geom::makeSipMatrixMetadata | ( | Eigen::MatrixXd const & | matrix, |
| std::string const & | name | ||
| ) |
| std::shared_ptr<SkyWcs> lsst::afw::geom::makeSkyWcs | ( | daf::base::PropertySet & | metadata, |
| bool | strip = false |
||
| ) |
Construct a SkyWcs from FITS keywords.
This function is preferred over calling the SkyWcs metadata constructor directly because it allows us to change SkyWcs to an abstract base class in the future, without affecting code that constructs a WCS from FITS metadata.
| [in] | metadata | FITS header metadata |
| [in] | strip | If true: strip items from metadata used to create the WCS, such as RADESYS, EQUINOX, CTYPE12, CRPIX12, CRVAL12, etc. Always keep keywords that might be wanted for other purpposes, including NAXIS12 and date-related keywords such as "DATE-OBS" and "TIMESYS" (but not "EQUINOX"). |
| lsst::pex::exceptions::TypeError | if the metadata does not describe a celestial WCS. |
| std::shared_ptr<SkyWcs> lsst::afw::geom::makeSkyWcs | ( | Point2D const & | crpix, |
| coord::IcrsCoord const & | crval, | ||
| Eigen::Matrix2d const & | cdMatrix, | ||
| std::string const & | projection = "TAN" |
||
| ) |
Construct a simple FITS SkyWcs with no distortion.
| [in] | crpix | Center of projection on the CCD using the LSST convention: 0, 0 is the lower left pixel of the parent image |
| [in] | crval | Center of projection on the sky |
| [in] | cdMatrix | CD matrix, where element (i-1, j-1) corresponds to FITS keyword CDi_j and i, j have range [1, 2]. May be computed by calling makeCdMatrix. |
| [in] | projection | The name of the FITS WCS projection, e.g. "TAN" or "STG" |
| std::shared_ptr<daf::base::PropertyList> lsst::afw::geom::makeTanSipMetadata | ( | Point2D const & | crpix, |
| coord::IcrsCoord const & | crval, | ||
| Eigen::Matrix2d const & | cdMatrix, | ||
| Eigen::MatrixXd const & | sipA, | ||
| Eigen::MatrixXd const & | sipB | ||
| ) |
Make metadata for a TAN-SIP WCS without inverse matrices.
| [in] | crpix | Center of projection on the CCD using the LSST convention: 0, 0 is the lower left pixel of the parent image |
| [in] | crval | Center of projection on the sky |
| [in] | cdMatrix | CD matrix, where element (i-1, j-1) corresponds to FITS keyword CDi_j and i, j have range [1, 2]. May be computed by calling makeCdMatrix. |
| [in] | sipA | Forward distortion matrix for axis 1 |
| [in] | sipB | Forward distortion matrix for axis 2 |
| std::shared_ptr<daf::base::PropertyList> lsst::afw::geom::makeTanSipMetadata | ( | Point2D const & | crpix, |
| coord::IcrsCoord const & | crval, | ||
| Eigen::Matrix2d const & | cdMatrix, | ||
| Eigen::MatrixXd const & | sipA, | ||
| Eigen::MatrixXd const & | sipB, | ||
| Eigen::MatrixXd const & | sipAp, | ||
| Eigen::MatrixXd const & | sipBp | ||
| ) |
Make metadata for a TAN-SIP WCS.
| [in] | crpix | Center of projection on the CCD using the LSST convention: 0, 0 is the lower left pixel of the parent image |
| [in] | crval | Center of projection on the sky |
| [in] | cdMatrix | CD matrix, where element (i-1, j-1) corresponds to FITS keyword CDi_j and i, j have range [1, 2]. May be computed by calling makeCdMatrix. |
| [in] | sipA | Forward distortion matrix for axis 1 |
| [in] | sipB | Forward distortion matrix for axis 2 |
| [in] | sipAp | Reverse distortion matrix for axis 1 |
| [in] | sipBp | Reverse distortion matrix for axis 2 |
| std::shared_ptr<SkyWcs> lsst::afw::geom::makeTanSipWcs | ( | Point2D const & | crpix, |
| coord::IcrsCoord const & | crval, | ||
| Eigen::Matrix2d const & | cdMatrix, | ||
| Eigen::MatrixXd const & | sipA, | ||
| Eigen::MatrixXd const & | sipB | ||
| ) |
Construct a TAN-SIP SkyWcs with forward SIP distortion terms and an iterative inverse.
| [in] | crpix | Center of projection on the CCD using the LSST convention: 0, 0 is the lower left pixel of the parent image |
| [in] | crval | Center of projection on the sky |
| [in] | cdMatrix | CD matrix, where element (i-1, j-1) corresponds to FITS keyword CDi_j and i, j have range [1, 2]. May be computed by calling makeCdMatrix. |
| [in] | sipA | Forward distortion matrix for axis 1 |
| [in] | sipB | Forward distortion matrix for axis 2 |
| std::shared_ptr<SkyWcs> lsst::afw::geom::makeTanSipWcs | ( | Point2D const & | crpix, |
| coord::IcrsCoord const & | crval, | ||
| Eigen::Matrix2d const & | cdMatrix, | ||
| Eigen::MatrixXd const & | sipA, | ||
| Eigen::MatrixXd const & | sipB, | ||
| Eigen::MatrixXd const & | sipAp, | ||
| Eigen::MatrixXd const & | sipBp | ||
| ) |
Construct a TAN WCS with forward and inverse SIP distortion terms.
| [in] | crpix | Center of projection on the CCD using the LSST convention: 0, 0 is the lower left pixel of the parent image |
| [in] | crval | Center of projection on the sky |
| [in] | cdMatrix | CD matrix, where element (i-1, j-1) corresponds to FITS keyword CDi_j and i, j have range [1, 2]. May be computed by calling makeCdMatrix. |
| [in] | sipA | Forward distortion matrix for axis 1 |
| [in] | sipB | Forward distortion matrix for axis 2 |
| [in] | sipAp | Reverse distortion matrix for axis 1 |
| [in] | sipBp | Reverse distortion matrix for axis 2 |
| std::shared_ptr<TransformPoint2ToPoint2> lsst::afw::geom::makeTransform | ( | AffineTransform const & | affine | ) |
Wrap an AffineTransform as a Transform.
| affine | The AffineTransform to wrap. |
x to affine(x). It shall be invertible iff affine is invertible.| std::shared_ptr<TransformPoint2ToPoint2> lsst::afw::geom::makeWcsPairTransform | ( | SkyWcs const & | src, |
| SkyWcs const & | dst | ||
| ) |
A Transform obtained by putting two SkyWcs objects "back to back".
| src | the WCS for the source pixels |
| dst | the WCS for the destination pixels |
src pixels to dst pixels, and whose inverse transformation converts in the opposite direction.
|
inlinenoexcept |
| Extent<T, N> lsst::afw::geom::operator* | ( | T | scalar, |
| ExtentBase< T, N > const & | rhs | ||
| ) |
| Extent<double, N> lsst::afw::geom::operator* | ( | ExtentBase< int, N > const & | lhs, |
| double | rhs | ||
| ) |
| Extent<double, N> lsst::afw::geom::operator* | ( | double | lhs, |
| ExtentBase< int, N > const & | rhs | ||
| ) |
| void lsst::afw::geom::operator*= | ( | ExtentBase< int, N > & | lhs, |
| double | rhs | ||
| ) |
|
deletenoexcept |
| Extent<double, N> lsst::afw::geom::operator/ | ( | ExtentBase< int, N > const & | lhs, |
| double | rhs | ||
| ) |
| void lsst::afw::geom::operator/= | ( | ExtentBase< int, N > & | lhs, |
| double | rhs | ||
| ) |
| std::ostream& lsst::afw::geom::operator<< | ( | std::ostream & | os, |
| lsst::afw::geom::LinearTransform const & | t | ||
| ) |
| std::ostream& lsst::afw::geom::operator<< | ( | std::ostream & | os, |
| CoordinateBase< Derived, T, N > const & | coordinate | ||
| ) |
Definition at line 211 of file CoordinateBase.h.
| std::ostream& lsst::afw::geom::operator<< | ( | std::ostream & | os, |
| lsst::afw::geom::AffineTransform const & | transform | ||
| ) |
| std::ostream& lsst::afw::geom::operator<< | ( | std::ostream & | os, |
| Transform< FromEndpoint, ToEndpoint > const & | transform | ||
| ) |
Print a Transform to an ostream.
The format is "Transform<_fromEndpoint_, _toEndpoint_>" where fromEndpoint and toEndpoint are the appropriate endpoint printed to the ostream; for example "Transform<GenericEndpoint(4), Point2Endpoint()>"
| std::ostream & operator<< | ( | std::ostream & | s, |
| Angle | a | ||
| ) |
Print an Angle to a stream.
The exact details of the string representation are unspecified and subject to change, but the following may be regarded as typical: "0.567 rad".
| s | The output stream. |
| a | The angle. |
| std::ostream & operator<< | ( | std::ostream & | os, |
| SpherePoint const & | point | ||
| ) |
Print the value of a point to a stream.
The exact details of the string representation are unspecified and subject to change, but the following may be regarded as typical: "(10.543250, +32.830583)".
| os | the stream to which to print point |
| point | the point to print to the stream |
os| pex::exceptions::std::ostream::failure | Thrown if an I/O state flag was set that was registered with os.exceptions(). See the documentation of std::ostream for more details. |
| std::ostream& lsst::afw::geom::operator<< | ( | std::ostream & | os, |
| GenericEndpoint const & | endpoint | ||
| ) |
Print "GenericEndpoint(_n_)" to the ostream where _n_ is the number of axes, e.g. "GenericAxes(4)".
| std::ostream& lsst::afw::geom::operator<< | ( | std::ostream & | os, |
| Point2Endpoint const & | endpoint | ||
| ) |
Print "Point2Endpoint()" to the ostream.
| std::ostream& lsst::afw::geom::operator<< | ( | std::ostream & | os, |
| IcrsCoordEndpoint const & | endpoint | ||
| ) |
Print "IcrsCoordEndpoint()" to the ostream.
| std::ostream& lsst::afw::geom::operator<< | ( | std::ostream & | os, |
| Box2I const & | box | ||
| ) |
| std::ostream& lsst::afw::geom::operator<< | ( | std::ostream & | os, |
| Box2D const & | box | ||
| ) |
| std::ostream& lsst::afw::geom::operator<< | ( | std::ostream & | os, |
| SkyWcs const & | wcs | ||
| ) |
Print a SkyWcs to an ostream.
For now it just prints "SkyWcs"; eventually it would be nice to have a summary
|
inlinenoexcept |
|
inlinenoexcept |
|
inlinenoexcept |
Return the component-wise truncation (round towards zero).
In Python, this is available as both a free function and a method on ExtentD.
| double constexpr lsst::afw::geom::HALFPI = boost::math::constants::pi<double>() * 0.5 |
| double const lsst::afw::geom::INVSQRTPI = 1.0 / sqrt(boost::math::constants::pi<double>()) |
| double constexpr lsst::afw::geom::ONE_OVER_PI = 1.0 / boost::math::constants::pi<double>() |
| double constexpr lsst::afw::geom::PI = boost::math::constants::pi<double>() |
| double constexpr lsst::afw::geom::ROOT2 = boost::math::constants::root_two<double>() |
| double const lsst::afw::geom::SQRTPI = sqrt(boost::math::constants::pi<double>()) |
1.8.13