2 #ifndef LSST_JOINTCAL_CCD_IMAGE_H 3 #define LSST_JOINTCAL_CCD_IMAGE_H 8 #include "lsst/afw/cameraGeom/Detector.h" 9 #include "lsst/afw/table/Source.h" 10 #include "lsst/afw/image/TanWcs.h" 11 #include "lsst/afw/image/PhotoCalib.h" 12 #include "lsst/afw/image/VisitInfo.h" 13 #include "lsst/afw/coord/Coord.h" 14 #include "lsst/daf/base/PropertySet.h" 15 #include "lsst/afw/geom/Box.h" 41 std::shared_ptr<BaseTanWcs> _readWcs;
42 std::shared_ptr<Gtransfo> _inverseReadWcs;
45 std::shared_ptr<Gtransfo> _CTP2TP;
46 std::shared_ptr<Gtransfo> _TP2CTP;
47 std::shared_ptr<Gtransfo> _pix2CommonTangentPlane;
48 std::shared_ptr<Gtransfo> _pix2TP;
50 std::shared_ptr<Gtransfo> _sky2TP;
56 lsst::afw::coord::IcrsCoord _boresightRaDec;
59 std::shared_ptr<afw::image::PhotoCalib> _photoCalib;
60 std::shared_ptr<afw::cameraGeom::Detector> _detector;
63 double _sineta, _coseta, _tgz;
65 double _lstObs, _hourAngle;
69 Point _commonTangentPoint;
71 void LoadCatalog(lsst::afw::table::SortedCatalogT<lsst::afw::table::SourceRecord>
const &Cat,
72 std::string
const &fluxField);
75 CcdImage(afw::table::SourceCatalog &record, std::shared_ptr<lsst::afw::image::TanWcs> wcs,
76 std::shared_ptr<lsst::afw::image::VisitInfo> visitInfo, afw::geom::Box2I
const &bbox,
77 std::string
const &filter, std::shared_ptr<afw::image::PhotoCalib> photoCalib,
78 std::shared_ptr<afw::cameraGeom::Detector> detector,
int visit,
int ccd,
79 std::string
const &fluxField);
88 std::string
getName()
const {
return _name; }
142 std::shared_ptr<afw::cameraGeom::Detector>
getDetector()
const {
return _detector; }
153 std::shared_ptr<afw::image::PhotoCalib>
getPhotoCalib()
const {
return _photoCalib; }
201 return hash<size_t>()(static_cast<size_t>(ccdImage.first) |
202 (
static_cast<size_t>(ccdImage.second) << 32));
207 #endif // LSST_JOINTCAL_CCD_IMAGE_H CcdImage(afw::table::SourceCatalog &record, std::shared_ptr< lsst::afw::image::TanWcs > wcs, std::shared_ptr< lsst::afw::image::VisitInfo > visitInfo, 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, std::string const &fluxField)
VisitIdType getVisit() const
returns visit ID
Gtransfo const * getInverseReadWCS() const
the inverse of the one above.
Gtransfo const * getCommonTangentPlane2TP() const
Gtransfo const * getSky2TP() const
double getCosEta() const
Parallactic angle.
std::string getName() const
Return the _name that identifies this ccdImage.
Gtransfo const * getPix2CommonTangentPlane() const
double getMjd() const
Julian Date.
CcdIdType getCcdId() const
returns ccd ID
Gtransfo const * getPix2TangentPlane() const
double getSinEta() const
Parallactic angle.
A list of MeasuredStar. They are usually filled in Associations::AddImage.
CcdImage & operator=(CcdImage const &)=delete
std::shared_ptr< afw::image::PhotoCalib > getPhotoCalib() const
Return the exposure's photometric calibration.
std::pair< VisitIdType, CcdIdType > CcdImageKey
For hashing a ccdImage: the pair of (visit, ccd) IDs should be unique to each ccdImage.
rectangle with sides parallel to axes.
MeasuredStarList & getCatalogForFit()
Gets the catalog to be used for fitting, which may have been cleaned-up.
Class for a simple mapping implementing a generic Gtransfo.
Gtransfo const * getTP2CommonTangentPlane() const
double getHourAngle() const
double getAirMass() const
Airmass.
double getTanZ() const
Parallactic angle.
Point getRefractionVector() const
MeasuredStarList const & getCatalogForFit() const
Gets the catalog to be used for fitting, which may have been cleaned-up.
a virtual (interface) class for geometric transformations.
std::string getFilter() const
return the CcdImage filter name
size_t operator()(lsst::jointcal::CcdImageKey const &ccdImage) const
Gtransfo const * readWCS() const
the wcs read in the header. NOT updated when fitting.
std::list< std::shared_ptr< CcdImage > > CcdImageList
CcdImageKey getHashKey() const
std::shared_ptr< afw::cameraGeom::Detector > getDetector() const
Handler of an actual image from a single CCD.
Point const & getCommonTangentPoint() const
Gets the common tangent point, shared between all ccdImages.
lsst::afw::coord::IcrsCoord getBoresightRaDec() const
Gets the boresight RA/Dec.
MeasuredStarList const & getWholeCatalog() const
Gets the as-read catalog.
void setCommonTangentPoint(Point const &commonTangentPoint)
Sets the common tangent point and computes necessary transforms.
Frame const & getImageFrame() const
Frame in pixels.