LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
The class that implements the relations between MeasuredStar and FittedStar. More...
#include <Associations.h>
Public Member Functions | |
size_t | refStarListSize () |
size_t | fittedStarListSize () |
Associations () | |
Source selection is performed in python, so Associations' constructor only initializes a couple of variables. More... | |
Associations (CcdImageList const &imageList, double epoch=0) | |
Create an Associations object from a pre-built list of ccdImages. More... | |
Associations (Associations const &)=delete | |
No moves or copies: jointcal only ever needs one Associations object. More... | |
Associations (Associations &&)=delete | |
Associations & | operator= (Associations const &)=delete |
Associations & | operator= (Associations &&)=delete |
void | computeCommonTangentPoint () |
Sets a shared tangent point for all ccdImages, using the mean of the centers of all ccdImages. More... | |
size_t | getMaxMeasuredStars () const |
The number of MeasuredStars at the start of fitting, before any outliers are removed. More... | |
void | createCcdImage (afw::table::SourceCatalog &catalog, std::shared_ptr< lsst::afw::geom::SkyWcs > wcs, std::shared_ptr< lsst::afw::image::VisitInfo > visitInfo, lsst::geom::Box2I const &bbox, std::string const &filter, std::shared_ptr< afw::image::PhotoCalib > photoCalib, std::shared_ptr< afw::cameraGeom::Detector > detector, int visit, int ccd, lsst::jointcal::JointcalControl const &control) |
Create a ccdImage from an exposure catalog and metadata, and add it to the list. More... | |
void | addCcdImage (std::shared_ptr< CcdImage > const ccdImage) |
Add a pre-constructed ccdImage to the ccdImageList. More... | |
void | associateCatalogs (const double matchCutInArcsec=0, const bool useFittedList=false, const bool enlargeFittedList=true) |
incrementaly builds a merged catalog of all image catalogs More... | |
void | collectRefStars (afw::table::SimpleCatalog &refCat, geom::Angle matchCut, std::string const &fluxField, float refCoordinateErr, bool rejectBadFluxes=false) |
Collect stars from an external reference catalog and associate them with fittedStars. More... | |
void | deprojectFittedStars () |
Sends back the fitted stars coordinates on the sky FittedStarsList::inTangentPlaneCoordinates keeps track of that. More... | |
void | prepareFittedStars (int minMeasurements) |
Prepare the fittedStar list by making quality cuts and normalizing measurements. More... | |
void | cleanFittedStars () |
Remove FittedStars that have no measured stars; this can happen after outlier rejection. More... | |
CcdImageList const & | getCcdImageList () const |
unsigned | getNFilters () const |
Number of different bands in the input image list. Not implemented so far. More... | |
lsst::sphgeom::Circle | computeBoundingCircle () const |
Return the bounding circle in on-sky (RA, Dec) coordinates containing all CcdImages. More... | |
int | nCcdImagesValidForFit () const |
return the number of CcdImages with non-empty catalogs to-be-fit. More... | |
size_t | nFittedStarsWithAssociatedRefStar () const |
Return the number of fittedStars that have an associated refStar. More... | |
void | setCommonTangentPoint (lsst::geom::Point2D const &commonTangentPoint) |
Shared tangent point for all ccdImages (decimal degrees). More... | |
Point | getCommonTangentPoint () const |
Shared tangent point for all ccdImages (decimal degrees). More... | |
double | getEpoch () const |
Common epoch of all of the ccdImages as a Julian Epoch Year (e.g. More... | |
void | setEpoch (double epoch) |
Common epoch of all of the ccdImages as a Julian Epoch Year (e.g. More... | |
Public Attributes | |
CcdImageList | ccdImageList |
RefStarList | refStarList |
FittedStarList | fittedStarList |
The class that implements the relations between MeasuredStar and FittedStar.
Definition at line 54 of file Associations.h.
|
inline |
Source selection is performed in python, so Associations' constructor only initializes a couple of variables.
Definition at line 69 of file Associations.h.
|
inline |
Create an Associations object from a pre-built list of ccdImages.
This is primarily useful for tests that build their own ccdImageList, but it could be used to help parallelize the creation of the ccdImages.
imageList | A pre-built ccdImage list. |
epoch | The julian epoch year to which all proper motion corrections should be made. |
Definition at line 83 of file Associations.h.
|
delete |
No moves or copies: jointcal only ever needs one Associations object.
|
delete |
|
inline |
Add a pre-constructed ccdImage to the ccdImageList.
Definition at line 145 of file Associations.h.
void lsst::jointcal::Associations::associateCatalogs | ( | const double | matchCutInArcsec = 0 , |
const bool | useFittedList = false , |
||
const bool | enlargeFittedList = true |
||
) |
incrementaly builds a merged catalog of all image catalogs
Definition at line 119 of file Associations.cc.
void lsst::jointcal::Associations::cleanFittedStars | ( | ) |
Remove FittedStars that have no measured stars; this can happen after outlier rejection.
Use this to perform e.g. position minimization with outlier rejection after model minimization has removed measuredStar outliers, to prevent the matrix from becoming non-positive definite. Once this has been called, prepareFittedStars() has to be called again if the full measuredStar->FittedStar relationship needs to be reconstructed.
Definition at line 423 of file Associations.cc.
void lsst::jointcal::Associations::collectRefStars | ( | afw::table::SimpleCatalog & | refCat, |
geom::Angle | matchCut, | ||
std::string const & | fluxField, | ||
float | refCoordinateErr, | ||
bool | rejectBadFluxes = false |
||
) |
Collect stars from an external reference catalog and associate them with fittedStars.
refCat | The catalog of reference sources | |
[in] | matchCut | Separation radius to match fitted and reference stars. |
fluxField | The field name in refCat to get the flux from. | |
refCoordinateErr | Error on reference catalog coordinates [mas]. If not NaN, this overrides the coord_*_err values in the reference catalog itself. This value is divided by cos(dec) before being used for ra_err. | |
rejectBadFluxes | Reject reference sources with flux=NaN or 0 and/or fluxErr=NaN or 0. Typically false for astrometry and true for photometry. |
Definition at line 203 of file Associations.cc.
lsst::sphgeom::Circle lsst::jointcal::Associations::computeBoundingCircle | ( | ) | const |
Return the bounding circle in on-sky (RA, Dec) coordinates containing all CcdImages.
Requires that computeCommonTangentPoint() be called first, so that sensor bounding boxes can be transformed into the common tangent plane.
Definition at line 90 of file Associations.cc.
void lsst::jointcal::Associations::computeCommonTangentPoint | ( | ) |
Sets a shared tangent point for all ccdImages, using the mean of the centers of all ccdImages.
Definition at line 74 of file Associations.cc.
void lsst::jointcal::Associations::createCcdImage | ( | afw::table::SourceCatalog & | catalog, |
std::shared_ptr< lsst::afw::geom::SkyWcs > | wcs, | ||
std::shared_ptr< lsst::afw::image::VisitInfo > | visitInfo, | ||
lsst::geom::Box2I const & | bbox, | ||
std::string const & | filter, | ||
std::shared_ptr< afw::image::PhotoCalib > | photoCalib, | ||
std::shared_ptr< afw::cameraGeom::Detector > | detector, | ||
int | visit, | ||
int | ccd, | ||
lsst::jointcal::JointcalControl const & | control | ||
) |
Create a ccdImage from an exposure catalog and metadata, and add it to the list.
[in] | catalog | The extracted source catalog, selected for good astrometric sources. |
[in] | wcs | The exposure's original wcs |
[in] | visitInfo | The exposure's visitInfo object |
[in] | bbox | The bounding box of the exposure |
[in] | filter | The exposure's filter |
[in] | photoCalib | The exposure's photometric calibration |
[in] | detector | The exposure's detector |
[in] | visit | The visit identifier |
[in] | ccd | The ccd identifier |
[in] | control | The JointcalControl object |
Definition at line 62 of file Associations.cc.
void lsst::jointcal::Associations::deprojectFittedStars | ( | ) |
Sends back the fitted stars coordinates on the sky FittedStarsList::inTangentPlaneCoordinates keeps track of that.
Definition at line 453 of file Associations.cc.
|
inline |
Definition at line 63 of file Associations.h.
|
inline |
Definition at line 188 of file Associations.h.
|
inline |
Shared tangent point for all ccdImages (decimal degrees).
Used to project sidereal coordinates related to the images onto a single plane.
Definition at line 108 of file Associations.h.
|
inline |
Common epoch of all of the ccdImages as a Julian Epoch Year (e.g.
2000.0 for J2000).
Definition at line 118 of file Associations.h.
|
inline |
The number of MeasuredStars at the start of fitting, before any outliers are removed.
Definition at line 112 of file Associations.h.
|
inline |
Number of different bands in the input image list. Not implemented so far.
Definition at line 191 of file Associations.h.
int lsst::jointcal::Associations::nCcdImagesValidForFit | ( | ) | const |
return the number of CcdImages with non-empty catalogs to-be-fit.
Definition at line 467 of file Associations.cc.
size_t lsst::jointcal::Associations::nFittedStarsWithAssociatedRefStar | ( | ) | const |
Return the number of fittedStars that have an associated refStar.
Definition at line 473 of file Associations.cc.
|
delete |
|
delete |
void lsst::jointcal::Associations::prepareFittedStars | ( | int | minMeasurements | ) |
Prepare the fittedStar list by making quality cuts and normalizing measurements.
[in] | minMeasurements | The minimum number of measuredStars for a FittedStar to be included. |
Definition at line 336 of file Associations.cc.
|
inline |
Definition at line 62 of file Associations.h.
void lsst::jointcal::Associations::setCommonTangentPoint | ( | lsst::geom::Point2D const & | commonTangentPoint | ) |
Shared tangent point for all ccdImages (decimal degrees).
Used to project sidereal coordinates related to the images onto a single plane.
Definition at line 85 of file Associations.cc.
|
inline |
Common epoch of all of the ccdImages as a Julian Epoch Year (e.g.
2000.0 for J2000).
Definition at line 119 of file Associations.h.
CcdImageList lsst::jointcal::Associations::ccdImageList |
Definition at line 56 of file Associations.h.
FittedStarList lsst::jointcal::Associations::fittedStarList |
Definition at line 58 of file Associations.h.
RefStarList lsst::jointcal::Associations::refStarList |
Definition at line 57 of file Associations.h.