LSST Applications 26.0.0,g0265f82a02+6660c170cc,g07994bdeae+30b05a742e,g0a0026dc87+17526d298f,g0a60f58ba1+17526d298f,g0e4bf8285c+96dd2c2ea9,g0ecae5effc+c266a536c8,g1e7d6db67d+6f7cb1f4bb,g26482f50c6+6346c0633c,g2bbee38e9b+6660c170cc,g2cc88a2952+0a4e78cd49,g3273194fdb+f6908454ef,g337abbeb29+6660c170cc,g337c41fc51+9a8f8f0815,g37c6e7c3d5+7bbafe9d37,g44018dc512+6660c170cc,g4a941329ef+4f7594a38e,g4c90b7bd52+5145c320d2,g58be5f913a+bea990ba40,g635b316a6c+8d6b3a3e56,g67924a670a+bfead8c487,g6ae5381d9b+81bc2a20b4,g93c4d6e787+26b17396bd,g98cecbdb62+ed2cb6d659,g98ffbb4407+81bc2a20b4,g9ddcbc5298+7f7571301f,ga1e77700b3+99e9273977,gae46bcf261+6660c170cc,gb2715bf1a1+17526d298f,gc86a011abf+17526d298f,gcf0d15dbbd+96dd2c2ea9,gdaeeff99f8+0d8dbea60f,gdb4ec4c597+6660c170cc,ge23793e450+96dd2c2ea9,gf041782ebf+171108ac67
LSST Data Management Base Package
|
Namespaces | |
namespace | _calculateSipWcsHeader |
namespace | _hpxUtils |
namespace | _python |
namespace | _spanSetContinued |
namespace | detail |
namespace | details |
namespace | ellipses |
namespace | polygon |
namespace | skyWcs |
namespace | testUtils |
namespace | transform |
namespace | transformConfig |
namespace | transformFactory |
namespace | transformFromString |
namespace | utils |
namespace | wcsUtils |
Classes | |
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 | GenericEndpoint |
A generic endpoint for data in the format used by ast::Mapping. More... | |
class | Point2Endpoint |
An endpoint for lsst::geom::Point2D. More... | |
class | SipApproximation |
A fitter and results class for approximating a general Transform in a form compatible with FITS WCS persistence. More... | |
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 lsst::geom::Point2I and increases in the x direction. More... | |
class | SpanSet |
A compact representation of a collection of pixels. More... | |
class | SpherePointEndpoint |
An endpoint for lsst::geom::SpherePoint. More... | |
class | Transform |
Transform LSST spatial data, such as lsst::geom::Point2D and lsst::geom::SpherePoint, using an AST mapping. More... | |
Typedefs | |
using | TransformPoint2ToPoint2 = Transform< Point2Endpoint, Point2Endpoint > |
using | TransformPoint2ToGeneric = Transform< Point2Endpoint, GenericEndpoint > |
using | TransformPoint2ToSpherePoint = Transform< Point2Endpoint, SpherePointEndpoint > |
Enumerations | |
enum class | Stencil { CIRCLE , BOX , MANHATTAN } |
An enumeration class which describes the shapes. More... | |
Functions | |
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)". | |
std::ostream & | operator<< (std::ostream &os, Point2Endpoint const &endpoint) |
Print "Point2Endpoint()" to the ostream. | |
std::ostream & | operator<< (std::ostream &os, SpherePointEndpoint const &endpoint) |
Print "SpherePointEndpoint()" to the ostream. | |
Eigen::Matrix2d | makeCdMatrix (lsst::geom::Angle const &scale, lsst::geom::Angle const &orientation=0 *lsst::geom::degrees, bool flipX=false) |
Make a WCS CD matrix. | |
std::shared_ptr< SkyWcs > | makeFlippedWcs (SkyWcs const &wcs, bool flipLR, bool flipTB, lsst::geom::Point2D const ¢er) |
Return a copy of a FITS-WCS with pixel positions flipped around a specified center. | |
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. | |
std::shared_ptr< SkyWcs > | makeSkyWcs (daf::base::PropertySet &metadata, bool strip=false) |
Construct a SkyWcs from FITS keywords. | |
std::shared_ptr< SkyWcs > | makeSkyWcs (lsst::geom::Point2D const &crpix, lsst::geom::SpherePoint const &crval, Eigen::Matrix2d const &cdMatrix, std::string const &projection="TAN") |
Construct a simple FITS SkyWcs with no distortion. | |
std::shared_ptr< SkyWcs > | makeSkyWcs (TransformPoint2ToPoint2 const &pixelsToFieldAngle, lsst::geom::Angle const &orientation, bool flipX, lsst::geom::SpherePoint const &boresight, std::string const &projection="TAN") |
Construct a FITS SkyWcs from camera geometry. | |
std::shared_ptr< SkyWcs > | makeTanSipWcs (lsst::geom::Point2D const &crpix, lsst::geom::SpherePoint 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. | |
std::shared_ptr< SkyWcs > | makeTanSipWcs (lsst::geom::Point2D const &crpix, lsst::geom::SpherePoint 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. | |
std::shared_ptr< TransformPoint2ToPoint2 > | makeWcsPairTransform (SkyWcs const &src, SkyWcs const &dst) |
A Transform obtained by putting two SkyWcs objects "back to back". | |
std::shared_ptr< TransformPoint2ToSpherePoint > | getIntermediateWorldCoordsToSky (SkyWcs const &wcs, bool simplify=true) |
Return a transform from intermediate world coordinates to sky. | |
std::shared_ptr< TransformPoint2ToPoint2 > | getPixelToIntermediateWorldCoords (SkyWcs const &wcs, bool simplify=true) |
Return a transform from pixel coordinates to intermediate world coordinates. | |
std::ostream & | operator<< (std::ostream &os, SkyWcs const &wcs) |
Print a SkyWcs to an ostream (delegates to SkyWcs.toString()). | |
template<class FromEndpoint , class ToEndpoint > | |
std::ostream & | operator<< (std::ostream &os, Transform< FromEndpoint, ToEndpoint > const &transform) |
Print a Transform to an ostream. | |
lsst::geom::AffineTransform | linearizeTransform (TransformPoint2ToPoint2 const &original, lsst::geom::Point2D const &inPoint) |
Approximate a Transform by its local linearization. | |
std::shared_ptr< TransformPoint2ToPoint2 > | makeTransform (lsst::geom::AffineTransform const &affine) |
Wrap an lsst::geom::AffineTransform as a Transform. | |
std::shared_ptr< TransformPoint2ToPoint2 > | makeRadialTransform (std::vector< double > const &coeffs) |
A purely radial polynomial distortion. | |
std::shared_ptr< TransformPoint2ToPoint2 > | makeRadialTransform (std::vector< double > const &forwardCoeffs, std::vector< double > const &inverseCoeffs) |
A purely radial polynomial distortion. | |
std::shared_ptr< TransformPoint2ToPoint2 > | makeIdentityTransform () |
Trivial Transform x → x. | |
std::shared_ptr< daf::base::PropertyList > | createTrivialWcsMetadata (std::string const &wcsName, lsst::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. | |
lsst::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 (lsst::geom::Point2D const &crpix, lsst::geom::SpherePoint const &crval, Eigen::Matrix2d const &cdMatrix, std::string const &projection="TAN") |
Make FITS metadata for a simple FITS WCS (one with no distortion). | |
std::shared_ptr< daf::base::PropertyList > | makeTanSipMetadata (lsst::geom::Point2D const &crpix, lsst::geom::SpherePoint const &crval, Eigen::Matrix2d const &cdMatrix, Eigen::MatrixXd const &sipA, Eigen::MatrixXd const &sipB) |
Make metadata for a TAN-SIP WCS without inverse matrices. | |
std::shared_ptr< daf::base::PropertyList > | makeTanSipMetadata (lsst::geom::Point2D const &crpix, lsst::geom::SpherePoint 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. | |
void | stripWcsMetadata (daf::base::PropertySet &metadata) |
void | wrapEndpoint (lsst::utils::python::WrapperCollection &wrappers) |
void | wrapSipApproximation (lsst::utils::python::WrapperCollection &) |
void | wrapSkyWcs (lsst::utils::python::WrapperCollection &) |
void | wrapSpan (lsst::utils::python::WrapperCollection &) |
void | wrapSpanSet (lsst::utils::python::WrapperCollection &) |
void | wrapTransform (lsst::utils::python::WrapperCollection &) |
void | wrapTransformFactory (lsst::utils::python::WrapperCollection &) |
void | wrapWcsUtils (lsst::utils::python::WrapperCollection &) |
PYBIND11_MODULE (_geom, mod) | |
template void | SpanSet::setImage< std::uint16_t > (image::Image< std::uint16_t > &image, std::uint16_t val, lsst::geom::Box2I const ®ion=lsst::geom::Box2I(), bool doClip=false) const |
template void | SpanSet::setImage< std::uint64_t > (image::Image< std::uint64_t > &image, std::uint64_t val, lsst::geom::Box2I const ®ion=lsst::geom::Box2I(), bool doClip=false) const |
template void | SpanSet::setMask< image::MaskPixel > (image::Mask< image::MaskPixel > &target, image::MaskPixel bitmask) const |
template void | SpanSet::clearMask< image::MaskPixel > (image::Mask< image::MaskPixel > &target, image::MaskPixel bitmask) const |
template std::shared_ptr< SpanSet > | SpanSet::intersect< image::MaskPixel > (image::Mask< image::MaskPixel > const &other, image::MaskPixel bitmask) const |
template std::shared_ptr< SpanSet > | SpanSet::intersectNot< image::MaskPixel > (image::Mask< image::MaskPixel > const &other, image::MaskPixel bitmask) const |
template std::shared_ptr< SpanSet > | SpanSet::union_< image::MaskPixel > (image::Mask< image::MaskPixel > const &other, image::MaskPixel bitmask) const |
template std::ostream & | operator<<< GenericEndpoint, GenericEndpoint > (std::ostream &os, Transform< GenericEndpoint, GenericEndpoint > const &transform) |
template std::ostream & | operator<<< GenericEndpoint, Point2Endpoint > (std::ostream &os, Transform< GenericEndpoint, Point2Endpoint > const &transform) |
template std::ostream & | operator<<< GenericEndpoint, SpherePointEndpoint > (std::ostream &os, Transform< GenericEndpoint, SpherePointEndpoint > const &transform) |
template std::ostream & | operator<<< Point2Endpoint, GenericEndpoint > (std::ostream &os, Transform< Point2Endpoint, GenericEndpoint > const &transform) |
template std::ostream & | operator<<< Point2Endpoint, Point2Endpoint > (std::ostream &os, Transform< Point2Endpoint, Point2Endpoint > const &transform) |
template std::ostream & | operator<<< Point2Endpoint, SpherePointEndpoint > (std::ostream &os, Transform< Point2Endpoint, SpherePointEndpoint > const &transform) |
template std::ostream & | operator<<< SpherePointEndpoint, GenericEndpoint > (std::ostream &os, Transform< SpherePointEndpoint, GenericEndpoint > const &transform) |
template std::ostream & | operator<<< SpherePointEndpoint, Point2Endpoint > (std::ostream &os, Transform< SpherePointEndpoint, Point2Endpoint > const &transform) |
template std::ostream & | operator<<< SpherePointEndpoint, SpherePointEndpoint > (std::ostream &os, Transform< SpherePointEndpoint, SpherePointEndpoint > const &transform) |
using lsst::afw::geom::TransformPoint2ToGeneric = typedef Transform<Point2Endpoint, GenericEndpoint> |
Definition at line 301 of file Transform.h.
using lsst::afw::geom::TransformPoint2ToPoint2 = typedef Transform<Point2Endpoint, Point2Endpoint> |
Definition at line 300 of file Transform.h.
using lsst::afw::geom::TransformPoint2ToSpherePoint = typedef Transform<Point2Endpoint, SpherePointEndpoint> |
Definition at line 302 of file Transform.h.
|
strong |
An enumeration class which describes the shapes.
A stencil is a shape used in creating SpanSets, erosion kernels, or dilation kernels. CIRCLE creates a circle shape, BOX creates a box shape, and MANHATTAN creates a diamond shape.
Enumerator | |
---|---|
CIRCLE | |
BOX | |
MANHATTAN |
Definition at line 66 of file SpanSet.h.
std::shared_ptr< daf::base::PropertyList > lsst::afw::geom::createTrivialWcsMetadata | ( | std::string const & | wcsName, |
lsst::geom::Point2I const & | xy0 | ||
) |
Definition at line 48 of file wcsUtils.cc.
void lsst::afw::geom::deleteBasicWcsMetadata | ( | daf::base::PropertySet & | metadata, |
std::string const & | wcsName | ||
) |
Definition at line 64 of file wcsUtils.cc.
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). |
Definition at line 75 of file wcsUtils.cc.
lsst::geom::Point2I lsst::afw::geom::getImageXY0FromMetadata | ( | daf::base::PropertySet & | metadata, |
std::string const & | wcsName, | ||
bool | strip = false |
||
) |
Definition at line 95 of file wcsUtils.cc.
std::shared_ptr< TransformPoint2ToSpherePoint > lsst::afw::geom::getIntermediateWorldCoordsToSky | ( | SkyWcs const & | wcs, |
bool | simplify = true |
||
) |
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: cameraGeom::ACTUAL_PIXELS, if present, else cameraGeom::PIXELS.
Definition at line 559 of file SkyWcs.cc.
Eigen::MatrixXd lsst::afw::geom::getSipMatrixFromMetadata | ( | daf::base::PropertySet const & | metadata, |
std::string const & | name | ||
) |
Definition at line 113 of file wcsUtils.cc.
bool lsst::afw::geom::hasSipMatrix | ( | daf::base::PropertySet const & | metadata, |
std::string const & | name | ||
) |
Definition at line 139 of file wcsUtils.cc.
lsst::geom::AffineTransform lsst::afw::geom::linearizeTransform | ( | TransformPoint2ToPoint2 const & | original, |
lsst::geom::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 |
Definition at line 132 of file transformFactory.cc.
Eigen::Matrix2d lsst::afw::geom::makeCdMatrix | ( | lsst::geom::Angle const & | scale, |
lsst::geom::Angle const & | orientation = 0 * lsst::geom::degrees , |
||
bool | flipX = false |
||
) |
Make a WCS CD matrix.
[in] | scale | Pixel scale as an angle on sky/pixels |
[in] | orientation | Position angle of pixel +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 | Flip x axis? See orientation for details. |
Definition at line 133 of file SkyWcs.cc.
std::shared_ptr< SkyWcs > lsst::afw::geom::makeFlippedWcs | ( | SkyWcs const & | wcs, |
bool | flipLR, | ||
bool | flipTB, | ||
lsst::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 |
Definition at line 467 of file SkyWcs.cc.
std::shared_ptr< TransformPoint2ToPoint2 > lsst::afw::geom::makeIdentityTransform | ( | ) |
Trivial Transform x → x.
Definition at line 214 of file transformFactory.cc.
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 cameraGeom::ACTUAL_PIXELS frame exists then pixelTransform is inserted just after the cameraGeom::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 cameraGeom::ACTUAL_PIXELS frame does not exist then pixelTransform is inserted just after the cameraGeom::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 cameraGeom::ACTUAL_PIXELS frame is present then insert just after the cameraGeom::ACTUAL_PIXELS frame, else insert just after the cameraGeom::PIXELS frame. |
Definition at line 486 of file SkyWcs.cc.
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. |
Definition at line 165 of file transformFactory.cc.
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. |
Definition at line 183 of file transformFactory.cc.
std::shared_ptr< daf::base::PropertyList > lsst::afw::geom::makeSimpleWcsMetadata | ( | lsst::geom::Point2D const & | crpix, |
lsst::geom::SpherePoint 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" |
Definition at line 169 of file wcsUtils.cc.
std::shared_ptr< daf::base::PropertyList > lsst::afw::geom::makeSipMatrixMetadata | ( | Eigen::MatrixXd const & | matrix, |
std::string const & | name | ||
) |
Definition at line 147 of file wcsUtils.cc.
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 | ( | lsst::geom::Point2D const & | crpix, |
lsst::geom::SpherePoint 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" |
Definition at line 525 of file SkyWcs.cc.
std::shared_ptr< SkyWcs > lsst::afw::geom::makeSkyWcs | ( | TransformPoint2ToPoint2 const & | pixelsToFieldAngle, |
lsst::geom::Angle const & | orientation, | ||
bool | flipX, | ||
lsst::geom::SpherePoint const & | boresight, | ||
std::string const & | projection = "TAN" |
||
) |
Construct a FITS SkyWcs from camera geometry.
[in] | pixelsToFieldAngle | Transformation from pixels to field angle (in radians). |
[in] | orientation | Position angle of focal plane +Y, measured from N through E at crval. 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 | Flip x axis? See orientation for details. |
[in] | boresight | ICRS sky position at the boresight (field angle (0, 0)). |
[in] | projection | The name of the FITS WCS projection, e.g. "TAN" or "STG". |
orientation
is with respect to the focal plane axes, not the CCD axes. This is because field angle is defined with respect to focal plane axes. Definition at line 531 of file SkyWcs.cc.
std::shared_ptr< daf::base::PropertyList > lsst::afw::geom::makeTanSipMetadata | ( | lsst::geom::Point2D const & | crpix, |
lsst::geom::SpherePoint 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 |
Definition at line 194 of file wcsUtils.cc.
std::shared_ptr< daf::base::PropertyList > lsst::afw::geom::makeTanSipMetadata | ( | lsst::geom::Point2D const & | crpix, |
lsst::geom::SpherePoint 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 |
Definition at line 205 of file wcsUtils.cc.
std::shared_ptr< SkyWcs > lsst::afw::geom::makeTanSipWcs | ( | lsst::geom::Point2D const & | crpix, |
lsst::geom::SpherePoint 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 |
Definition at line 538 of file SkyWcs.cc.
std::shared_ptr< SkyWcs > lsst::afw::geom::makeTanSipWcs | ( | lsst::geom::Point2D const & | crpix, |
lsst::geom::SpherePoint 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 |
Definition at line 545 of file SkyWcs.cc.
std::shared_ptr< TransformPoint2ToPoint2 > lsst::afw::geom::makeTransform | ( | lsst::geom::AffineTransform const & | affine | ) |
Wrap an lsst::geom::AffineTransform as a Transform.
affine | The lsst::geom::AffineTransform to wrap. |
x
to affine(x)
. It shall be invertible iff affine
is invertible.Definition at line 154 of file transformFactory.cc.
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.Definition at line 146 of file SkyWcs.cc.
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)".
Definition at line 239 of file Endpoint.cc.
std::ostream & lsst::afw::geom::operator<< | ( | std::ostream & | os, |
Point2Endpoint const & | endpoint | ||
) |
Print "Point2Endpoint()" to the ostream.
Definition at line 244 of file Endpoint.cc.
std::ostream & lsst::afw::geom::operator<< | ( | std::ostream & | os, |
SkyWcs const & | wcs | ||
) |
std::ostream & lsst::afw::geom::operator<< | ( | std::ostream & | os, |
SpherePointEndpoint const & | endpoint | ||
) |
Print "SpherePointEndpoint()" to the ostream.
Definition at line 249 of file Endpoint.cc.
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()>"
Definition at line 188 of file Transform.cc.
template std::ostream & lsst::afw::geom::operator<<< GenericEndpoint, GenericEndpoint > | ( | std::ostream & | os, |
Transform< GenericEndpoint, GenericEndpoint > const & | transform | ||
) |
template std::ostream & lsst::afw::geom::operator<<< GenericEndpoint, Point2Endpoint > | ( | std::ostream & | os, |
Transform< GenericEndpoint, Point2Endpoint > const & | transform | ||
) |
template std::ostream & lsst::afw::geom::operator<<< GenericEndpoint, SpherePointEndpoint > | ( | std::ostream & | os, |
Transform< GenericEndpoint, SpherePointEndpoint > const & | transform | ||
) |
template std::ostream & lsst::afw::geom::operator<<< Point2Endpoint, GenericEndpoint > | ( | std::ostream & | os, |
Transform< Point2Endpoint, GenericEndpoint > const & | transform | ||
) |
template std::ostream & lsst::afw::geom::operator<<< Point2Endpoint, Point2Endpoint > | ( | std::ostream & | os, |
Transform< Point2Endpoint, Point2Endpoint > const & | transform | ||
) |
template std::ostream & lsst::afw::geom::operator<<< Point2Endpoint, SpherePointEndpoint > | ( | std::ostream & | os, |
Transform< Point2Endpoint, SpherePointEndpoint > const & | transform | ||
) |
template std::ostream & lsst::afw::geom::operator<<< SpherePointEndpoint, GenericEndpoint > | ( | std::ostream & | os, |
Transform< SpherePointEndpoint, GenericEndpoint > const & | transform | ||
) |
template std::ostream & lsst::afw::geom::operator<<< SpherePointEndpoint, Point2Endpoint > | ( | std::ostream & | os, |
Transform< SpherePointEndpoint, Point2Endpoint > const & | transform | ||
) |
template std::ostream & lsst::afw::geom::operator<<< SpherePointEndpoint, SpherePointEndpoint > | ( | std::ostream & | os, |
Transform< SpherePointEndpoint, SpherePointEndpoint > const & | transform | ||
) |
lsst::afw::geom::PYBIND11_MODULE | ( | _geom | , |
mod | |||
) |
Definition at line 46 of file _geom.cc.
template void lsst::afw::geom::SpanSet::clearMask< image::MaskPixel > | ( | image::Mask< image::MaskPixel > & | target, |
image::MaskPixel | bitmask | ||
) | const |
template std::shared_ptr< SpanSet > lsst::afw::geom::SpanSet::intersect< image::MaskPixel > | ( | image::Mask< image::MaskPixel > const & | other, |
image::MaskPixel | bitmask | ||
) | const |
template std::shared_ptr< SpanSet > lsst::afw::geom::SpanSet::intersectNot< image::MaskPixel > | ( | image::Mask< image::MaskPixel > const & | other, |
image::MaskPixel | bitmask | ||
) | const |
template void lsst::afw::geom::SpanSet::setImage< std::uint16_t > | ( | image::Image< std::uint16_t > & | image, |
std::uint16_t | val, | ||
lsst::geom::Box2I const & | region = lsst::geom::Box2I() , |
||
bool | doClip = false |
||
) | const |
template void lsst::afw::geom::SpanSet::setImage< std::uint64_t > | ( | image::Image< std::uint64_t > & | image, |
std::uint64_t | val, | ||
lsst::geom::Box2I const & | region = lsst::geom::Box2I() , |
||
bool | doClip = false |
||
) | const |
template void lsst::afw::geom::SpanSet::setMask< image::MaskPixel > | ( | image::Mask< image::MaskPixel > & | target, |
image::MaskPixel | bitmask | ||
) | const |
template std::shared_ptr< SpanSet > lsst::afw::geom::SpanSet::union_< image::MaskPixel > | ( | image::Mask< image::MaskPixel > const & | other, |
image::MaskPixel | bitmask | ||
) | const |
void lsst::afw::geom::stripWcsMetadata | ( | daf::base::PropertySet & | metadata | ) |
Definition at line 215 of file wcsUtils.cc.
void lsst::afw::geom::wrapEndpoint | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 201 of file _endpoint.cc.
void lsst::afw::geom::wrapSipApproximation | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 88 of file _sipApproximation.cc.
void lsst::afw::geom::wrapSkyWcs | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 165 of file _skyWcs.cc.
void lsst::afw::geom::wrapSpan | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
void lsst::afw::geom::wrapSpanSet | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 336 of file _spanSet.cc.
void lsst::afw::geom::wrapTransform | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 130 of file _transform.cc.
void lsst::afw::geom::wrapTransformFactory | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 66 of file _transformFactory.cc.
void lsst::afw::geom::wrapWcsUtils | ( | lsst::utils::python::WrapperCollection & | wrappers | ) |
Definition at line 46 of file _wcsUtils.cc.