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