|
lsst.afw
14.0-40-g0271be365
|
Functions | |
| std::shared_ptr< ast::FrameSet > | readFitsWcs (daf::base::PropertySet &metadata, bool strip=true) |
| Read a FITS convention WCS FrameSet from FITS metadata. More... | |
| std::shared_ptr< ast::FrameDict > | readLsstSkyWcs (daf::base::PropertySet &metadata, bool strip=true) |
| Read an LSST celestial WCS FrameDict from a FITS header. More... | |
| std::shared_ptr< daf::base::PropertyList > | getPropertyListFromFitsChan (ast::FitsChan &fitsChan) |
| Copy values from an AST FitsChan into a PropertyList. More... | |
| template<class Transform > | |
| std::shared_ptr< 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<daf::base::PropertyList> lsst::afw::geom::detail::getPropertyListFromFitsChan | ( | ast::FitsChan & | fitsChan | ) |
Copy values from an AST FitsChan into a PropertyList.
| lsst::pex::exceptions::TypeError | if fitsChan contains cards whose type is not supported by PropertyList: complex numbers, or cards with no value |
| std::shared_ptr<ast::FrameSet> lsst::afw::geom::detail::readFitsWcs | ( | daf::base::PropertySet & | 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).
The returned FrameSet will have an IWC (intermediate world coordinate system) frame.
| [in,out] | metadata | FITS header cards |
| [in] | strip | If true: strip items from metadata used to create the WCS, such as RADESYS, EQUINOX, CTYPE12, CRPIX12, CRVAL12, etc. Always keep keywords that might be wanted for other purpposes, including NAXIS12 and date-related keywords such as "DATE-OBS" and "TIMESYS" (but not "EQUINOX"). |
| pex::exceptions::TypeError | if the metadata does not contain a FITS-WCS |
| std::shared_ptr<ast::FrameDict> lsst::afw::geom::detail::readLsstSkyWcs | ( | daf::base::PropertySet & | metadata, |
| bool | strip = true |
||
| ) |
Read an LSST celestial WCS FrameDict from a FITS header.
Calls getImageXY0FromMetadata to determine image XY0.
Saves CRVAL by setting the output SkyFrame's SkyRef to CRVAL and SkyRefIs="Ignore" (so SkyRef is not treated as an offset).
The frames of the returned WCS will be as follows:
All frames are instances of ast::Frame except the SKY frame. All have 2 axes.
| [in,out] | metadata | FITS header cards |
| [in] | strip | If true: strip items from metadata used to create the WCS, such as RADESYS, EQUINOX, CTYPE12, CRPIX12, CRVAL12, etc. Always keep keywords that might be wanted for other purpposes, including NAXIS12 and date-related keywords such as "DATE-OBS" and "TIMESYS" (but not "EQUINOX"). |
| lsst::pex::exceptions::TypeError | if the metadata does not describe a celestial WCS. |
| std::shared_ptr< 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