Class BaseTanWcs

Inheritance Relationships

Base Type

Derived Types

Class Documentation

class BaseTanWcs : public lsst::jointcal::AstrometryTransform

Subclassed by lsst::jointcal::TanPixelToRaDec, lsst::jointcal::TanSipPixelToRaDec

Public Functions

BaseTanWcs(AstrometryTransformLinear const &pixToTan, Point const &tangentPoint, const AstrometryTransformPolynomial *corrections = nullptr)
BaseTanWcs(const BaseTanWcs &original)
void operator=(const BaseTanWcs &original)
void apply(const double xIn, const double yIn, double &xOut, double &yOut) const

Transform pixels to ICRS RA, Dec in degrees.

Point getTangentPoint() const

Get the sky origin (CRVAL in FITS WCS terminology) in degrees.

AstrometryTransformLinear getLinPart() const

The Linear part (corresponding to CD’s and CRPIX’s)

const AstrometryTransformPolynomial *getCorr() const

Get a non-owning pointer to the correction transform polynomial.

void setCorrections(std::unique_ptr<AstrometryTransformPolynomial> corrections)

Assign the correction polynomial (what it means is left to derived classes)

Point getCrPix() const

Get the pixel origin of the WCS (CRPIX in FITS WCS terminology, but zero-based)

virtual AstrometryTransformPolynomial getPixelToTangentPlane() const = 0

Get a transform from pixels to tangent plane (degrees) This is a linear transform plus the effects of the correction

virtual void pixToTangentPlane(double xPixel, double yPixel, double &xTangentPlane, double &yTangentPlane) const = 0

Transform from pixels to tangent plane (degrees)

~BaseTanWcs()

Protected Attributes

AstrometryTransformLinear linPixelToTan
std::unique_ptr<AstrometryTransformPolynomial> corr
double ra0
double dec0
double cos0
double sin0