LSSTApplications
10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
|
Measure the distortions in an image plane and express them a SIP polynomials. More...
#include <CreateWcsWithSip.h>
Public Types | |
typedef boost::shared_ptr < CreateWcsWithSip > | Ptr |
typedef boost::shared_ptr < CreateWcsWithSip const > | ConstPtr |
Public Member Functions | |
CreateWcsWithSip (std::vector< MatchT > const &matches, afw::image::Wcs const &linearWcs, int const order, afw::geom::Box2I const &bbox=afw::geom::Box2I(), int const ngrid=0) | |
Constructor. More... | |
boost::shared_ptr < afw::image::TanWcs > | getNewWcs () |
double | getScatterInPixels () const |
afw::geom::Angle | getScatterOnSky () const |
double | getLinearScatterInPixels () const |
afw::geom::Angle | getLinearScatterOnSky () const |
int | getOrder () const |
Return the number of terms in the SIP matrix. More... | |
int | getNPoints () const |
Return the number of points in the catalogue. More... | |
int | getNGrid () const |
Return the number of grid points (on each axis) used in inverse SIP transform. More... | |
Private Member Functions | |
void | _calculateForwardMatrices () |
void | _calculateReverseMatrices () |
afw::geom::Point2D | _getCrvalAsGeomPoint () const |
Private Attributes | |
lsst::pex::logging::Log | _log |
std::vector< MatchT > const | _matches |
afw::geom::Box2I | _bbox |
int | _ngrid |
boost::shared_ptr < afw::image::Wcs const > | _linearWcs |
int const | _sipOrder |
int const | _reverseSipOrder |
Eigen::MatrixXd | _sipA |
Eigen::MatrixXd | _sipB |
Eigen::MatrixXd | _sipAp |
Eigen::MatrixXd | _sipBp |
boost::shared_ptr < afw::image::TanWcs > | _newWcs |
Measure the distortions in an image plane and express them a SIP polynomials.
Given a list of matching sources between a catalogue and an image, and a linear Wcs that describes the mapping from pixel space in the image and ra/dec space in the catalogue, calculate discrepancies between the two and compute SIP distortion polynomials to describe the discrepancy
SIP polynomials are defined in Shupe at al. (2005) ASPC 347 491.
Note that the SIP standard insists (although it is only mentioned obliquly between Eqns 3 and 4) that the lowest three terms in the distortion polynomials be zero (A00, A10, A01, B00, etc.). To achieve this, we need to adjust the values of CD and CRPIX from the input wcs. This may not be the behaviour you expect.
A Wcs may be created in a variety of ways (e.g. lsst::meas::astrom::net::GlobalAstrometrySolution ), and the list of matched sources (matches) can be generated with the matchRaDec function.
Note that the matches must be one-to-one; this is ensured by passing closest=true to matchRaDec.
Definition at line 87 of file CreateWcsWithSip.h.
typedef boost::shared_ptr<CreateWcsWithSip const> lsst::meas.astrom.sip::CreateWcsWithSip< MatchT >::ConstPtr |
Definition at line 91 of file CreateWcsWithSip.h.
typedef boost::shared_ptr<CreateWcsWithSip> lsst::meas.astrom.sip::CreateWcsWithSip< MatchT >::Ptr |
Definition at line 90 of file CreateWcsWithSip.h.
lsst::meas.astrom.sip::CreateWcsWithSip< MatchT >::CreateWcsWithSip | ( | std::vector< MatchT > const & | matches, |
afw::image::Wcs const & | linearWcs, | ||
int const | order, | ||
afw::geom::Box2I const & | bbox = afw::geom::Box2I() , |
||
int const | ngrid = 0 |
||
) |
Constructor.
Construct a CreateWcsWithSip
[in] | matches | list of matches |
[in] | linearWcs | initial WCS, typically pure TAN but need not be |
[in] | order | SIP order for fit WCS |
[in] | bbox | bounding box over which to compute the reverse SIP transform. If empty then a bounding box is computed based on the matches, extended a bit to allow for the fact that the sources will not necessarily reach to each edge of the image. Specifially the box is grown by dimensions/sqrt(number of matches). |
[in] | ngrid | number of points along x or y for the grid of points on which the reverse SIP transform is computed |
Definition at line 107 of file CreateWcsWithSip.cc.
|
private |
Definition at line 189 of file CreateWcsWithSip.cc.
|
private |
Definition at line 282 of file CreateWcsWithSip.cc.
|
private |
Definition at line 378 of file CreateWcsWithSip.cc.
double lsst::meas.astrom.sip::CreateWcsWithSip< MatchT >::getLinearScatterInPixels | ( | ) | const |
Compute the median radial separation between items in this object's match list
For each match, project the reference object coord to pixels using the initial "linearWcs" WCS, and measure the radial separation to the source centroid.
Definition at line 358 of file CreateWcsWithSip.cc.
afwGeom::Angle lsst::meas.astrom.sip::CreateWcsWithSip< MatchT >::getLinearScatterOnSky | ( | ) | const |
Compute the median on-sky separation between items in this object's match list,
For each match, project the source centroid to RA,Dec using the initial "linearWcs" WCS, and measure the on-sky angular separation to the reference source coord.
Definition at line 371 of file CreateWcsWithSip.cc.
|
inline |
Definition at line 115 of file CreateWcsWithSip.h.
|
inline |
Return the number of grid points (on each axis) used in inverse SIP transform.
Definition at line 154 of file CreateWcsWithSip.h.
|
inline |
Return the number of points in the catalogue.
Definition at line 152 of file CreateWcsWithSip.h.
|
inline |
Return the number of terms in the SIP matrix.
Definition at line 150 of file CreateWcsWithSip.h.
double lsst::meas.astrom.sip::CreateWcsWithSip< MatchT >::getScatterInPixels | ( | ) | const |
Compute the median separation, in pixels, between items in this object's match list
For each match, project the reference object coord to pixels using the fit TAN-SIP WCS, and measure the radial separation to the source centroid
Definition at line 352 of file CreateWcsWithSip.cc.
afwGeom::Angle lsst::meas.astrom.sip::CreateWcsWithSip< MatchT >::getScatterOnSky | ( | ) | const |
Compute the median on-sky separation between items in this object's match list
For each match, project the source centroid to RA,Dec using the fit TAN-SIP WCS, and measure the on-sky angular separation to the reference source coord.
Definition at line 364 of file CreateWcsWithSip.cc.
|
mutableprivate |
Definition at line 161 of file CreateWcsWithSip.h.
|
private |
Definition at line 163 of file CreateWcsWithSip.h.
|
private |
Definition at line 158 of file CreateWcsWithSip.h.
|
private |
Definition at line 160 of file CreateWcsWithSip.h.
|
private |
Definition at line 171 of file CreateWcsWithSip.h.
|
private |
Definition at line 162 of file CreateWcsWithSip.h.
|
private |
Definition at line 166 of file CreateWcsWithSip.h.
|
private |
Definition at line 168 of file CreateWcsWithSip.h.
|
private |
Definition at line 169 of file CreateWcsWithSip.h.
|
private |
Definition at line 168 of file CreateWcsWithSip.h.
|
private |
Definition at line 169 of file CreateWcsWithSip.h.
|
private |
Definition at line 166 of file CreateWcsWithSip.h.