2 #ifndef LSST_JOINTCAL_CCD_IMAGE_H
3 #define LSST_JOINTCAL_CCD_IMAGE_H
8 #include "lsst/afw/table/Source.h"
9 #include "lsst/afw/image/TanWcs.h"
10 #include "lsst/afw/image/Calib.h"
11 #include "lsst/afw/image/VisitInfo.h"
12 #include "lsst/afw/coord/Coord.h"
13 #include "lsst/daf/base/PropertySet.h"
14 #include "lsst/afw/geom/Box.h"
38 std::shared_ptr<BaseTanWcs> _readWcs;
39 std::shared_ptr<Gtransfo> _inverseReadWcs;
42 std::shared_ptr<Gtransfo> _CTP2TP;
43 std::shared_ptr<Gtransfo> _TP2CTP;
44 std::shared_ptr<Gtransfo> _pix2CommonTangentPlane;
45 std::shared_ptr<Gtransfo> _pix2TP;
47 std::shared_ptr<Gtransfo> _sky2TP;
53 lsst::afw::coord::IcrsCoord _boresightRaDec;
56 PTR(lsst::afw::image::Calib) _calib;
59 double _sineta, _coseta, _tgz;
61 double _lstObs, _hourAngle;
65 Point _commonTangentPoint;
67 void LoadCatalog(
const lsst::afw::table::SortedCatalogT<lsst::afw::table::SourceRecord> &Cat,
68 const std::string &fluxField);
71 CcdImage(lsst::afw::table::SortedCatalogT<lsst::afw::table::SourceRecord> &record,
72 const PTR(lsst::afw::image::TanWcs) wcs,
const PTR(lsst::afw::image::VisitInfo) visitInfo,
73 const lsst::afw::geom::Box2I &bbox,
const std::string &filter,
74 const PTR(lsst::afw::image::Calib) calib,
const int &visit,
const int &ccd,
75 const std::string &fluxField);
78 std::string
getName()
const {
return _name; }
139 PTR(lsst::afw::image::Calib)
getCalib() {
return _calib; }
179 #endif // LSST_JOINTCAL_CCD_IMAGE_H
Point getRefractionVector() const
double getMjd() const
Julian Date.
Point const & getCommonTangentPoint() const
Gets the common tangent point, shared between all ccdImages.
void setCommonTangentPoint(const Point &commonTangentPoint)
Sets the common tangent point and computes necessary transforms.
const Gtransfo * readWCS() const
the wcs read in the header. NOT updated when fitting.
const Gtransfo * getCommonTangentPlane2TP() const
lsst::afw::coord::IcrsCoord getBoresightRaDec()
Gets the boresight RA/Dec.
const Gtransfo * getPix2TangentPlane() const
const Gtransfo * getPix2CommonTangentPlane() const
double getCosEta() const
Parallactic angle.
const Gtransfo * getSky2TP() const
std::string getFilter() const
return the CcdImage filter name
double getHourAngle() const
CcdImage(lsst::afw::table::SortedCatalogT< lsst::afw::table::SourceRecord > &record, const boost::shared_ptr< lsst::afw::image::TanWcs > wcs, const boost::shared_ptr< lsst::afw::image::VisitInfo > visitInfo, const lsst::afw::geom::Box2I &bbox, const std::string &filter, const boost::shared_ptr< lsst::afw::image::Calib > calib, const int &visit, const int &ccd, const std::string &fluxField)
A list of MeasuredStar. They are usually filled in Associations::AddImage.
double getTanZ() const
Parallactic angle.
double getAirMass() const
Airmass.
double getSinEta() const
Parallactic angle.
rectangle with sides parallel to axes.
MeasuredStarList & getCatalogForFit()
Gets the catalog to be used for fitting, which may have been cleaned-up.
const Frame & getImageFrame() const
Frame in pixels.
const MeasuredStarList & getCatalogForFit() const
Gets the catalog to be used for fitting, which may have been cleaned-up.
const Gtransfo * getInverseReadWCS() const
the inverse of the one above.
a virtual (interface) class for geometric transformations.
std::list< std::shared_ptr< CcdImage > > CcdImageList
const Gtransfo * getTP2CommonTangentPlane() const
Handler of an actual image from a single CCD.
const MeasuredStarList & getWholeCatalog() const
Gets the as-read catalog.
std::string getName() const
Return the _name that identifies this ccdImage.
VisitIdType getVisit() const
returns visit ID
int getCcdId() const
returns ccd ID
boost::shared_ptr< lsst::afw::image::Calib > getCalib()
Return the exposure's photometric calibration.