25 #ifndef LSST_JOINTCAL_ASSOCIATIONS_H 26 #define LSST_JOINTCAL_ASSOCIATIONS_H 82 : ccdImageList(imageList),
134 void associateCatalogs(
const double matchCutInArcsec = 0,
const bool useFittedList =
false,
135 const bool enlargeFittedList =
true);
151 std::string const &fluxField,
float refCoordinateErr,
bool rejectBadFluxes =
false);
161 double matchCutArcSec);
204 void selectFittedStars(
int minMeasurements);
212 void normalizeFittedStars()
const;
214 Point _commonTangentPoint;
219 #endif // LSST_JOINTCAL_ASSOCIATIONS_H This file declares a class for representing circular regions on the unit sphere.
unsigned getNFilters() const
Number of different bands in the input image list. Not implemented so far.
int nCcdImagesValidForFit() const
return the number of CcdImages with non-empty catalogs to-be-fit.
void collectRefStars(afw::table::SimpleCatalog &refCat, afw::geom::Angle matchCut, std::string const &fluxField, float refCoordinateErr, bool rejectBadFluxes=false)
Collect stars from an external reference catalog and associate them with fittedStars.
Point getCommonTangentPoint() const
can be used to project sidereal coordinates related to the image set on a plane.
CcdImageList ccdImageList
The class that implements the relations between MeasuredStar and FittedStar.
A class representing an angle.
void associateCatalogs(const double matchCutInArcsec=0, const bool useFittedList=false, const bool enlargeFittedList=true)
incrementaly builds a merged catalog of all image catalogs
table::Key< table::Array< std::uint8_t > > wcs
void prepareFittedStars(int minMeasurements)
Set the color field of FittedStar 's from a colored catalog.
size_t nFittedStarsWithAssociatedRefStar() const
Return the number of fittedStars that have an associated refStar.
A base class for image defects.
Custom catalog class for record/table subclasses that are guaranteed to have an ID, and should generally be sorted by that ID.
void computeCommonTangentPoint()
Sets a shared tangent point for all ccdImages, using the mean of the centers of all ccdImages...
A list of FittedStar s. Such a list is typically constructed by Associations.
table::Key< int > detector
void deprojectFittedStars()
Sends back the fitted stars coordinates on the sky FittedStarsList::inTangentPlaneCoordinates keeps t...
CcdImageList const & getCcdImageList() const
Circle is a circular region on the unit sphere that contains its boundary.
void setCommonTangentPoint(lsst::afw::geom::Point2D const &commonTangentPoint)
Sets a shared tangent point for all ccdImages.
void createCcdImage(afw::table::SourceCatalog &catalog, std::shared_ptr< lsst::afw::geom::SkyWcs > wcs, std::shared_ptr< lsst::afw::image::VisitInfo > visitInfo, lsst::afw::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.
Associations()
Source selection is performed in python, so Associations' constructor only initializes a couple of va...
Associations(CcdImageList const &imageList)
Create an Associations object from a pre-built list of ccdImages.
lsst::sphgeom::Circle computeBoundingCircle() const
Return the bounding circle in on-sky (RA, Dec) coordinates containing all CcdImages.
Associations & operator=(Associations const &)=delete
An integer coordinate rectangle.
void addCcdImage(std::shared_ptr< CcdImage > const ccdImage)
Add a pre-constructed ccdImage to the ccdImageList.
FittedStarList fittedStarList
size_t fittedStarListSize()