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
|
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.