|
lsst.afw
14.0-25-g0e8fc950e+5
|
Functions | |
| def | updateRefCentroids (wcs, refList) |
| def | updateSourceCoords (wcs, sourceList) |
| def lsst.afw.table.utils.updateRefCentroids | ( | wcs, | |
| refList | |||
| ) |
Update centroids in a collection of reference objects
This code supports any kind of collection, instead of requiring a catalog,
to make it easy to use with match lists. For example:
updateRefCentroids(wcs, refList=[match.first for match in matches])
@param[in] wcs WCS to map from sky to pixels; an lsst.afw.image.Wcs
@param[in,out] refList collection of reference objects (lsst.afw.table.SimpleRecords); for each:
- read field "coords", an lsst.afw.coord.Coord
- write field "centroid", an lsst.afw.geom.Point2D
| def lsst.afw.table.utils.updateSourceCoords | ( | wcs, | |
| sourceList | |||
| ) |
Update coords in a collection of sources
This code supports any kind of collection, instead of requiring a catalog,
to make it easy to use with match lists. For example:
updateSourceCoords(wcs, sourceList=[match.second for match in matches])
@param[in] wcs WCS to map from pixels to sky; an lsst.afw.image.Wcs
@param[in,out] sourceList collection of sources (lsst.afw.table.SourceRecords); for each:
- read centroid using getCentroid()
- write field "coord", an lsst.afw.coord.Coord
1.8.13