LSST Applications g070148d5b3+33e5256705,g0d53e28543+25c8b88941,g0da5cf3356+2dd1178308,g1081da9e2a+62d12e78cb,g17e5ecfddb+7e422d6136,g1c76d35bf8+ede3a706f7,g295839609d+225697d880,g2e2c1a68ba+cc1f6f037e,g2ffcdf413f+853cd4dcde,g38293774b4+62d12e78cb,g3b44f30a73+d953f1ac34,g48ccf36440+885b902d19,g4b2f1765b6+7dedbde6d2,g5320a0a9f6+0c5d6105b6,g56b687f8c9+ede3a706f7,g5c4744a4d9+ef6ac23297,g5ffd174ac0+0c5d6105b6,g6075d09f38+66af417445,g667d525e37+2ced63db88,g670421136f+2ced63db88,g71f27ac40c+2ced63db88,g774830318a+463cbe8d1f,g7876bc68e5+1d137996f1,g7985c39107+62d12e78cb,g7fdac2220c+0fd8241c05,g96f01af41f+368e6903a7,g9ca82378b8+2ced63db88,g9d27549199+ef6ac23297,gabe93b2c52+e3573e3735,gb065e2a02a+3dfbe639da,gbc3249ced9+0c5d6105b6,gbec6a3398f+0c5d6105b6,gc9534b9d65+35b9f25267,gd01420fc67+0c5d6105b6,geee7ff78d7+a14128c129,gf63283c776+ede3a706f7,gfed783d017+0c5d6105b6,w.2022.47
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 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, 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. More... | |
void | addCcdImage (std::shared_ptr< CcdImage > const &ccdImage) |
Add a pre-constructed ccdImage to the ccdImageList. More... | |
void | associateCatalogs (double matchCutInArcsec=0, bool useFittedList=false, 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 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.