A WCS that transform pixels to ICRS RA/Dec using the LSST standard for pixels.
More...
|
| | SkyWcs (SkyWcs const &)=default |
| |
| | SkyWcs (SkyWcs &&)=default |
| |
| SkyWcs & | operator= (SkyWcs const &)=delete |
| |
| SkyWcs & | operator= (SkyWcs &&)=delete |
| |
| | SkyWcs (Point2D const &crpix, coord::IcrsCoord const &crval, Eigen::Matrix2d const &cdMatrix) |
| | Construct a pure tangent SkyWcs. More...
|
| |
| | SkyWcs (daf::base::PropertyList &metadata, bool strip=true) |
| | Construct a WCS from FITS keywords. More...
|
| |
| | SkyWcs (ast::FrameSet const &frameSet) |
| | Construct a WCS from an ast::FrameSet. More...
|
| |
| | ~SkyWcs () |
| |
| Angle | getPixelScale (Point2D const &pixel) const |
| | Get the pixel scale at the specified pixel position. More...
|
| |
| Angle | getPixelScale () const |
| | Get the pixel scale at the pixel origin. More...
|
| |
| Point2D | getPixelOrigin () const |
| | Get CRPIX, the pixel origin, using the LSST convention. More...
|
| |
| coord::IcrsCoord | getSkyOrigin () const |
| | Get CRVAL, the sky origin or celestial fiducial point. More...
|
| |
| Eigen::Matrix2d | getCdMatrix (Point2D const &pixel) const |
| | Get the 2x2 CD matrix at the specified pixel position. More...
|
| |
| Eigen::Matrix2d | getCdMatrix () const |
| | Get the 2x2 CD matrix at the pixel origin. More...
|
| |
| SkyWcs | getTanWcs (Point2D const &pixel) const |
| | Get a local TAN WCS approximation to this WCS at the specified pixel position. More...
|
| |
| SkyWcs | copyAtShiftedPixelOrigin (Extent2D const &shift) const |
| | Return a copy of this SkyWcs with the pixel origin by the specified amount. More...
|
| |
| void | writeStream (std::ostream &os) const override |
| | Serialize this SkyWcs to an output stream. More...
|
| |
| std::string | writeString () const override |
| | Serialize this SkyWcs to a string, using the same format as writeStream. More...
|
| |
| bool | hasForward () const |
| | Test if this method has a forward transform. More...
|
| |
| bool | hasInverse () const |
| | Test if this method has an inverse transform. More...
|
| |
| FromEndpoint | getFromEndpoint () const |
| | Get the "from" endpoint. More...
|
| |
| std::shared_ptr< const ast::FrameSet > | getFrameSet () const |
| | Get the contained frameset. More...
|
| |
| ToEndpoint | getToEndpoint () const |
| | Get the "to" endpoint. More...
|
| |
| ToPoint | applyForward (FromPoint const &point) const |
| | Transform one point in the forward direction ("from" to "to") More...
|
| |
| ToArray | applyForward (FromArray const &array) const |
| | Transform an array of points in the forward direction ("from" to "to") More...
|
| |
| FromPoint | applyInverse (ToPoint const &point) const |
| | Transform one point in the inverse direction ("to" to "from") More...
|
| |
| FromArray | applyInverse (ToArray const &array) const |
| | Transform an array of points in the inverse direction ("to" to "from") More...
|
| |
| Transform< ToEndpoint, FromEndpoint > | getInverse () const |
| | The inverse of this Transform. More...
|
| |
| Eigen::MatrixXd | getJacobian (FromPoint const &x) const |
| | The Jacobian matrix of this Transform. More...
|
| |
| template<class NextToEndpoint > |
| Transform< FromEndpoint, NextToEndpoint > | then (Transform< ToEndpoint, NextToEndpoint > const &next) const |
| | Concatenate two Transforms. More...
|
| |
|
| std::pair< Angle, Angle > | pixelToSky (double x, double y) const |
| | Compute sky position(s) from pixel position(s) More...
|
| |
| coord::IcrsCoord | pixelToSky (Point2D const &pixel) const |
| | Compute sky position(s) from pixel position(s) More...
|
| |
| std::vector< coord::IcrsCoord > | pixelToSky (std::vector< Point2D > const &pixels) const |
| | Compute sky position(s) from pixel position(s) More...
|
| |
|
| std::pair< double, double > | skyToPixel (Angle const &ra, Angle const &dec) const |
| | Compute pixel position(s) from sky position(s) More...
|
| |
| Point2D | skyToPixel (coord::IcrsCoord const &sky) const |
| | Compute pixel position(s) from sky position(s) More...
|
| |
| std::vector< Point2D > | skyToPixel (std::vector< coord::IcrsCoord > const &sky) const |
| | Compute pixel position(s) from sky position(s) More...
|
| |
A WCS that transform pixels to ICRS RA/Dec using the LSST standard for pixels.
The LSST standard for pixel position is: 0,0 is the center of the lower left pixel of the parent image (unlike FITS standard, which uses 1,1 as the center of the lower left pixel of the subimage).
The forward direction transforms from pixels (actual, if known, else nominal) to ICRS RA, Dec.
The contained ast::FrameSet must have the following frames. All are of class ast::Frame except the sky frame. The domain is listed first, if set:
- ACTUAL_PIXEL0 (optional): actual pixel position using the LSST standard; The 0 is to remind users that this frame is 0-based. Actual pixels include effects such as "tree ring" distortions and electrical effects at the edge of CCDs. This frame should only be provided if there is a reasonable model for these imperfections.
- PIXEL0: nominal pixel position, using the LSST standard; The 0 is to remind users that this frame is 0-based. Nominal pixels are rectangular; the positions have been compensated for effects such as "tree ring" distortions (if an ACTUAL_PIXEL0 frame was provided) or such effects are assumed negligible (if not).
- GRID: nominal pixel position, using the FITS standard.
- IWC: intermediate world coordinates (the FITS WCS concept).
- An ast::SkyFrame with System=ICRS and standard axis order RA, Dec.
If ACTUAL_PIXEL0 is present then it will be the base frame (the starting point for forward transformations else PIXEL0 will be the base frame. The SkyFrame is always the current frame (the ending point for forward transformations).
Constructors must set the following properties of the contained ast::FrameSet:
- Include the frames listed above, with specified domains. Note that AST will provide the IWC frame when reading standard WCS FITS data using an ast::FitsChan if you set "IWC=1" as a property of ast::FitsChan. Other constructors may have to work harder.
- For the output ast::SkyFrame set SkyRef=CRVAL (in radians) and SkyRefIs="Ignored". SkyWcs uses this to look up CRVAL; "Ignored" is required to prevent CRVAL from being used as an offset from the desired WCS.
Definition at line 97 of file SkyWcs.h.
template<class FromEndpoint, class ToEndpoint>
Transform an array of points in the forward direction ("from" to "to")
The first dimension of the array must match the number of input axes, and the data order is values for the first axis, then values for the next axis, and so on, e.g. for 2 axes: x0, x1, x2, ..., y0, y1, y2...
template<class FromEndpoint, class ToEndpoint>
Transform an array of points in the inverse direction ("to" to "from")
The first dimension of the array must match the number of output axes, and the data order is values for the first axis, then values for the next axis, and so on, e.g. for 2 axes: x0, x1, x2, ..., y0, y1, y2...