Class TanPixelToRaDec

Inheritance Relationships

Base Type

Class Documentation

class TanPixelToRaDec : public lsst::jointcal::BaseTanWcs

The transformation that handles pixels to sideral transformations (Gnomonic, possibly with polynomial distortions).

Public Functions

TanPixelToRaDec(AstrometryTransformLinear const &pixToTan, Point const &tangentPoint, const AstrometryTransformPolynomial *corrections = nullptr)

pixToTan describes the transform from pix to tangent plane (degrees). TangentPoint in degrees. Corrections are applied between Lin and deprojection parts (as in Swarp).

AstrometryTransformPolynomial getPixelToTangentPlane() const

the transformation from pixels to tangent plane (degrees)

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

transforms from pixel space to tangent plane (degrees)

TanPixelToRaDec()
TanPixelToRaDec operator*(AstrometryTransformLinear const &right) const

composition with AstrometryTransformLinear

std::unique_ptr<AstrometryTransform> composeAndReduce(AstrometryTransformLinear const &right) const

Return a reduced composition of newTransform = this(right()), or nullptr if it cannot be reduced.

“Reduced” in this context means that they are capable of being merged into a single transform, for example, for two polynomials:

\[ f(x) = 1 + x^2, g(x) = -1 + 3x \]
we would have h = f.composeAndReduce(g) == 2 - 6x + 9x^2.

To be overloaded by derived classes if they can properly reduce the composition.

Return

The new reduced and composed AstrometryTransform, or nullptr if no such reduction is possible.

Parameters
  • right: The transform to apply first.

TanRaDecToPixel inverted() const

approximate inverse : it ignores corrections;

std::unique_ptr<AstrometryTransform> roughInverse(const Frame &region) const

Overload the “generic routine” (available for all AstrometryTransform types.

std::unique_ptr<AstrometryTransform> inverseTransform(const double precision, const Frame &region) const

Inverse transform: returns a TanRaDecToPixel if there are no corrections, or the iterative solver if there are.

std::unique_ptr<AstrometryTransform> clone() const

returns a copy (allocated by new) of the transformation.

void dump(std::ostream &stream) const

dumps the transform coefficients to stream.

double fit(StarMatchList const &starMatchList)

Not implemented yet, because we do it otherwise.