LSST Applications 27.0.0,g0265f82a02+469cd937ee,g02d81e74bb+21ad69e7e1,g1470d8bcf6+cbe83ee85a,g2079a07aa2+e67c6346a6,g212a7c68fe+04a9158687,g2305ad1205+94392ce272,g295015adf3+81dd352a9d,g2bbee38e9b+469cd937ee,g337abbeb29+469cd937ee,g3939d97d7f+72a9f7b576,g487adcacf7+71499e7cba,g50ff169b8f+5929b3527e,g52b1c1532d+a6fc98d2e7,g591dd9f2cf+df404f777f,g5a732f18d5+be83d3ecdb,g64a986408d+21ad69e7e1,g858d7b2824+21ad69e7e1,g8a8a8dda67+a6fc98d2e7,g99cad8db69+f62e5b0af5,g9ddcbc5298+d4bad12328,ga1e77700b3+9c366c4306,ga8c6da7877+71e4819109,gb0e22166c9+25ba2f69a1,gb6a65358fc+469cd937ee,gbb8dafda3b+69d3c0e320,gc07e1c2157+a98bf949bb,gc120e1dc64+615ec43309,gc28159a63d+469cd937ee,gcf0d15dbbd+72a9f7b576,gdaeeff99f8+a38ce5ea23,ge6526c86ff+3a7c1ac5f1,ge79ae78c31+469cd937ee,gee10cc3b42+a6fc98d2e7,gf1cff7945b+21ad69e7e1,gfbcc870c63+9a11dc8c8f
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. | |
Associations (CcdImageList imageList, double epoch=0) | |
Create an Associations object from a pre-built list of ccdImages. | |
Associations (Associations const &)=delete | |
No moves or copies: jointcal only ever needs one Associations object. | |
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. | |
size_t | getMaxMeasuredStars () const |
The number of MeasuredStars at the start of fitting, before any outliers are removed. | |
void | createCcdImage (afw::table::SourceCatalog &catalog, const std::shared_ptr< lsst::afw::geom::SkyWcs > &wcs, const std::shared_ptr< lsst::afw::image::VisitInfo > &visitInfo, const lsst::geom::Box2I &bbox, const std::string &filter, const std::shared_ptr< afw::image::PhotoCalib > &photoCalib, const std::shared_ptr< afw::cameraGeom::Detector > &detector, int visit, int ccd, const lsst::jointcal::JointcalControl &control) |
Create a ccdImage from an exposure catalog and metadata, and add it to the list. | |
void | addCcdImage (std::shared_ptr< CcdImage > const &ccdImage) |
Add a pre-constructed ccdImage to the ccdImageList. | |
void | associateCatalogs (double matchCutInArcsec=0, bool useFittedList=false, bool enlargeFittedList=true) |
incrementaly builds a merged catalog of all image catalogs | |
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. | |
void | deprojectFittedStars () |
Sends back the fitted stars coordinates on the sky FittedStarsList::inTangentPlaneCoordinates keeps track of that. | |
void | prepareFittedStars (int minMeasurements) |
Prepare the fittedStar list by making quality cuts and normalizing measurements. | |
void | cleanFittedStars () |
Remove FittedStars that have no measured stars; this can happen after outlier rejection. | |
CcdImageList const & | getCcdImageList () const |
unsigned | getNFilters () const |
Number of different bands in the input image list. Not implemented so far. | |
lsst::sphgeom::Circle | computeBoundingCircle () const |
Return the bounding circle in on-sky (RA, Dec) coordinates containing all CcdImages. | |
int | nCcdImagesValidForFit () const |
return the number of CcdImages with non-empty catalogs to-be-fit. | |
size_t | nFittedStarsWithAssociatedRefStar () const |
Return the number of fittedStars that have an associated refStar. | |
void | setCommonTangentPoint (lsst::geom::Point2D const &commonTangentPoint) |
Shared tangent point for all ccdImages (decimal degrees). | |
Point | getCommonTangentPoint () const |
Shared tangent point for all ccdImages (decimal degrees). | |
double | getEpoch () const |
Common epoch of all of the ccdImages as a Julian Epoch Year (e.g. | |
void | setEpoch (double epoch) |
Common epoch of all of the ccdImages as a Julian Epoch Year (e.g. | |
Public Attributes | |
CcdImageList | ccdImageList |
RefStarList | refStarList |
FittedStarList | fittedStarList |
The class that implements the relations between MeasuredStar and FittedStar.
Definition at line 55 of file Associations.h.
|
inline |
Source selection is performed in python, so Associations' constructor only initializes a couple of variables.
Definition at line 70 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 84 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 146 of file Associations.h.
void lsst::jointcal::Associations::associateCatalogs | ( | double | matchCutInArcsec = 0, |
bool | useFittedList = false, | ||
bool | enlargeFittedList = true ) |
incrementaly builds a merged catalog of all image catalogs
Definition at line 120 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 424 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 204 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, |
const std::shared_ptr< lsst::afw::geom::SkyWcs > & | wcs, | ||
const std::shared_ptr< lsst::afw::image::VisitInfo > & | visitInfo, | ||
const lsst::geom::Box2I & | bbox, | ||
const std::string & | filter, | ||
const std::shared_ptr< afw::image::PhotoCalib > & | photoCalib, | ||
const std::shared_ptr< afw::cameraGeom::Detector > & | detector, | ||
int | visit, | ||
int | ccd, | ||
const lsst::jointcal::JointcalControl & | 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 454 of file Associations.cc.
|
inline |
Definition at line 64 of file Associations.h.
|
inline |
Definition at line 189 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 109 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 119 of file Associations.h.
|
inline |
The number of MeasuredStars at the start of fitting, before any outliers are removed.
Definition at line 113 of file Associations.h.
|
inline |
Number of different bands in the input image list. Not implemented so far.
Definition at line 192 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 468 of file Associations.cc.
size_t lsst::jointcal::Associations::nFittedStarsWithAssociatedRefStar | ( | ) | const |
Return the number of fittedStars that have an associated refStar.
Definition at line 474 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 337 of file Associations.cc.
|
inline |
Definition at line 63 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 120 of file Associations.h.
CcdImageList lsst::jointcal::Associations::ccdImageList |
Definition at line 57 of file Associations.h.
FittedStarList lsst::jointcal::Associations::fittedStarList |
Definition at line 59 of file Associations.h.
RefStarList lsst::jointcal::Associations::refStarList |
Definition at line 58 of file Associations.h.