lsst.afw  14.0-23-g38c323faa+3
Functions
lsst.afw.table.utils Namespace Reference

Functions

def updateRefCentroids (wcs, refList)
 
def updateSourceCoords (wcs, sourceList)
 

Function Documentation

◆ updateRefCentroids()

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

Definition at line 29 of file utils.py.

◆ updateSourceCoords()

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

Definition at line 51 of file utils.py.