LSST Applications g0d97872fb5+4fd969bb9d,g1653933729+34a971ddd9,g28da252d5a+072f89fe25,g2bbee38e9b+a99b0ab4cd,g2bc492864f+a99b0ab4cd,g2ca4be77d2+c0e3b27cd8,g2cdde0e794+704103fe75,g3156d2b45e+6e87dc994a,g347aa1857d+a99b0ab4cd,g35bb328faa+34a971ddd9,g3a166c0a6a+a99b0ab4cd,g3e281a1b8c+8ec26ec694,g4005a62e65+ba0306790b,g414038480c+9ed5ed841a,g569e0e2b34+cb4faa46ad,g5a97de2502+520531a62c,g717e5f8c0f+29153700a5,g7ede599f99+367733290c,g80478fca09+17051a22cc,g82479be7b0+f2f1ea0a87,g858d7b2824+29153700a5,g8b782ad322+29153700a5,g8cd86fa7b1+05420e7f7d,g9125e01d80+34a971ddd9,ga5288a1d22+e7f674aaf3,gae0086650b+34a971ddd9,gae74b0b5c6+45ef5cdc51,gb58c049af0+ace264a4f2,gc28159a63d+a99b0ab4cd,gcf0d15dbbd+8051a81198,gda6a2b7d83+8051a81198,gdaeeff99f8+7774323b41,gdf4d240d4a+34a971ddd9,ge2409df99d+cb167bac99,ge33fd446bb+29153700a5,ge79ae78c31+a99b0ab4cd,gf0baf85859+890af219f9,gf5289d68f6+9faa5c5784,w.2024.36
LSST Data Management Base Package
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.meas.base.plugins.ForcedTransformedCentroidFromCoordPlugin Class Reference
Inheritance diagram for lsst.meas.base.plugins.ForcedTransformedCentroidFromCoordPlugin:
lsst.meas.base.plugins.ForcedTransformedCentroidPlugin lsst.meas.base.forcedMeasurement.ForcedPlugin lsst.meas.base.baseMeasurement.BaseMeasurementPlugin lsst.meas.base.pluginsBase.BasePlugin

Public Member Functions

 measure (self, measRecord, exposure, refRecord, refWcs)
 

Public Attributes

 centroidKey
 
 flagKey
 

Static Public Attributes

 ConfigClass = ForcedTransformedCentroidFromCoordConfig
 

Detailed Description

Record the transformation of the reference catalog coord.

The coord recorded in the reference catalog is tranformed to the
measurement coordinate system and stored.

Parameters
----------
config : `ForcedTransformedCentroidFromCoordConfig`
    Plugin configuration
name : `str`
    Plugin name
schemaMapper : `lsst.afw.table.SchemaMapper`
    A mapping from reference catalog fields to output
    catalog fields. Output fields are added to the output schema.
metadata : `lsst.daf.base.PropertySet`
    Plugin metadata that will be attached to the output catalog.

Notes
-----
This can be used as the slot centroid in forced measurement when only a
reference coord exist, allowing subsequent measurements to simply refer to
the slot value just as they would in single-frame measurement.

Definition at line 860 of file plugins.py.

Member Function Documentation

◆ measure()

lsst.meas.base.plugins.ForcedTransformedCentroidFromCoordPlugin.measure ( self,
measRecord,
exposure,
refRecord,
refWcs )
Measure the properties of a source given an image and a reference.

Parameters
----------
exposure : `lsst.afw.image.ExposureF`
    The pixel data to be measured, together with the associated PSF,
    WCS, etc. All other sources in the image should have been replaced
    by noise according to deblender outputs.
measRecord : `lsst.afw.table.SourceRecord`
    Record describing the object being measured. Previously-measured
    quantities will be retrieved from here, and it will be updated
    in-place with the outputs of this plugin.
refRecord : `lsst.afw.table.SimpleRecord`
    Additional parameters to define the fit, as measured elsewhere.
refWcs : `lsst.afw.geom.SkyWcs` or `lsst.afw.geom.Angle`
    The coordinate system for the reference catalog values. An
    `~lsst.geom.Angle` may be passed, indicating that a local tangent
    WCS should be created for each object using the given angle as a
    pixel scale.

Notes
-----
In the normal mode of operation, the source centroid will be set to
the WCS-transformed position of the reference object, so plugins that
only require a reference position should not have to access the
reference object at all.

Reimplemented from lsst.meas.base.plugins.ForcedTransformedCentroidPlugin.

Definition at line 887 of file plugins.py.

887 def measure(self, measRecord, exposure, refRecord, refWcs):
888 targetWcs = exposure.getWcs()
889
890 targetPos = targetWcs.skyToPixel(refRecord.getCoord())
891 measRecord.set(self.centroidKey, targetPos)
892
893 if self.flagKey is not None:
894 measRecord.set(self.flagKey, refRecord.getCentroidFlag())
895
896

Member Data Documentation

◆ centroidKey

lsst.meas.base.plugins.ForcedTransformedCentroidFromCoordPlugin.centroidKey

Definition at line 891 of file plugins.py.

◆ ConfigClass

lsst.meas.base.plugins.ForcedTransformedCentroidFromCoordPlugin.ConfigClass = ForcedTransformedCentroidFromCoordConfig
static

Definition at line 885 of file plugins.py.

◆ flagKey

lsst.meas.base.plugins.ForcedTransformedCentroidFromCoordPlugin.flagKey

Definition at line 894 of file plugins.py.


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