2 #ifndef LSST_JOINTCAL_ASSOCIATIONS_H
3 #define LSST_JOINTCAL_ASSOCIATIONS_H
9 #include "lsst/afw/table/Source.h"
10 #include "lsst/afw/image/TanWcs.h"
11 #include "lsst/afw/image/Calib.h"
12 #include "lsst/afw/image/VisitInfo.h"
13 #include "lsst/daf/base/PropertySet.h"
14 #include "lsst/afw/geom/Box.h"
22 #include "lsst/afw/table/SortedCatalog.h"
71 void addImage(lsst::afw::table::SortedCatalogT<lsst::afw::table::SourceRecord> &catalog,
72 std::shared_ptr<lsst::afw::image::TanWcs> wcs,
73 std::shared_ptr<lsst::afw::image::VisitInfo> visitInfo, lsst::afw::geom::Box2I
const &bbox,
74 std::string
const &filter, std::shared_ptr<lsst::afw::image::Calib> calib,
int visit,
75 int ccd, std::shared_ptr<lsst::jointcal::JointcalControl> control);
78 void associateCatalogs(
const double matchCutInArcsec = 0,
const bool useFittedList =
false,
79 const bool enlargeFittedList =
true);
88 void collectRefStars(lsst::afw::table::SortedCatalogT<lsst::afw::table::SimpleRecord> &refCat,
89 afw::geom::Angle matchCut, std::string
const &fluxField);
98 void setFittedStarColors(std::string
const &dicStarListName, std::string
const &color,
99 double matchCutArcSec);
121 return std::count_if(
123 [](std::shared_ptr<CcdImage>
const &item) {
return item->getCatalogForFit().size() > 0; });
127 void associateRefStars(
double matchCutInArcsec,
const Gtransfo *gtransfo);
134 #endif // LSST_JOINTCAL_ASSOCIATIONS_H
Point getCommonTangentPoint() const
can be used to project sidereal coordinates related to the image set on a plane.
void addImage(lsst::afw::table::SortedCatalogT< lsst::afw::table::SourceRecord > &catalog, std::shared_ptr< lsst::afw::image::TanWcs > wcs, std::shared_ptr< lsst::afw::image::VisitInfo > visitInfo, lsst::afw::geom::Box2I const &bbox, std::string const &filter, std::shared_ptr< lsst::afw::image::Calib > calib, int visit, int ccd, std::shared_ptr< lsst::jointcal::JointcalControl > control)
Create a ccdImage from an exposure catalog and metadata, and add it to the list.
CcdImageList ccdImageList
The class that implements the relations between MeasuredStar and FittedStar.
void associateCatalogs(const double matchCutInArcsec=0, const bool useFittedList=false, const bool enlargeFittedList=true)
incrementaly builds a merged catalog of all image catalogs
void selectFittedStars(int minMeasurements)
Set the color field of FittedStar 's from a colored catalog.
const CcdImageList & getCcdImageList() const
A list of FittedStar s. Such a list is typically constructed by Associations.
void deprojectFittedStars()
Sends back the fitted stars coordinates on the sky FittedStarsList::inTangentPlaneCoordinates keeps t...
unsigned NBands() const
Number of different bands in the input image list. Not implemented so far.
void setCommonTangentPoint(lsst::afw::geom::Point2D const &commonTangentPoint)
Sets a shared tangent point for all ccdImages.
a virtual (interface) class for geometric transformations.
const lsst::afw::geom::Box2D getRaDecBBox()
Associations()
Source selection is performed in python, so Associations' constructor only initializes a couple of va...
void collectRefStars(lsst::afw::table::SortedCatalogT< lsst::afw::table::SimpleRecord > &refCat, afw::geom::Angle matchCut, std::string const &fluxField)
Collect stars from an external reference catalog and associate them with fittedStars.
std::list< std::shared_ptr< CcdImage > > CcdImageList
Point _commonTangentPoint
int nCcdImagesValidForFit() const
return the number of CcdImages with non-empty catalogs to-be-fit.
FittedStarList fittedStarList
size_t fittedStarListSize()