|
| std::shared_ptr< ast::SkyFrame > | getSkyFrame (ast::FrameSet const &frameSet, int index, bool copy) |
| | Get the specified frame of a FrameSet as a SkyFrame. More...
|
| |
std::shared_ptr
< daf::base::PropertyList > | makeTanWcsMetadata (Point2D const &crpix, coord::IcrsCoord const &crval, Eigen::Matrix2d const &cdMatrix) |
| | Make FITS metadata for a pure tangent WCS. More...
|
| |
| std::shared_ptr< ast::FrameSet > | readFitsWcs (daf::base::PropertyList &metadata, bool strip=true) |
| | Read a FITS convention WCS FrameSet from FITS metadata. More...
|
| |
| std::shared_ptr< ast::FrameSet > | readLsstSkyWcs (daf::base::PropertyList &metadata, bool strip=true) |
| | Read an LSST sky WCS FrameSet from a FITS header: 0,0 is the lower left corner of the parent image. More...
|
| |
| template<class Transform > |
| Transform | readStream (std::istream &is) |
| | Deserialize a Transform from an input stream. More...
|
| |
| template<class Transform > |
| void | writeStream (Transform const &transform, std::ostream &os) |
| | Serialize a Transform to an output stream. More...
|
| |
| template<int N> |
| double | computeExtentNorm (Extent< double, N > const &s) |
| |
| template<int N> |
| int | computeExtentNorm (Extent< int, N > const &s) |
| |
| std::shared_ptr<ast::FrameSet> lsst::afw::geom::detail::readLsstSkyWcs |
( |
daf::base::PropertyList & |
metadata, |
|
|
bool |
strip = true |
|
) |
| |
Read an LSST sky WCS FrameSet from a FITS header: 0,0 is the lower left corner of the parent image.
Read standard FITS WCS header cards including IRAF standard "LTV1" and "LTV2" cards, which, if found, specify the position of the subimage in the parent image.
Set the output SkyFrame's SkyRef to CRVAL and SkyRefIs="Ignore" so the SkyRef is ignored instead of being treated as an offset.
- Warning
- the general SkyWcs generated by LSST software cannot be exactly represented using standard WCS FITS cards, and so this function cannot read those. This function is intended for two purposes:
- Read the standard FITS WCS found in raw data and other images from non-LSST observatories and convert it to the LSST pixel convention.
- Read the approximate FITS WCS that LSST writes to FITS images (for use by non-LSST code).
The frames of the returned WCS will be as follows:
- base: an ast::Frame with domain "PIXELS0": pixels with 0,0 the lower left corner of the parent image
- current: an ast::SkyFrame: ICRS RA, Dec
- Parameters
-
| [in,out] | metadata | FITS header cards |
| [in] | strip | If true strip items from metadata that are used to create the WCS, excluding LTV1 and LTV2, which are always retained. |