Template Function lsst::afw::table::updateSourceCoords¶
Function Documentation¶
-
template<typename
SourceCollection
>
voidlsst::afw::table
::
updateSourceCoords
(geom::SkyWcs const &wcs, SourceCollection &sourceList)¶ Update sky coordinates in a collection of source objects
- Template Parameters
SourceCollection
: Type of sequence of sources, e.g. lsst::afw::table::SourceCatalog or std::vector<std::shared_ptr<lsst::afw::table::SourceRecord>>
- Parameters
[in] wcs
: WCS to map from pixels to sky[inout] sourceList
: Collection of sources. The schema must have two fields:”slot_Centroid”: a field containing lsst::geom::Point2D; this field is read
”coord”: a field containing an ICRS lsst::afw::SpherePoint; this field is written
- Exceptions
lsst::pex::exceptions::NotFoundError
: if refList’s schema does not have the required fields.