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 | Public Attributes | Static Public Attributes | List of all members
lsst.meas.base.plugins.ForcedTransformedCentroidPlugin Class Reference
Inheritance diagram for lsst.meas.base.plugins.ForcedTransformedCentroidPlugin:

Public Member Functions

def getExecutionOrder
 
def __init__
 
def measure
 

Public Attributes

 centroidKey
 
 flagKey
 

Static Public Attributes

 ConfigClass = ForcedTransformedCentroidConfig
 

Detailed Description

A centroid pseudo-algorithm for forced measurement that simply transforms the centroid
from the reference catalog to the measurement coordinate system.  This is used as
the slot centroid by default in forced measurement, allowing subsequent measurements
to simply refer to the slot value just as they would in single-frame measurement.

Definition at line 243 of file plugins.py.

Constructor & Destructor Documentation

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

Definition at line 256 of file plugins.py.

257  def __init__(self, config, name, schemaMapper, metadata):
258  ForcedPlugin.__init__(self, config, name, schemaMapper, metadata)
259  schema = schemaMapper.editOutputSchema()
260  # Allocate x and y fields, join these into a single FunctorKey for ease-of-use.
261  xKey = schema.addField(name + "_x", type="D", doc="transformed reference centroid column",
262  units="pixels")
263  yKey = schema.addField(name + "_y", type="D", doc="transformed reference centroid row",
264  units="pixels")
265  self.centroidKey = lsst.afw.table.Point2DKey(xKey, yKey)
266  # Because we're taking the reference position as given, we don't bother transforming its
267  # uncertainty and reporting that here, so there are no sigma or cov fields. We do propagate
268  # the flag field, if it exists.
269  if "slot_Centroid_flag" in schemaMapper.getInputSchema():
270  self.flagKey = schema.addField(name + "_flag", type="Flag",
271  doc="whether the reference centroid is marked as bad")
272  else:
273  self.flagKey = None

Member Function Documentation

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

Definition at line 253 of file plugins.py.

254  def getExecutionOrder(cls):
255  return cls.CENTROID_ORDER
def lsst.meas.base.plugins.ForcedTransformedCentroidPlugin.measure (   self,
  measRecord,
  exposure,
  refRecord,
  refWcs 
)

Definition at line 274 of file plugins.py.

275  def measure(self, measRecord, exposure, refRecord, refWcs):
276  targetWcs = exposure.getWcs()
277  if not refWcs == targetWcs:
278  targetPos = targetWcs.skyToPixel(refWcs.pixelToSky(refRecord.getCentroid()))
279  measRecord.set(self.centroidKey, targetPos)
280  else:
281  measRecord.set(self.centroidKey, refRecord.getCentroid())
282  if self.flagKey is not None:
283  measRecord.set(self.flagKey, refRecord.getCentroidFlag())
284 

Member Data Documentation

lsst.meas.base.plugins.ForcedTransformedCentroidPlugin.centroidKey

Definition at line 264 of file plugins.py.

lsst.meas.base.plugins.ForcedTransformedCentroidPlugin.ConfigClass = ForcedTransformedCentroidConfig
static

Definition at line 250 of file plugins.py.

lsst.meas.base.plugins.ForcedTransformedCentroidPlugin.flagKey

Definition at line 269 of file plugins.py.


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