|
lsst.afw
14.0-23-g38c323faa+3
|
Functions | |
| 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) |
Variables | |
| constexpr int | serializationVersion = 1 |
| version of serialization used when writing (older versions may also be supported when reading) More... | |
| double lsst::afw::geom::detail::computeExtentNorm | ( | Extent< double, N > const & | s | ) |
| int lsst::afw::geom::detail::computeExtentNorm | ( | Extent< int, N > const & | s | ) |
| std::shared_ptr<ast::SkyFrame> lsst::afw::geom::detail::getSkyFrame | ( | ast::FrameSet const & | frameSet, |
| int | index, | ||
| bool | copy | ||
| ) |
Get the specified frame of a FrameSet as a SkyFrame.
| [in] | frameSet | FrameSet from which to get the SkyFrame |
| [in] | index | Index of SkyFrame. This value should lie in the range 1 to the number of frames in the FrameSet (as given by getNFrame). A value of FrameSet::Base or FrameSet::CURRENT may be given to specify the base Frame or the current Frame, respectively. |
| [in] | copy | If true return a deep copy of the SkyFrame, else a shallow copy |
| std::shared_ptr<daf::base::PropertyList> lsst::afw::geom::detail::makeTanWcsMetadata | ( | Point2D const & | crpix, |
| coord::IcrsCoord const & | crval, | ||
| Eigen::Matrix2d const & | cdMatrix | ||
| ) |
Make FITS metadata for a pure tangent WCS.
| [in] | crpix | Center of projection on the CCD using the LSST convention: 0, 0 is the lower left pixel of the image |
| [in] | crval | Center of projection on the sky |
| [in] | cdMatrix | CD matrix where element (i-1, j-1) corresponds to FITS keyword CDi_j and i, j have range [1, 2] |
| std::shared_ptr<ast::FrameSet> lsst::afw::geom::detail::readFitsWcs | ( | daf::base::PropertyList & | metadata, |
| bool | strip = true |
||
| ) |
Read a FITS convention WCS FrameSet from FITS metadata.
The resulting FrameSet may be any kind of WCS supported by FITS; if it is a celestial WCS then 1,1 will be the lower left corner of the image (the FITS convention, not the LSST convention).
| [in,out] | metadata | FITS header cards |
| [in] | strip | If true strip items from metadata that are used to create the WCS |
| 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.
The frames of the returned WCS will be as follows:
| [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. |
| Transform lsst::afw::geom::detail::readStream | ( | std::istream & | is | ) |
Deserialize a Transform from an input stream.
| Transform | the Transform class; can be Transform<FromEndpoint, ToEndpoint>, SkyWcs, or any other compatible class, i.e. it must support the following (see Transform.h for details):
|
| [in] | is | input stream from which to deserialize this Transform |
Definition at line 80 of file transformUtils.h.
| void lsst::afw::geom::detail::writeStream | ( | Transform const & | transform, |
| std::ostream & | os | ||
| ) |
Serialize a Transform to an output stream.
Version 1 format is as follows:
| [out] | os | output stream to which to serialize this Transform |
| [in] | transform | Transform to serialize |
Definition at line 108 of file transformUtils.h.
| constexpr int lsst::afw::geom::detail::serializationVersion = 1 |
version of serialization used when writing (older versions may also be supported when reading)
Definition at line 43 of file transformUtils.h.
1.8.13