lsst.afw  14.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
Functions | Variables
lsst.afw.table.utils Namespace Reference

Functions

def updateRefCentroids
 
def updateSourceCoords
 

Variables

list __all__ = ["updateRefCentroids", "updateSourceCoords"]
 

Function Documentation

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.

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.

Variable Documentation

list lsst.afw.table.utils.__all__ = ["updateRefCentroids", "updateSourceCoords"]

Definition at line 26 of file utils.py.