LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
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) |
Definition at line 301 of file Transform.h.
Definition at line 300 of file Transform.h.
using lsst::afw::geom::TransformPoint2ToSpherePoint = 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 |
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 |
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 ) |
Print a SkyWcs to an ostream (delegates to SkyWcs.toString()).
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.