|
| | DistortedTanWcs (TanWcs const &tanWcs, Transform const &pixelsToTanPixels) |
| | Construct a DistortedTanWcs. More...
|
| |
| virtual | ~DistortedTanWcs () |
| |
| virtual std::shared_ptr< Wcs > | clone () const |
| | Polymorphic deep-copy. More...
|
| |
| bool | operator== (Wcs const &other) const |
| |
| virtual void | flipImage (int flipLR, int flipTB, lsst::afw::geom::Extent2I dimensions) const |
| |
| virtual void | rotateImageBy90 (int nQuarter, lsst::afw::geom::Extent2I dimensions) const |
| |
| virtual void | shiftReferencePixel (double dx, double dy) |
| |
| bool | isPersistable () const |
| | Whether the Wcs is persistable using afw::table::io archives. More...
|
| |
| bool | hasDistortion () const |
| |
| std::shared_ptr< Wcs > | getTanWcs () const |
| | return the pure tan WCS component More...
|
| |
| std::shared_ptr< Transform > | getPixelToTanPixel () const |
| | return the PIXELS to TAN_PIXELS Transform More...
|
| |
| geom::Angle | pixelScale () const |
| | Returns the pixel scale, in Angle/pixel. More...
|
| |
| geom::Point2D | distortPixel (geom::Point2D const &pixel) const |
| | Applies the SIP AP and BP distortion (used in the skyToPixel direction) More...
|
| |
| geom::Point2D | undistortPixel (geom::Point2D const &pixel) const |
| | Applies the SIP A and B un-distortion (used in the pixelToSky direction) More...
|
| |
| std::shared_ptr< daf::base::PropertyList > | getFitsMetadata () const override |
| | Return a PropertyList containing FITS header keywords that can be used to save the Wcs.x. More...
|
| |
| void | setDistortionMatrices (Eigen::MatrixXd const &sipA, Eigen::MatrixXd const &sipB, Eigen::MatrixXd const &sipAp, Eigen::MatrixXd const &sipBp) |
| | Set the distortion matrices. More...
|
| |
| Eigen::MatrixXd const & | getSipA () const |
| | Return the SIP forward distortion matrix for the 1st intermediate world coordinate system axis. More...
|
| |
| Eigen::MatrixXd const & | getSipB () const |
| | Return the SIP forward distortion matrix for the 2st intermediate world coordinate system axis. More...
|
| |
| Eigen::MatrixXd const & | getSipAp () const |
| | Return the SIP reverse distortion matrix for x pixel coordinates. More...
|
| |
| Eigen::MatrixXd const & | getSipBp () const |
| | Return the SIP reverse distortion matrix for y pixel coordinates. More...
|
| |
| bool | operator!= (Wcs const &other) const |
| |
| std::shared_ptr< lsst::afw::coord::Coord > | getSkyOrigin () const |
| | Returns CRVAL. This need not be the centre of the image. More...
|
| |
| lsst::afw::geom::Point2D | getPixelOrigin () const |
| | Returns CRPIX (corrected to LSST convention). More...
|
| |
| Eigen::Matrix2d | getCDMatrix () const |
| | Returns the CD matrix. More...
|
| |
| bool | isFlipped () const |
| | Does the Wcs follow the convention of North=Up, East=Left? More...
|
| |
| double | pixArea (lsst::afw::geom::Point2D pix00) const |
| | Sky area covered by a pixel at position pix00 in units of square degrees. More...
|
| |
| std::shared_ptr< coord::Coord > | pixelToSky (double pix1, double pix2) const |
| | Convert from pixel position to sky coordinates (e.g. More...
|
| |
| std::shared_ptr< coord::Coord > | pixelToSky (lsst::afw::geom::Point2D const &pixel) const |
| | Convert from pixel position to sky coordinates (e.g. More...
|
| |
| void | pixelToSky (double pixel1, double pixel2, geom::Angle &sky1, geom::Angle &sky2) const |
| | Convert from pixel position to sky coordinates (e.g. More...
|
| |
| geom::Point2D | skyToPixel (geom::Angle sky1, geom::Angle sky2) const |
| | Convert from sky coordinates (e.g. More...
|
| |
| geom::Point2D | skyToPixel (coord::Coord const &coord) const |
| | Convert from sky coordinates (e.g. RA/dec) to pixel positions. More...
|
| |
| geom::Point2D | skyToIntermediateWorldCoord (coord::Coord const &coord) const |
| | Convert from sky coordinates (e.g. More...
|
| |
| afw::coord::CoordSystem | getCoordSystem () const |
| |
| double | getEquinox () const |
| |
| bool | isSameSkySystem (Wcs const &wcs) const |
| | Return true if a WCS has the same coordinate system and equinox as this one. More...
|
| |
| geom::LinearTransform | getLinearTransform () const |
| | Return the linear part of the Wcs, the CD matrix in FITS-speak, as an AffineTransform. More...
|
| |
| geom::AffineTransform | linearizePixelToSky (coord::Coord const &coord, geom::AngleUnit skyUnit=geom::degrees) const |
| | Return the local linear approximation to Wcs::pixelToSky at a point given in sky coordinates. More...
|
| |
| geom::AffineTransform | linearizePixelToSky (geom::Point2D const &pix, geom::AngleUnit skyUnit=geom::degrees) const |
| | Return the local linear approximation to Wcs::pixelToSky at a point given in pixel coordinates. More...
|
| |
| geom::AffineTransform | linearizeSkyToPixel (coord::Coord const &coord, geom::AngleUnit skyUnit=geom::degrees) const |
| | Return the local linear approximation to Wcs::skyToPixel at a point given in sky coordinates. More...
|
| |
| geom::AffineTransform | linearizeSkyToPixel (geom::Point2D const &pix, geom::AngleUnit skyUnit=geom::degrees) const |
| | Return the local linear approximation to Wcs::skyToPixel at a point given in pixel coordinates. More...
|
| |
| virtual void | shiftReferencePixel (geom::Extent2D const &d) |
| |
| void | serialize (Archive &, unsigned int const) |
| |
| std::string | repr () const |
| |
| void | markPersistent (void) |
| |
| memId | getId () const |
| |
| void | writeFits (std::string const &fileName, std::string const &mode="w") const |
| | Write the object to a regular FITS file. More...
|
| |
| void | writeFits (fits::MemFileManager &manager, std::string const &mode="w") const |
| | Write the object to a FITS image in memory. More...
|
| |
| void | writeFits (fits::Fits &fitsfile) const |
| | Write the object to an already-open FITS object. More...
|
| |
|
| static void | decodeSipHeader (daf::base::PropertySet const &fitsMetadata, std::string const &which, Eigen::MatrixXd &m) |
| | Decode the SIP headers for a given matrix, if present. More...
|
| |
| static std::shared_ptr< TanWcs > | readFits (fits::Fits &fitsfile) |
| | Read an object from an already open FITS object. More...
|
| |
| static std::shared_ptr< TanWcs > | readFits (std::string const &fileName, int hdu=INT_MIN) |
| | Read an object from a regular FITS file. More...
|
| |
| static std::shared_ptr< TanWcs > | readFits (fits::MemFileManager &manager, int hdu=INT_MIN) |
| | Read an object from a FITS file in memory. More...
|
| |
| static std::shared_ptr< Wcs > | readFits (fits::Fits &fitsfile) |
| | Read an object from an already open FITS object. More...
|
| |
| static std::shared_ptr< Wcs > | readFits (std::string const &fileName, int hdu=INT_MIN) |
| | Read an object from a regular FITS file. More...
|
| |
| static std::shared_ptr< Wcs > | readFits (fits::MemFileManager &manager, int hdu=INT_MIN) |
| | Read an object from a FITS file in memory. More...
|
| |
| static bool | hasBeenCorrupted () |
| |
| static memId | getNextMemId () |
| |
| static int | init () |
| |
| static int | census (int, memId startingMemId=0) |
| |
| static void | census (std::ostream &stream, memId startingMemId=0) |
| |
| static const std::vector< const Citizen *> * | census () |
| |
| static int | census (int, memId startingMemId=0) |
| |
| static void | census (std::ostream &stream, memId startingMemId=0) |
| |
| static const std::vector< const Citizen *> * | census () |
| |
| static memId | setNewCallbackId (memId id) |
| |
| static memId | setNewCallbackId (memId id) |
| |
| static memId | setDeleteCallbackId (memId id) |
| |
| static memId | setDeleteCallbackId (memId id) |
| |
| static memNewCallback | setNewCallback (memNewCallback func) |
| |
| static memCallback | setDeleteCallback (memCallback func) |
| |
| static memCallback | setCorruptionCallback (memCallback func) |
| |
|
| virtual void | pixelToSkyImpl (double pixel1, double pixel2, geom::Angle skyTmp[2]) const |
| | Worker routine for skyToPixel. More...
|
| |
| virtual geom::Point2D | skyToPixelImpl (geom::Angle sky1, geom::Angle sky2) const |
| | Worker routine for pixelToSky. More...
|
| |
| bool | _mayBePersistable () const |
| | Perform basic checks on whether *this might be persistable. More...
|
| |
| virtual std::string | getPythonModule () const |
| | Return the fully-qualified Python module that should be imported to guarantee that its factory is registered. More...
|
| |
| bool | _isIcrs () const |
| |
| std::shared_ptr< afw::coord::Coord > | makeCorrectCoord (geom::Angle sky0, geom::Angle sky1) const |
| | Given a sky position, use the values stored in ctype and radesys to return the correct sub-class of Coord. More...
|
| |
| std::shared_ptr< afw::coord::Coord > | convertCoordToSky (coord::Coord const &coord) const |
| | Given a Coord (as a shared pointer), return the sky position in the correct coordinate system for this Wcs. More...
|
| |
| virtual geom::AffineTransform | linearizePixelToSkyInternal (geom::Point2D const &pix, coord::Coord const &coord, geom::AngleUnit skyUnit) const |
| | Implementation for the overloaded public linearizePixelToSky methods, requiring both a pixel coordinate and the corresponding sky coordinate. More...
|
| |
| virtual geom::AffineTransform | linearizeSkyToPixelInternal (geom::Point2D const &pix, coord::Coord const &coord, geom::AngleUnit skyUnit) const |
| | Implementation for the overloaded public linearizeSkyToPixel methods, requiring both a pixel coordinate and the corresponding sky coordinate. More...
|
| |
| void | initWcsLibFromFits (std::shared_ptr< lsst::daf::base::PropertySet const > const &fitsMetadata) |
| | Parse a fits header, extract the relevant metadata and create a Wcs object. More...
|
| |
| void | _initWcs () |
| | Set some internal variables that we need to refer to. More...
|
| |
| void | _setWcslibParams () |
| |
Combination of a TAN WCS and a distortion model.
This object represents a common case for raw or minimally processed data; we have estimates for:
- a pure TAN WCS based on telescope pointing
- a distortion model which converts between PIXELS and TAN_PIXELS coordinates, based on an optical model This object combines the two in a way that makes it easy to estimate sky<->pixel coordinates.
- Warning
- This is not a full-fledged WCS class in several respects:
- It has no standard FITS WCS representation.
- It does not support persistence or unpersistence from FITS. The usual use case is to represent the WCS for an exposure that has a plain TAN WCS and a distortion model in its detector; As such, the data is present in two disparate places, making persistence difficult.
- It cannot be flipped or rotated. This is probably fixable, but does not seem worth the work.
Definition at line 49 of file DistortedTanWcs.h.
Return the local linear approximation to Wcs::pixelToSky at a point given in sky coordinates.
The local linear approximation is defined such the following is true (ignoring floating-point errors):
wcs.linearizePixelToSky(sky, skyUnit)(wcs.skyToPixel(sky)) == sky.getPosition(skyUnit);
(recall that AffineTransform::operator() is matrix multiplication with the augmented point (x,y,1)).
This is currently implemented as a numerical derivative, but we should specialise the Wcs class (or rather its implementation) to handle "simple" cases such as TAN-SIP analytically
- Parameters
-
| [in] | coord | Position in sky coordinates where transform is desired. |
| [in] | skyUnit | Units to use for sky coordinates; units of matrix elements will be skyUnits/pixel. |
Definition at line 863 of file Wcs.cc.
Return the local linear approximation to Wcs::pixelToSky at a point given in pixel coordinates.
The local linear approximation is defined such the following is true (ignoring floating-point errors):
wcs.linearizePixelToSky(pix, skyUnit)(pix) == wcs.pixelToSky(pix).getPosition(skyUnit)
(recall that AffineTransform::operator() is matrix multiplication with the augmented point (x,y,1)).
This is currently implemented as a numerical derivative, but we should specialise the Wcs class (or rather its implementation) to handle "simple" cases such as TAN-SIP analytically
- Parameters
-
| [in] | pix | Position in pixel coordinates where transform is desired. |
| [in] | skyUnit | Units to use for sky coordinates; units of matrix elements will be skyUnits/pixel. |
Definition at line 866 of file Wcs.cc.
Return the local linear approximation to Wcs::skyToPixel at a point given in sky coordinates.
The local linear approximation is defined such the following is true (ignoring floating-point errors):
wcs.linearizeSkyToPixel(sky, skyUnit)(sky.getPosition(skyUnit)) == wcs.skyToPixel(sky)
(recall that AffineTransform::operator() is matrix multiplication with the augmented point (x,y,1)).
This is currently implemented as a numerical derivative, but we should specialise the Wcs class (or rather its implementation) to handle "simple" cases such as TAN-SIP analytically
- Parameters
-
| [in] | coord | Position in sky coordinates where transform is desired. |
| [in] | skyUnit | Units to use for sky coordinates; units of matrix elements will be pixels/skyUnit. |
Definition at line 897 of file Wcs.cc.
Return the local linear approximation to Wcs::skyToPixel at a point given in pixel coordinates.
The local linear approximation is defined such the following is true (ignoring floating-point errors):
wcs.linearizeSkyToPixel(pix, skyUnit)(wcs.pixelToSky(pix).getPosition(skyUnit)) == pix
(recall that AffineTransform::operator() is matrix multiplication with the augmented point (x,y,1)).
This is currently implemented as a numerical derivative, but we should specialise the Wcs class (or rather its implementation) to handle "simple" cases such as TAN-SIP analytically
- Parameters
-
| [in] | pix | Position in pixel coordinates where transform is desired. |
| [in] | skyUnit | Units to use for sky coordinates; units of matrix elements will be pixels/skyUnit. |
Definition at line 901 of file Wcs.cc.