LSSTApplications  10.0+286,10.0+36,10.0+46,10.0-2-g4f67435,10.1+152,10.1+37,11.0,11.0+1,11.0-1-g47edd16,11.0-1-g60db491,11.0-1-g7418c06,11.0-2-g04d2804,11.0-2-g68503cd,11.0-2-g818369d,11.0-2-gb8b8ce7
LSSTDataManagementBasePackage
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.meas.base.plugins.ForcedPeakCentroidPlugin Class Reference
Inheritance diagram for lsst.meas.base.plugins.ForcedPeakCentroidPlugin:

Public Member Functions

def getExecutionOrder
 
def __init__
 
def measure
 

Static Public Member Functions

def getTransformClass
 

Public Attributes

 keyX
 
 keyY
 

Static Public Attributes

 ConfigClass = ForcedPeakCentroidConfig
 

Detailed Description

The forced peak centroid is like the SFM peak centroid plugin, except that it must transform
the peak coordinate from the original (reference) coordinate system to the coordinate system
of the exposure being measured.

Definition at line 207 of file plugins.py.

Constructor & Destructor Documentation

def lsst.meas.base.plugins.ForcedPeakCentroidPlugin.__init__ (   self,
  config,
  name,
  schemaMapper,
  metadata 
)

Definition at line 220 of file plugins.py.

221  def __init__(self, config, name, schemaMapper, metadata):
222  ForcedPlugin.__init__(self, config, name, schemaMapper, metadata)
223  schema = schemaMapper.editOutputSchema()
224  self.keyX = schema.addField(name + "_x", type="D", doc="peak centroid", units="pixels")
225  self.keyY = schema.addField(name + "_y", type="D", doc="peak centroid", units="pixels")

Member Function Documentation

def lsst.meas.base.plugins.ForcedPeakCentroidPlugin.getExecutionOrder (   cls)

Definition at line 217 of file plugins.py.

218  def getExecutionOrder(cls):
219  return cls.CENTROID_ORDER
def lsst.meas.base.plugins.ForcedPeakCentroidPlugin.getTransformClass ( )
static

Definition at line 236 of file plugins.py.

237  def getTransformClass():
238  return SimpleCentroidTransform
def lsst.meas.base.plugins.ForcedPeakCentroidPlugin.measure (   self,
  measRecord,
  exposure,
  refRecord,
  refWcs 
)

Definition at line 226 of file plugins.py.

227  def measure(self, measRecord, exposure, refRecord, refWcs):
228  targetWcs = exposure.getWcs()
229  peak = refRecord.getFootprint().getPeaks()[0]
230  result = lsst.afw.geom.Point2D(peak.getFx(), peak.getFy())
231  if not refWcs == targetWcs:
232  result = targetWcs.skyToPixel(refWcs.pixelToSky(result))
233  measRecord.set(self.keyX, result.getX())
234  measRecord.set(self.keyY, result.getY())

Member Data Documentation

lsst.meas.base.plugins.ForcedPeakCentroidPlugin.ConfigClass = ForcedPeakCentroidConfig
static

Definition at line 214 of file plugins.py.

lsst.meas.base.plugins.ForcedPeakCentroidPlugin.keyX

Definition at line 223 of file plugins.py.

lsst.meas.base.plugins.ForcedPeakCentroidPlugin.keyY

Definition at line 224 of file plugins.py.


The documentation for this class was generated from the following file: