LSST Applications
21.0.0-172-gfb10e10a+18fedfabac,22.0.0+297cba6710,22.0.0+80564b0ff1,22.0.0+8d77f4f51a,22.0.0+a28f4c53b1,22.0.0+dcf3732eb2,22.0.1-1-g7d6de66+2a20fdde0d,22.0.1-1-g8e32f31+297cba6710,22.0.1-1-geca5380+7fa3b7d9b6,22.0.1-12-g44dc1dc+2a20fdde0d,22.0.1-15-g6a90155+515f58c32b,22.0.1-16-g9282f48+790f5f2caa,22.0.1-2-g92698f7+dcf3732eb2,22.0.1-2-ga9b0f51+7fa3b7d9b6,22.0.1-2-gd1925c9+bf4f0e694f,22.0.1-24-g1ad7a390+a9625a72a8,22.0.1-25-g5bf6245+3ad8ecd50b,22.0.1-25-gb120d7b+8b5510f75f,22.0.1-27-g97737f7+2a20fdde0d,22.0.1-32-gf62ce7b1+aa4237961e,22.0.1-4-g0b3f228+2a20fdde0d,22.0.1-4-g243d05b+871c1b8305,22.0.1-4-g3a563be+32dcf1063f,22.0.1-4-g44f2e3d+9e4ab0f4fa,22.0.1-42-gca6935d93+ba5e5ca3eb,22.0.1-5-g15c806e+85460ae5f3,22.0.1-5-g58711c4+611d128589,22.0.1-5-g75bb458+99c117b92f,22.0.1-6-g1c63a23+7fa3b7d9b6,22.0.1-6-g50866e6+84ff5a128b,22.0.1-6-g8d3140d+720564cf76,22.0.1-6-gd805d02+cc5644f571,22.0.1-8-ge5750ce+85460ae5f3,master-g6e05de7fdc+babf819c66,master-g99da0e417a+8d77f4f51a,w.2021.48
LSST Data Management Base Package
|
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... | |
ast::FitsChan | getFitsChanFromPropertyList (daf::base::PropertySet &metadata, std::set< std::string > const &excludeNames={}, std::string options="") |
Construct AST FitsChan from 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... | |
void | wrapFrameSetUtils (lsst::utils::python::WrapperCollection &) |
Variables | |
constexpr int | serializationVersion = 1 |
version of serialization used when writing (older versions may also be supported when reading) More... | |
ast::FitsChan lsst::afw::geom::detail::getFitsChanFromPropertyList | ( | daf::base::PropertySet & | metadata, |
std::set< std::string > const & | excludeNames = {} , |
||
std::string | options = "" |
||
) |
Construct AST FitsChan from PropertyList.
[in] | metadata | Metadata to transfer; if this is a PropertyList then the order of items is preserved. |
[in] | excludeNames | Names of entries to exclude from the returned header string. |
[in] | options | Options string to pass to ast::FitsChan constructor. |
Definition at line 316 of file frameSetUtils.cc.
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 |
Definition at line 251 of file frameSetUtils.cc.
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).
This routine replaces RADECSYS with RADESYS if the former is present and the latter is not, since that is a common misspelling in FITS headers.
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 |
Definition at line 82 of file frameSetUtils.cc.
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. |
Definition at line 134 of file frameSetUtils.cc.
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 79 of file transformUtils.h.
void lsst::afw::geom::detail::wrapFrameSetUtils | ( | lsst::utils::python::WrapperCollection & | ) |
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 107 of file transformUtils.h.
|
constexpr |
version of serialization used when writing (older versions may also be supported when reading)
Definition at line 42 of file transformUtils.h.