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/PhotoCalib.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 std::shared_ptr<afw::image::PhotoCalib> _photoCalib;
59 double _sineta, _coseta, _tgz;
61 double _lstObs, _hourAngle;
65 Point _commonTangentPoint;
67 void LoadCatalog(lsst::afw::table::SortedCatalogT<lsst::afw::table::SourceRecord>
const &Cat,
68 std::string
const &fluxField);
71 CcdImage(afw::table::SourceCatalog &record, std::shared_ptr<lsst::afw::image::TanWcs> wcs,
72 std::shared_ptr<lsst::afw::image::VisitInfo> visitInfo, afw::geom::Box2I
const &bbox,
73 std::string
const &filter, std::shared_ptr<afw::image::PhotoCalib> photoCalib,
int visit,
74 int ccd, std::string
const &fluxField);
83 std::string
getName()
const {
return _name; }
144 std::shared_ptr<afw::image::PhotoCalib>
getPhotoCalib() {
return _photoCalib; }
181 #endif // LSST_JOINTCAL_CCD_IMAGE_H
Point getRefractionVector() const
double getMjd() const
Julian Date.
Gtransfo const * getCommonTangentPlane2TP() const
Point const & getCommonTangentPoint() const
Gets the common tangent point, shared between all ccdImages.
Gtransfo const * getTP2CommonTangentPlane() const
lsst::afw::coord::IcrsCoord getBoresightRaDec()
Gets the boresight RA/Dec.
Gtransfo const * getSky2TP() const
double getCosEta() const
Parallactic angle.
MeasuredStarList const & getWholeCatalog() const
Gets the as-read catalog.
std::string getFilter() const
return the CcdImage filter name
MeasuredStarList const & getCatalogForFit() const
Gets the catalog to be used for fitting, which may have been cleaned-up.
Gtransfo const * getPix2CommonTangentPlane() const
double getHourAngle() const
A list of MeasuredStar. They are usually filled in Associations::AddImage.
CcdImage & operator=(CcdImage const &)=delete
Gtransfo const * getPix2TangentPlane() const
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.
Gtransfo const * readWCS() const
the wcs read in the header. NOT updated when fitting.
std::shared_ptr< afw::image::PhotoCalib > getPhotoCalib()
Return the exposure's photometric calibration.
a virtual (interface) class for geometric transformations.
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, int visit, int ccd, std::string const &fluxField)
std::list< std::shared_ptr< CcdImage > > CcdImageList
Gtransfo const * getInverseReadWCS() const
the inverse of the one above.
Handler of an actual image from a single CCD.
Frame const & getImageFrame() const
Frame in pixels.
std::string getName() const
Return the _name that identifies this ccdImage.
void setCommonTangentPoint(Point const &commonTangentPoint)
Sets the common tangent point and computes necessary transforms.
VisitIdType getVisit() const
returns visit ID
int getCcdId() const
returns ccd ID