Class CcdImage

Class Documentation

class CcdImage

Handler of an actual image from a single CCD. NOTE: could possibly be replaced with a subclass of afw.image.Exposure?

Unnamed Group

MeasuredStarList const &getCatalogForFit() const

Gets the catalog to be used for fitting, which may have been cleaned-up.

Return

The catalog for fitting.

MeasuredStarList &getCatalogForFit()

Public Functions

CcdImage(afw::table::SourceCatalog &record, std::shared_ptr<lsst::afw::geom::SkyWcs> wcs, std::shared_ptr<lsst::afw::image::VisitInfo> visitInfo, lsst::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)
CcdImage(CcdImage const&)

No move or copy: each CCD image is unique to that ccd+visit, and Associations holds all CcdImages.

CcdImage(CcdImage&&)
CcdImage &operator=(CcdImage const&)
CcdImage &operator=(CcdImage&&)
std::string getName() const

Return the _name that identifies this ccdImage.

MeasuredStarList const &getWholeCatalog() const

Gets the as-read catalog.

Return

The whole catalog.

void resetCatalogForFit()

Clear the catalog for fitting and set it to a copy of the whole catalog.

std::pair<int, int> countStars() const

Count the number of valid measured and reference stars that fall within this ccdImage.

Measured stars are counted if they are valid. Reference stars are counted if a measured star (valid or not) has a fittedStar that has an associated refStar.

Return

Number of (measured, reference) stars in the image.

void setCommonTangentPoint(Point const &commonTangentPoint)

Sets the common tangent point and computes necessary transforms.

Parameters
  • [in] commonTangentPoint: The common tangent point of all ccdImages (decimal degrees).

jointcal::Point const &getCommonTangentPoint() const

Gets the common tangent point, shared between all ccdImages.

Return

The common tangent point of all ccdImages (decimal degrees).

std::shared_ptr<AstrometryTransform> const getPixelToCommonTangentPlane() const
std::shared_ptr<AstrometryTransform> const getCommonTangentPlaneToTangentPlane() const
std::shared_ptr<AstrometryTransform> const getTangentPlaneToCommonTangentPlane() const
std::shared_ptr<AstrometryTransform> const getPixelToTangentPlane() const
std::shared_ptr<AstrometryTransform> const getSkyToTangentPlane() const
CcdIdType getCcdId() const

returns ccd ID

VisitIdType getVisit() const

returns visit ID

std::shared_ptr<afw::cameraGeom::Detector> getDetector() const
CcdImageKey getHashKey() const
double getAirMass() const

Airmass.

double getMjd() const

Julian Date.

std::shared_ptr<afw::image::PhotoCalib> getPhotoCalib() const

Return the exposure’s photometric calibration.

lsst::geom::SpherePoint getBoresightRaDec() const

Gets the boresight RA/Dec.

double getHourAngle() const
double getLstObs() const
double getSinEta() const

Parallactic angle.

double getCosEta() const

Parallactic angle.

double getTanZ() const

Parallactic angle.

Point getRefractionVector() const
std::string getFilter() const

return the CcdImage filter name

std::shared_ptr<AstrometryTransform> const getReadWcs() const

the wcs read in the header. NOT updated when fitting.

Frame const &getImageFrame() const

Frame in pixels.