LSST Applications g070148d5b3+33e5256705,g0d53e28543+25c8b88941,g0da5cf3356+2dd1178308,g1081da9e2a+62d12e78cb,g17e5ecfddb+7e422d6136,g1c76d35bf8+ede3a706f7,g295839609d+225697d880,g2e2c1a68ba+cc1f6f037e,g2ffcdf413f+853cd4dcde,g38293774b4+62d12e78cb,g3b44f30a73+d953f1ac34,g48ccf36440+885b902d19,g4b2f1765b6+7dedbde6d2,g5320a0a9f6+0c5d6105b6,g56b687f8c9+ede3a706f7,g5c4744a4d9+ef6ac23297,g5ffd174ac0+0c5d6105b6,g6075d09f38+66af417445,g667d525e37+2ced63db88,g670421136f+2ced63db88,g71f27ac40c+2ced63db88,g774830318a+463cbe8d1f,g7876bc68e5+1d137996f1,g7985c39107+62d12e78cb,g7fdac2220c+0fd8241c05,g96f01af41f+368e6903a7,g9ca82378b8+2ced63db88,g9d27549199+ef6ac23297,gabe93b2c52+e3573e3735,gb065e2a02a+3dfbe639da,gbc3249ced9+0c5d6105b6,gbec6a3398f+0c5d6105b6,gc9534b9d65+35b9f25267,gd01420fc67+0c5d6105b6,geee7ff78d7+a14128c129,gf63283c776+ede3a706f7,gfed783d017+0c5d6105b6,w.2022.47
LSST Data Management Base Package
|
Namespaces | |
namespace | approximateWcs |
namespace | astrometry |
namespace | denormalizeMatches |
namespace | detail |
namespace | directMatch |
namespace | display |
namespace | fitAffineWcs |
namespace | fitSipDistortion |
namespace | fitTanSipWcs |
namespace | match_probabilistic_task |
namespace | matcher_probabilistic |
namespace | matchOptimisticB |
namespace | matchOptimisticBTask |
namespace | matchPessimisticB |
namespace | pessimistic_pattern_matcher_b_3D |
namespace | ref_match |
namespace | setMatchDistance |
namespace | sip |
namespace | verifyWcs |
namespace | version |
Classes | |
struct | MatchOptimisticBControl |
class | OutlierRejectionControl |
Control object for outlier rejection in ScaledPolynomialTransformFitter. More... | |
struct | PatternResult |
Result of construct_pattern_and_shift_rot_matrix(), containing the matched sources, rotation matrix, and a success flag. More... | |
class | PolynomialTransform |
A 2-d coordinate transform represented by a pair of standard polynomials (one for each coordinate). More... | |
struct | ProxyPair |
struct | RecordProxy |
A wrapper around a SimpleRecord or SourceRecord that allows us to record a pixel position in a way that is independent of the record type. More... | |
struct | RotationTestResult |
Result of test_rotation(), containing the rotation matrix and success flag. More... | |
class | ScaledPolynomialTransform |
A 2-d coordinate transform represented by a lazy composition of an AffineTransform, a PolynomialTransform, and another AffineTransform. More... | |
class | ScaledPolynomialTransformFitter |
A fitter class for scaled polynomial transforms. More... | |
struct | ShiftRotMatrixResult |
Result of create_shift_rot_matrix() containing the rotation matrix and rotation angle. More... | |
class | SipForwardTransform |
A transform that maps pixel coordinates to intermediate world coordinates according to the SIP convention. More... | |
class | SipReverseTransform |
A transform that maps intermediate world coordinates to pixel coordinates according to the SIP convention. More... | |
class | SipTransformBase |
Base class for SIP transform objects. More... | |
struct | SortedArrayResult |
Result of create_sorted_arrays(), containing the sorted distances and array indexes. More... | |
Typedefs | |
typedef std::vector< RecordProxy > | ProxyVector |
Functions | |
template<typename MatchT > | |
afw::math::Statistics | makeMatchStatistics (std::vector< MatchT > const &matchList, int const flags, afw::math::StatisticsControl const &sctrl=afw::math::StatisticsControl()) |
Compute statistics of the distance field of a match list. More... | |
template<typename MatchT > | |
afw::math::Statistics | makeMatchStatisticsInPixels (afw::geom::SkyWcs const &wcs, std::vector< MatchT > const &matchList, int const flags, afw::math::StatisticsControl const &sctrl=afw::math::StatisticsControl()) |
Compute statistics of on-detector radial separation for a match list, in pixels. More... | |
template<typename MatchT > | |
afw::math::Statistics | makeMatchStatisticsInRadians (afw::geom::SkyWcs const &wcs, std::vector< MatchT > const &matchList, int const flags, afw::math::StatisticsControl const &sctrl=afw::math::StatisticsControl()) |
Compute statistics of on-sky radial separation for a match list, in radians. More... | |
ProxyVector | makeProxies (afw::table::SourceCatalog const &sourceCat, afw::geom::SkyWcs const &distortedWcs, afw::geom::SkyWcs const &tanWcs) |
ProxyVector | makeProxies (afw::table::SimpleCatalog const &posRefCat, afw::geom::SkyWcs const &tanWcs) |
afw::table::ReferenceMatchVector | matchOptimisticB (afw::table::SimpleCatalog const &posRefCat, afw::table::SourceCatalog const &sourceCat, MatchOptimisticBControl const &control, afw::geom::SkyWcs const &wcs, int posRefBegInd=0, bool verbose=false) |
Match sources to stars in a position reference catalog using optimistic pattern matching B. More... | |
PatternResult | construct_pattern_and_shift_rot_matrix (ndarray::Array< double, 2, 1 > src_pattern_array, ndarray::Array< double, 2, 1 > src_delta_array, ndarray::Array< double, 1, 1 > src_dist_array, ndarray::Array< float, 1, 1 > dist_array, ndarray::Array< uint16_t, 2, 1 > id_array, ndarray::Array< double, 2, 1 > reference_array, size_t n_match, double max_cos_theta_shift, double max_cos_rot_sq, double max_dist_rad) |
Test an input source pattern against the reference catalog. More... | |
RotationTestResult | test_rotation (ndarray::Array< double, 1, 1 > const &src_center, ndarray::Array< double, 1, 1 > const &ref_center, ndarray::Array< double, 1, 1 > const &src_delta, ndarray::Array< double, 1, 1 > const &ref_delta, double cos_shift, double max_cos_rot_sq) |
Test if the rotation implied between the source pattern and reference pattern is within tolerance. More... | |
SortedArrayResult | create_sorted_arrays (ndarray::Array< double, 1, 1 > const &ref_center, ndarray::Array< double, 2, 1 > const &reference_array) |
Create arrays sorted on the distance between the center of this candidate reference object and all the reference objects. More... | |
std::vector< std::pair< size_t, size_t > > | create_pattern_spokes (ndarray::Array< double, 1, 1 > const &src_ctr, ndarray::Array< double, 2, 1 > const &src_delta_array, ndarray::Array< double, 1, 1 > const &src_dist_array, ndarray::Array< double, 1, 1 > const &ref_ctr, Eigen::Vector3d const &proj_ref_ctr_delta, std::vector< float > const &ref_dist_array, std::vector< uint16_t > const &ref_id_array, ndarray::Array< double, 2, 1 > const &reference_array, double max_dist_rad, size_t n_match) |
Create the individual spokes that make up the pattern now that the shift and rotation are within tolerance. More... | |
ShiftRotMatrixResult | create_shift_rot_matrix (double cos_rot_sq, Eigen::Matrix3d const &shift_matrix, ndarray::Array< double, 1, 1 > const &src_delta, ndarray::Array< double, 1, 1 > const &ref_ctr, ndarray::Array< double, 1, 1 > const &ref_delta) |
Create the complete spherical rotation matrix. More... | |
Eigen::Matrix3d | create_spherical_rotation_matrix (Eigen::Vector3d const &rot_axis, double cos_rotation, double sin_rotion) |
Construct a generalized 3D rotation matrix about a given axis. More... | |
bool | intermediate_verify_comparison (std::vector< Eigen::Vector3d > const &src_pattern, std::vector< Eigen::Vector3d > const &ref_pattern, Eigen::Matrix3d const &shift_rot_matrix, double max_dist_rad) |
Test the input rotation matrix by comparing the rotated src pattern to the ref pattern. More... | |
int | check_spoke (double cos_theta_src, double sin_theta_src, ndarray::Array< double, 1, 1 > const &ref_ctr, Eigen::Vector3d const &proj_ref_ctr_delta, double proj_ref_ctr_dist_sq, std::pair< size_t, size_t > const &candidate_range, std::vector< uint16_t > const &ref_id_array, ndarray::Array< double, 2, 1 > const &reference_array, double src_sin_tol) |
Check the opening angle between the first spoke of our pattern for the source object against the reference object. More... | |
PolynomialTransform | compose (geom::AffineTransform const &t1, PolynomialTransform const &t2) |
Return a PolynomialTransform that is equivalent to the composition t1(t2()) More... | |
PolynomialTransform | compose (PolynomialTransform const &t1, geom::AffineTransform const &t2) |
Return a PolynomialTransform that is equivalent to the composition t1(t2()) More... | |
std::shared_ptr< afw::geom::SkyWcs > | makeWcs (SipForwardTransform const &sipForward, SipReverseTransform const &sipReverse, geom::SpherePoint const &skyOrigin) |
Create a new TAN SIP Wcs from a pair of SIP transforms and the sky origin. More... | |
std::shared_ptr< afw::geom::SkyWcs > | transformWcsPixels (afw::geom::SkyWcs const &wcs, geom::AffineTransform const &s) |
Create a new SkyWcs whose pixel coordinate system has been transformed via an affine transform. More... | |
std::shared_ptr< afw::geom::SkyWcs > | rotateWcsPixelsBy90 (afw::geom::SkyWcs const &wcs, int nQuarter, geom::Extent2I const &dimensions) |
Return a new SkyWcs that represents a rotation of the image it corresponds to about the image's center. More... | |
PYBIND11_MODULE (makeMatchStatistics, mod) | |
PYBIND11_MODULE (matchOptimisticB, mod) | |
PYBIND11_MODULE (pessimisticPatternMatcherUtils, mod) | |
PYBIND11_MODULE (polynomialTransform, mod) | |
PYBIND11_MODULE (scaledPolynomialTransformFitter, mod) | |
PYBIND11_MODULE (sipTransform, mod) | |
template afw::math::Statistics | makeMatchStatistics< afw::table::ReferenceMatch > (std::vector< afw::table::ReferenceMatch > const &matchList, int const flags, afw::math::StatisticsControl const &sctrl) |
template afw::math::Statistics | makeMatchStatisticsInPixels< afw::table::ReferenceMatch > (afw::geom::SkyWcs const &wcs, std::vector< afw::table::ReferenceMatch > const &matchList, int const flags, afw::math::StatisticsControl const &sctrl) |
template afw::math::Statistics | makeMatchStatisticsInRadians< afw::table::ReferenceMatch > (afw::geom::SkyWcs const &wcs, std::vector< afw::table::ReferenceMatch > const &matchList, int const flags, afw::math::StatisticsControl const &sctrl) |
template afw::math::Statistics | makeMatchStatistics< afw::table::SourceMatch > (std::vector< afw::table::SourceMatch > const &matchList, int const flags, afw::math::StatisticsControl const &sctrl) |
template afw::math::Statistics | makeMatchStatisticsInPixels< afw::table::SourceMatch > (afw::geom::SkyWcs const &wcs, std::vector< afw::table::SourceMatch > const &matchList, int const flags, afw::math::StatisticsControl const &sctrl) |
template afw::math::Statistics | makeMatchStatisticsInRadians< afw::table::SourceMatch > (afw::geom::SkyWcs const &wcs, std::vector< afw::table::SourceMatch > const &matchList, int const flags, afw::math::StatisticsControl const &sctrl) |
std::pair< size_t, size_t > | find_candidate_reference_pair_range (float src_dist, ndarray::Array< float, 1, 1 > const &ref_dist_array, double max_dist_rad) |
Find the range of reference pairs within the distance tolerance of our source pair spoke. More... | |
std::pair< size_t, size_t > | find_candidate_reference_pair_range (float src_dist, std::vector< float > const &ref_dist_array, double max_dist_rad) |
Find the range of reference pairs within the distance tolerance of our source pair spoke. More... | |
Definition at line 52 of file matchOptimisticB.h.
int lsst::meas::astrom::check_spoke | ( | double | cos_theta_src, |
double | sin_theta_src, | ||
ndarray::Array< double, 1, 1 > const & | ref_ctr, | ||
Eigen::Vector3d const & | proj_ref_ctr_delta, | ||
double | proj_ref_ctr_dist_sq, | ||
std::pair< size_t, size_t > const & | candidate_range, | ||
std::vector< uint16_t > const & | ref_id_array, | ||
ndarray::Array< double, 2, 1 > const & | reference_array, | ||
double | src_sin_tol | ||
) |
Check the opening angle between the first spoke of our pattern for the source object against the reference object.
This method makes heavy use of the small angle approximation to perform the comparison.
[in] | cos_theta_src | Cosine of the angle between the current candidate source spoke and the first spoke. |
[in] | sin_theta_src | Sine of the angle between the current candidate source spoke and the first spoke. |
[in] | ref_ctr | 3 vector of the candidate reference center |
[in] | proj_ref_ctr_delta | Plane projected first spoke in the reference pattern using the pattern center as normal. |
[in] | proj_ref_ctr_dist_sq | Squared length of the projected vector. |
[in] | candidate_range | Min and max index locations in ref_id_array that have pair lengths within the tolerance range. |
[in] | ref_id_array | Array of id lookups into the master reference array that our center id object is paired with. uint16 type is to limit the amount of memory used and is set in the pessimistic_pattern_matcher_3d python class with reference catalogs trimmed by the matchPessimisticB runner class. |
[in] | reference_array | Array of three vectors representing the locations of all reference objects. |
[in] | src_sin_tol | Sine of tolerance allowed between source and reference spoke opening angles. |
Definition at line 368 of file pessimisticPatternMatcherUtils.cc.
PolynomialTransform lsst::meas::astrom::compose | ( | geom::AffineTransform const & | t1, |
PolynomialTransform const & | t2 | ||
) |
Return a PolynomialTransform that is equivalent to the composition t1(t2())
The returned composition would be exact in ideal arithmetic, but may suffer from significant round-off error for high-order polynomials.
Definition at line 214 of file PolynomialTransform.cc.
PolynomialTransform lsst::meas::astrom::compose | ( | PolynomialTransform const & | t1, |
geom::AffineTransform const & | t2 | ||
) |
Return a PolynomialTransform that is equivalent to the composition t1(t2())
The returned composition would be exact in ideal arithmetic, but may suffer from significant round-off error for high-order polynomials.
Definition at line 225 of file PolynomialTransform.cc.
PatternResult lsst::meas::astrom::construct_pattern_and_shift_rot_matrix | ( | ndarray::Array< double, 2, 1 > | src_pattern_array, |
ndarray::Array< double, 2, 1 > | src_delta_array, | ||
ndarray::Array< double, 1, 1 > | src_dist_array, | ||
ndarray::Array< float, 1, 1 > | dist_array, | ||
ndarray::Array< uint16_t, 2, 1 > | id_array, | ||
ndarray::Array< double, 2, 1 > | reference_array, | ||
size_t | n_match, | ||
double | max_cos_theta_shift, | ||
double | max_cos_rot_sq, | ||
double | max_dist_rad | ||
) |
Test an input source pattern against the reference catalog.
[in] | src_pattern_array | Sub selection of source 3 vectors to create a pattern from. |
[in] | src_delta_array | Deltas of pairs from the source pattern center. |
[in] | src_dist_array | Distances of the pairs in src_delta_array. |
[in] | dist_array | Set of all distances between pairs of reference objects. |
[in] | id_array | Pairs of indices creating the reference pairs. Sorted the same as dist_array. |
[in] | reference_array | Set of all reference points. |
[in] | n_match | Number of points to attempt to create a pattern from. Must be <= len(src_pattern_array) |
[in] | max_cos_theta_shift | Maximum shift allowed between two patterns' centers. Equivalent to the shift on the sky. |
[in] | max_cos_rot_sq | Maximum rotation between two patterns that have been shifted to have their centers on top of each other. |
[in] | max_dist_rad | Maximum difference allowed between the source and reference pair distances to consider the reference pair a candidate for the source pair. Also sets the tolerance between the opening angles of the spokes when compared to the reference. |
Definition at line 40 of file pessimisticPatternMatcherUtils.cc.
std::vector< std::pair< size_t, size_t > > lsst::meas::astrom::create_pattern_spokes | ( | ndarray::Array< double, 1, 1 > const & | src_ctr, |
ndarray::Array< double, 2, 1 > const & | src_delta_array, | ||
ndarray::Array< double, 1, 1 > const & | src_dist_array, | ||
ndarray::Array< double, 1, 1 > const & | ref_ctr, | ||
Eigen::Vector3d const & | proj_ref_ctr_delta, | ||
std::vector< float > const & | ref_dist_array, | ||
std::vector< uint16_t > const & | ref_id_array, | ||
ndarray::Array< double, 2, 1 > const & | reference_array, | ||
double | max_dist_rad, | ||
size_t | n_match | ||
) |
Create the individual spokes that make up the pattern now that the shift and rotation are within tolerance.
If we can't create a valid pattern we exit early with a partial result.
[in] | src_ctr | 3 vector of the source pinwheel center |
[in] | src_delta_array | Array of 3 vector deltas between the source center and the pairs that make up the remaining spokes of the pinwheel. |
[in] | src_dist_array | Array of the distances of each src_delta in the pinwheel. |
[in] | ref_ctr | 3 vector of the candidate reference center. |
[in] | proj_ref_ctr_delta | Plane projected 3 vector formed from the center point of the candidate pin-wheel and the second point in the pattern to create the first spoke pair. This is the candidate pair that was matched in the main _construct_pattern_and_shift_rot_matrix loop. |
[in] | ref_dist_array | Array of vector distances for each of the reference pairs |
[in] | ref_id_array | Array of id lookups into the master reference array that our center id object is paired with. |
[in] | reference_array | Full 3 vector data for the reference catalog. |
[in] | max_dist_rad | Maximum search radius for distances. |
[in] | n_match | Number of source deltas that must be matched into the reference deltas in order to consider this a successful pattern match. |
Append the successful indices to our list. The src_idx needs an extra iteration to skip the first and second source objects.
Append the successful indices to our list. The src_idx needs an extra iteration to skip the first and second source objects.
Definition at line 278 of file pessimisticPatternMatcherUtils.cc.
ShiftRotMatrixResult lsst::meas::astrom::create_shift_rot_matrix | ( | double | cos_rot_sq, |
Eigen::Matrix3d const & | shift_matrix, | ||
ndarray::Array< double, 1, 1 > const & | src_delta, | ||
ndarray::Array< double, 1, 1 > const & | ref_ctr, | ||
ndarray::Array< double, 1, 1 > const & | ref_delta | ||
) |
Create the complete spherical rotation matrix.
[in] | cos_rot_sq | cosine of the rotation needed to align our source and reference candidate patterns. |
[in] | shift_matrix | 3x3 rotation matrix for shifting the source pattern center on top of the candidate reference pattern center. |
[in] | src_delta | 3 vector delta representing the first spoke of the source pattern |
[in] | ref_ctr | 3 vector on the unit-sphere representing the center of our reference pattern. |
[in] | ref_delta | 3 vector delta made by the first pair of the reference pattern. |
Definition at line 237 of file pessimisticPatternMatcherUtils.cc.
SortedArrayResult lsst::meas::astrom::create_sorted_arrays | ( | ndarray::Array< double, 1, 1 > const & | ref_center, |
ndarray::Array< double, 2, 1 > const & | reference_array | ||
) |
Create arrays sorted on the distance between the center of this candidate reference object and all the reference objects.
[in] | ref_center | Center point of the candidate pattern. |
[in] | reference_array | Array of all reference object points. |
Definition at line 139 of file pessimisticPatternMatcherUtils.cc.
Eigen::Matrix3d lsst::meas::astrom::create_spherical_rotation_matrix | ( | Eigen::Vector3d const & | rot_axis, |
double | cos_rotation, | ||
double | sin_rotion | ||
) |
Construct a generalized 3D rotation matrix about a given axis.
param[in] rot_axis 3 vector defining the axis to rotate about. param[in] cos_rotation cosine of the rotation angle. param[in] sin_rotion sine of the rotation angle.
Definition at line 223 of file pessimisticPatternMatcherUtils.cc.
std::pair< size_t, size_t > lsst::meas::astrom::find_candidate_reference_pair_range | ( | float | src_dist, |
ndarray::Array< float, 1, 1 > const & | ref_dist_array, | ||
double | max_dist_rad | ||
) |
Find the range of reference pairs within the distance tolerance of our source pair spoke.
[in] | src_dist | Value of the distance we would like to search for in the reference array in radians. |
[in] | ref_dist_array | sorted array of distances in radians. |
[in] | max_dist_rad | maximum plus/minus search to find in the reference array in radians. |
Definition at line 156 of file pessimisticPatternMatcherUtils.cc.
std::pair< size_t, size_t > lsst::meas::astrom::find_candidate_reference_pair_range | ( | float | src_dist, |
std::vector< float > const & | ref_dist_array, | ||
double | max_dist_rad | ||
) |
Find the range of reference pairs within the distance tolerance of our source pair spoke.
[in] | src_dist | Value of the distance we would like to search for in the reference array in radians. |
[in] | ref_dist_array | sorted array of distances in radians. |
[in] | max_dist_rad | maximum plus/minus search to find in the reference array in radians. |
Definition at line 168 of file pessimisticPatternMatcherUtils.cc.
bool lsst::meas::astrom::intermediate_verify_comparison | ( | std::vector< Eigen::Vector3d > const & | src_pattern, |
std::vector< Eigen::Vector3d > const & | ref_pattern, | ||
Eigen::Matrix3d const & | shift_rot_matrix, | ||
double | max_dist_rad | ||
) |
Test the input rotation matrix by comparing the rotated src pattern to the ref pattern.
If every point in the pattern after rotation is within a distance of max_dist_rad to its candidate point in the other pattern, we return True.
[in] | src_pattern | Vector of 3 vectors representing the points that make up our source pinwheel pattern. |
[in] | ref_pattern | Vector of 3 vectors representing our candidate reference pinwheel pattern. |
[in] | shift_rot_matrix | 3x3 rotation matrix that takes the source objects and rotates them onto the frame of the reference objects. |
[in] | max_dist_rad | Maximum distance allowed to consider two objects the same. |
Definition at line 259 of file pessimisticPatternMatcherUtils.cc.
afw::math::Statistics lsst::meas::astrom::makeMatchStatistics | ( | std::vector< MatchT > const & | matchList, |
int const | flags, | ||
afw::math::StatisticsControl const & | sctrl = afw::math::StatisticsControl() |
||
) |
Compute statistics of the distance field of a match list.
[in] | matchList | list of matchList between reference objects and sources; fields read:
|
[in] | flags | what to calculate; OR constants such as lsst::afw::math::MEAN, MEANCLIP, STDDEV, MEDIAN, defined in lsst/afw/math/Statitics.h's Property enum |
[in] | sctrl | statistics configuration |
Definition at line 33 of file makeMatchStatistics.cc.
template afw::math::Statistics lsst::meas::astrom::makeMatchStatistics< afw::table::ReferenceMatch > | ( | std::vector< afw::table::ReferenceMatch > const & | matchList, |
int const | flags, | ||
afw::math::StatisticsControl const & | sctrl | ||
) |
template afw::math::Statistics lsst::meas::astrom::makeMatchStatistics< afw::table::SourceMatch > | ( | std::vector< afw::table::SourceMatch > const & | matchList, |
int const | flags, | ||
afw::math::StatisticsControl const & | sctrl | ||
) |
afw::math::Statistics lsst::meas::astrom::makeMatchStatisticsInPixels | ( | afw::geom::SkyWcs const & | wcs, |
std::vector< MatchT > const & | matchList, | ||
int const | flags, | ||
afw::math::StatisticsControl const & | sctrl = afw::math::StatisticsControl() |
||
) |
Compute statistics of on-detector radial separation for a match list, in pixels.
[in] | wcs | WCS describing pixel to sky transformation |
[in] | matchList | list of matchList between reference objects and sources; fields read:
|
[in] | flags | what to calculate; OR constants such as lsst::afw::math::MEAN, MEANCLIP, STDDEV, MEDIAN, defined in lsst/afw/math/Statitics.h's Property enum |
[in] | sctrl | statistics configuration |
Definition at line 48 of file makeMatchStatistics.cc.
template afw::math::Statistics lsst::meas::astrom::makeMatchStatisticsInPixels< afw::table::ReferenceMatch > | ( | afw::geom::SkyWcs const & | wcs, |
std::vector< afw::table::ReferenceMatch > const & | matchList, | ||
int const | flags, | ||
afw::math::StatisticsControl const & | sctrl | ||
) |
template afw::math::Statistics lsst::meas::astrom::makeMatchStatisticsInPixels< afw::table::SourceMatch > | ( | afw::geom::SkyWcs const & | wcs, |
std::vector< afw::table::SourceMatch > const & | matchList, | ||
int const | flags, | ||
afw::math::StatisticsControl const & | sctrl | ||
) |
afw::math::Statistics lsst::meas::astrom::makeMatchStatisticsInRadians | ( | afw::geom::SkyWcs const & | wcs, |
std::vector< MatchT > const & | matchList, | ||
int const | flags, | ||
afw::math::StatisticsControl const & | sctrl = afw::math::StatisticsControl() |
||
) |
Compute statistics of on-sky radial separation for a match list, in radians.
[in] | wcs | WCS describing pixel to sky transformation |
[in] | matchList | list of matchList between reference objects and sources; fields read:
|
[in] | flags | what to calculate; OR constants such as lsst::afw::math::MEAN, MEANCLIP, STDDEV, MEDIAN, defined in lsst/afw/math/Statitics.h's Property enum |
[in] | sctrl | statistics configuration |
Definition at line 71 of file makeMatchStatistics.cc.
template afw::math::Statistics lsst::meas::astrom::makeMatchStatisticsInRadians< afw::table::ReferenceMatch > | ( | afw::geom::SkyWcs const & | wcs, |
std::vector< afw::table::ReferenceMatch > const & | matchList, | ||
int const | flags, | ||
afw::math::StatisticsControl const & | sctrl | ||
) |
template afw::math::Statistics lsst::meas::astrom::makeMatchStatisticsInRadians< afw::table::SourceMatch > | ( | afw::geom::SkyWcs const & | wcs, |
std::vector< afw::table::SourceMatch > const & | matchList, | ||
int const | flags, | ||
afw::math::StatisticsControl const & | sctrl | ||
) |
ProxyVector lsst::meas::astrom::makeProxies | ( | afw::table::SimpleCatalog const & | posRefCat, |
afw::geom::SkyWcs const & | tanWcs | ||
) |
Definition at line 448 of file matchOptimisticB.cc.
ProxyVector lsst::meas::astrom::makeProxies | ( | afw::table::SourceCatalog const & | sourceCat, |
afw::geom::SkyWcs const & | distortedWcs, | ||
afw::geom::SkyWcs const & | tanWcs | ||
) |
Definition at line 436 of file matchOptimisticB.cc.
std::shared_ptr< afw::geom::SkyWcs > lsst::meas::astrom::makeWcs | ( | SipForwardTransform const & | sipForward, |
SipReverseTransform const & | sipReverse, | ||
geom::SpherePoint const & | skyOrigin | ||
) |
Create a new TAN SIP Wcs from a pair of SIP transforms and the sky origin.
[in] | sipForward | Mapping from pixel coordinates to intermediate world coordinates. |
[in] | sipReverse | Mapping from intermediate world coordinates to pixel coordinates. |
[in] | skyOrigin | ICRS position of the gnomonic projection that maps sky coordinates to intermediate world coordinates (CRVAL). |
pex::exceptions::InvalidParameterError | if the forward and reverse SIP transforms have different CRPIX values or CD matrices. |
Definition at line 148 of file SipTransform.cc.
afwTable::ReferenceMatchVector lsst::meas::astrom::matchOptimisticB | ( | afw::table::SimpleCatalog const & | posRefCat, |
afw::table::SourceCatalog const & | sourceCat, | ||
MatchOptimisticBControl const & | control, | ||
afw::geom::SkyWcs const & | wcs, | ||
int | posRefBegInd = 0 , |
||
bool | verbose = false |
||
) |
Match sources to stars in a position reference catalog using optimistic pattern matching B.
Optimistic Pattern Matching is described in V. Tabur 2007, PASA, 24, 189-198 "Fast Algorithms for Matching CCD Images to a Stellar Catalogue"
[in] | posRefCat | catalog of position reference stars; fields read:
|
[in] | sourceCat | catalog of detected sources; fields read:
|
[in] | wcs | estimated WCS |
[in] | control | control object |
[in] | posRefBegInd | index of first start to use in posRefCat |
[in] | verbose | true to print diagnostic information to std::cout |
Definition at line 459 of file matchOptimisticB.cc.
lsst::meas::astrom::PYBIND11_MODULE | ( | makeMatchStatistics | , |
mod | |||
) |
Definition at line 47 of file makeMatchStatistics.cc.
lsst::meas::astrom::PYBIND11_MODULE | ( | matchOptimisticB | , |
mod | |||
) |
Definition at line 91 of file matchOptimisticB.cc.
lsst::meas::astrom::PYBIND11_MODULE | ( | pessimisticPatternMatcherUtils | , |
mod | |||
) |
Definition at line 41 of file pessimisticPatternMatcherUtils.cc.
lsst::meas::astrom::PYBIND11_MODULE | ( | polynomialTransform | , |
mod | |||
) |
Definition at line 102 of file polynomialTransform.cc.
lsst::meas::astrom::PYBIND11_MODULE | ( | scaledPolynomialTransformFitter | , |
mod | |||
) |
Definition at line 71 of file scaledPolynomialTransformFitter.cc.
lsst::meas::astrom::PYBIND11_MODULE | ( | sipTransform | , |
mod | |||
) |
Definition at line 104 of file sipTransform.cc.
std::shared_ptr< afw::geom::SkyWcs > lsst::meas::astrom::rotateWcsPixelsBy90 | ( | afw::geom::SkyWcs const & | wcs, |
int | nQuarter, | ||
geom::Extent2I const & | dimensions | ||
) |
Return a new SkyWcs that represents a rotation of the image it corresponds to about the image's center.
[in] | wcs | Original SkyWcs to be rotated. |
[in] | nQuarter | Number of 90 degree rotations (positive is counterclockwise). |
[in] | dimensions | Width and height of the image. |
Definition at line 179 of file SipTransform.cc.
RotationTestResult lsst::meas::astrom::test_rotation | ( | ndarray::Array< double, 1, 1 > const & | src_center, |
ndarray::Array< double, 1, 1 > const & | ref_center, | ||
ndarray::Array< double, 1, 1 > const & | src_delta, | ||
ndarray::Array< double, 1, 1 > const & | ref_delta, | ||
double | cos_shift, | ||
double | max_cos_rot_sq | ||
) |
Test if the rotation implied between the source pattern and reference pattern is within tolerance.
To test this we need to create the first part of our spherical rotation matrix which we also return for use later.
[in] | src_center | 3 vector defining the center of the candidate source pinwheel pattern. |
[in] | ref_center | 3 vector defining the center of the candidate reference pinwheel pattern. |
[in] | src_delta | 3 vector delta between the source pattern center and the end of the pinwheel spoke. |
[in] | ref_delta | 3 vector delta of the candidate matched reference pair |
[in] | cos_shift | Cosine of the angle between the source and reference candidate centers. |
[in] | max_cos_rot_sq | Maximum allowed rotation of the pinwheel pattern. |
Definition at line 181 of file pessimisticPatternMatcherUtils.cc.
std::shared_ptr< afw::geom::SkyWcs > lsst::meas::astrom::transformWcsPixels | ( | afw::geom::SkyWcs const & | wcs, |
geom::AffineTransform const & | s | ||
) |
Create a new SkyWcs whose pixel coordinate system has been transformed via an affine transform.
[in] | wcs | Original SkyWcs object. |
[in] | s | AffineTransform to apply to the pixel coordinate system. |
sky
and pixel coordinates pixel
. Definition at line 173 of file SipTransform.cc.