LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+13f3999e92,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+5700dc9eac,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+d730eedb7d,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+5e831397f4,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+41c94011de,gf3fb38a9a8+8f07a9901b,gfb92a5be7c+9c285cab97,w.2024.46
LSST Data Management Base Package
|
#include <StarMatch.h>
Public Member Functions | |
void | refineTransform (double nSigmas) |
removes pairs beyond nSigmas in distance (where the sigma scale is set by the fit) and iterates until stabilization of the number of pairs. | |
void | applyTransform (StarMatchList &transformed, const AstrometryTransform *priorTransform, const AstrometryTransform *posteriorTransform=nullptr) const |
enables to get a transformed StarMatchList. | |
StarMatchList () | |
std::shared_ptr< const AstrometryTransform > | getTransform () const |
carries out a fit with outlier rejection | |
double | getDist2 () const |
access to the sum of squared residuals of the last call to refineTransform. | |
double | getChi2 () const |
access to the chi2 of the last call to refineTransform. | |
int | getTransformOrder () const |
returns the order of the used transform | |
void | swap () |
swaps elements 1 and 2 of each starmatch in std::list. | |
double | computeResidual () const |
returns the average 1d Residual (last call to refineTransform) | |
unsigned | removeAmbiguities (const AstrometryTransform &transform, int which=3) |
cleans up the std::list of pairs for pairs that share one of their stars, keeping the closest one. | |
void | setTransform (const AstrometryTransform *transform) |
sets a transform between the 2 std::lists and deletes the previous or default one. No fit. | |
void | setTransform (const AstrometryTransform &transform) |
void | setTransform (std::shared_ptr< AstrometryTransform > transform) |
void | setTransformOrder (int order) |
set transform according to the given order. | |
std::unique_ptr< AstrometryTransform > | inverseTransform () |
returns the inverse transform (swap, fit(refineTransform) , and swap). | |
void | setDistance (const AstrometryTransform &transform) |
Sets the distance (residual) field of all std::list elements. Mandatory before sorting on distances. | |
void | cutTail (int nKeep) |
deletes the tail of the match std::list | |
int | recoveredNumber (double mindist) const |
count the number of elements for which distance is < mindist | |
void | printTransform (std::ostream &stream=std::cout) const |
print the matching transformation quality (transform, chi2, residual) | |
~StarMatchList ()=default | |
StarMatchList (const StarMatchList &)=delete | |
void | operator= (const StarMatchList &)=delete |
StarMatch | pop_front (StarMatch ... args) |
StarMatch | push_back (StarMatch ... args) |
StarMatch | splice (StarMatch ... args) |
StarMatch | crbegin (StarMatch ... args) |
StarMatch | erase (StarMatch ... args) |
StarMatch | emplace_front (StarMatch ... args) |
StarMatch | insert (StarMatch ... args) |
StarMatch | reverse (StarMatch ... args) |
StarMatch | back (StarMatch ... args) |
StarMatch | end (StarMatch ... args) |
StarMatch | remove (StarMatch ... args) |
StarMatch | emplace_back (StarMatch ... args) |
StarMatch | pop_back (StarMatch ... args) |
StarMatch | cbegin (StarMatch ... args) |
StarMatch | front (StarMatch ... args) |
StarMatch | unique (StarMatch ... args) |
StarMatch | size (StarMatch ... args) |
StarMatch | resize (StarMatch ... args) |
StarMatch | push_front (StarMatch ... args) |
StarMatch | rbegin (StarMatch ... args) |
StarMatch | crend (StarMatch ... args) |
StarMatch | assign (StarMatch ... args) |
StarMatch | sort (StarMatch ... args) |
StarMatch | merge (StarMatch ... args) |
StarMatch | empty (StarMatch ... args) |
StarMatch | remove_if (StarMatch ... args) |
StarMatch | cend (StarMatch ... args) |
StarMatch | swap (StarMatch ... args) |
StarMatch | max_size (StarMatch ... args) |
StarMatch | rend (StarMatch ... args) |
StarMatch | get_allocator (StarMatch ... args) |
StarMatch | clear (StarMatch ... args) |
StarMatch | emplace (StarMatch ... args) |
StarMatch | begin (StarMatch ... args) |
Public Attributes | |
StarMatch | elements |
STL member. | |
Definition at line 150 of file StarMatch.h.
|
inline |
Definition at line 160 of file StarMatch.h.
|
default |
|
delete |
void lsst::jointcal::StarMatchList::applyTransform | ( | StarMatchList & | transformed, |
const AstrometryTransform * | priorTransform, | ||
const AstrometryTransform * | posteriorTransform = nullptr ) const |
enables to get a transformed StarMatchList.
Only positions are transformed, not attached stars. const routine: "this" remains unchanged.
Definition at line 212 of file StarMatch.cc.
double lsst::jointcal::StarMatchList::computeResidual | ( | ) | const |
returns the average 1d Residual (last call to refineTransform)
Definition at line 134 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::cutTail | ( | int | nKeep | ) |
deletes the tail of the match std::list
Definition at line 189 of file StarMatch.cc.
|
inline |
access to the chi2 of the last call to refineTransform.
Definition at line 171 of file StarMatch.h.
|
inline |
access to the sum of squared residuals of the last call to refineTransform.
Definition at line 168 of file StarMatch.h.
|
inline |
carries out a fit with outlier rejection
enables to access the fitted transformation.
Definition at line 165 of file StarMatch.h.
|
inline |
returns the order of the used transform
Definition at line 174 of file StarMatch.h.
std::unique_ptr< AstrometryTransform > lsst::jointcal::StarMatchList::inverseTransform | ( | ) |
returns the inverse transform (swap, fit(refineTransform) , and swap).
The caller should delete the returned pointer.
Definition at line 172 of file StarMatch.cc.
|
delete |
void lsst::jointcal::StarMatchList::printTransform | ( | std::ostream & | stream = std::cout | ) | const |
print the matching transformation quality (transform, chi2, residual)
Definition at line 228 of file StarMatch.cc.
int lsst::jointcal::StarMatchList::recoveredNumber | ( | double | mindist | ) | const |
count the number of elements for which distance is < mindist
Definition at line 203 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::refineTransform | ( | double | nSigmas | ) |
removes pairs beyond nSigmas in distance (where the sigma scale is set by the fit) and iterates until stabilization of the number of pairs.
If the transform is not assigned, it will be set to a AstrometryTransformLinearear. User can set an other type/order using setTransform() before call.
Definition at line 92 of file StarMatch.cc.
unsigned lsst::jointcal::StarMatchList::removeAmbiguities | ( | const AstrometryTransform & | transform, |
int | which = 3 ) |
cleans up the std::list of pairs for pairs that share one of their stars, keeping the closest one.
The distance is computed using transform. which = 1 (2) removes ambiguities on the first (second) term of the match. which=3 does both.
Definition at line 143 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::setDistance | ( | const AstrometryTransform & | transform | ) |
Sets the distance (residual) field of all std::list elements. Mandatory before sorting on distances.
Definition at line 139 of file StarMatch.cc.
|
inline |
Definition at line 190 of file StarMatch.h.
|
inline |
sets a transform between the 2 std::lists and deletes the previous or default one. No fit.
Definition at line 188 of file StarMatch.h.
|
inline |
Definition at line 191 of file StarMatch.h.
void lsst::jointcal::StarMatchList::setTransformOrder | ( | int | order | ) |
set transform according to the given order.
Definition at line 158 of file StarMatch.cc.
void lsst::jointcal::StarMatchList::swap | ( | ) |
swaps elements 1 and 2 of each starmatch in std::list.
Definition at line 197 of file StarMatch.cc.