Template Function lsst::afw::table::updateRefCentroids¶
Function Documentation¶
- 
template<typename 
ReferenceCollection>
voidlsst::afw::table::updateRefCentroids(geom::SkyWcs const &wcs, ReferenceCollection &refList)¶ Update centroids in a collection of reference objects
- Template Parameters
 RefCollection: Type of sequence of reference objects, e.g. lsst::afw::table::SimpleCatalog or std::vector<std::shared_ptr<lsst::afw::table::SimpleRecord>>
- Parameters
 [in] wcs: WCS to map from sky to pixels[inout] refList: Collection of reference objects. The schema must have three fields:”coord”: a field containing an ICRS lsst::afw::SpherePoint; this field is read
”centroid”: a field containing lsst::geom::Point2D; this field is written
”hasCentroid”: a flag; this field is written
- Exceptions
 lsst::pex::exceptions::NotFoundError: if refList’s schema does not have the required fields.