LSST Applications g063fba187b+cac8b7c890,g0f08755f38+6aee506743,g1653933729+a8ce1bb630,g168dd56ebc+a8ce1bb630,g1a2382251a+b4475c5878,g1dcb35cd9c+8f9bc1652e,g20f6ffc8e0+6aee506743,g217e2c1bcf+73dee94bd0,g28da252d5a+1f19c529b9,g2bbee38e9b+3f2625acfc,g2bc492864f+3f2625acfc,g3156d2b45e+6e55a43351,g32e5bea42b+1bb94961c2,g347aa1857d+3f2625acfc,g35bb328faa+a8ce1bb630,g3a166c0a6a+3f2625acfc,g3e281a1b8c+c5dd892a6c,g3e8969e208+a8ce1bb630,g414038480c+5927e1bc1e,g41af890bb2+8a9e676b2a,g7af13505b9+809c143d88,g80478fca09+6ef8b1810f,g82479be7b0+f568feb641,g858d7b2824+6aee506743,g89c8672015+f4add4ffd5,g9125e01d80+a8ce1bb630,ga5288a1d22+2903d499ea,gb58c049af0+d64f4d3760,gc28159a63d+3f2625acfc,gcab2d0539d+b12535109e,gcf0d15dbbd+46a3f46ba9,gda6a2b7d83+46a3f46ba9,gdaeeff99f8+1711a396fd,ge79ae78c31+3f2625acfc,gef2f8181fd+0a71e47438,gf0baf85859+c1f95f4921,gfa517265be+6aee506743,gfa999e8aa5+17cd334064,w.2024.51
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.