Function lsst::afw::geom::makeSkyWcs(daf::base::PropertySet&, bool)¶
Function Documentation¶
-
std::shared_ptr<SkyWcs>
lsst::afw::geom
::
makeSkyWcs
(daf::base::PropertySet &metadata, bool strip = false) Construct a SkyWcs from FITS keywords
This function is preferred over calling the SkyWcs metadata constructor directly because it allows us to change SkyWcs to an abstract base class in the future, without affecting code that constructs a WCS from FITS metadata.
- Parameters
[in] metadata
: FITS header metadata[in] strip
: If true: strip items frommetadata
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”).
- Exceptions
lsst::pex::exceptions::TypeError
: if the metadata does not describe a celestial WCS.