lsst.meas.extensions.trailedSources gf4ac96e456+7f73a9a83a
Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | List of all members
lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin Class Reference
Inheritance diagram for lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin:

Public Member Functions

def getExecutionOrder (cls)
 
def __init__ (self, config, name, schema, metadata, logName=None)
 
def measure (self, measRecord, exposure)
 
def fail (self, measRecord, error=None)
 
def findLength (cls, Ixx, Iyy)
 

Static Public Member Functions

def computeLength (Ixx, Iyy)
 
def computeRaDec (exposure, x, y)
 

Public Attributes

 keyRa
 
 keyDec
 
 keyX0
 
 keyY0
 
 keyX1
 
 keyY1
 
 keyFlux
 
 keyLength
 
 keyAngle
 
 keyX0Err
 
 keyY0Err
 
 keyX1Err
 
 keyY1Err
 
 keyFluxErr
 
 keyLengthErr
 
 keyAngleErr
 
 FAILURE
 
 NO_FLUX
 
 NO_CONVERGE
 
 NO_SIGMA
 
 SAFE_CENTROID
 
 flagHandler
 
 centriodExtractor
 
 log
 

Static Public Attributes

 ConfigClass = SingleFrameNaiveTrailConfig
 

Detailed Description

Naive trailed source measurement plugin

Measures the length, angle from +x-axis, and end points of an extended
source using the second moments.

Parameters
----------
config: `SingleFrameNaiveTrailConfig`
    Plugin configuration.
name: `str`
    Plugin name.
schema: `lsst.afw.table.Schema`
    Schema for the output catalog.
metadata: `lsst.daf.base.PropertySet`
    Metadata to be attached to output catalog.

Notes
-----
This measurement plugin aims to utilize the already measured adaptive
second moments to naively estimate the length and angle, and thus
end-points, of a fast-moving, trailed source. The length is solved for via
finding the root of the difference between the numerical (stack computed)
and the analytic adaptive second moments. The angle, theta, from the x-axis
is also computed via adaptive moments: theta = arctan(2*Ixy/(Ixx - Iyy))/2.
The end points of the trail are then given by (xc +/- (length/2)*cos(theta)
and yc +/- (length/2)*sin(theta)), with xc and yc being the centroid
coordinates.

See also
--------
lsst.meas.base.SingleFramePlugin

Definition at line 47 of file NaivePlugin.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.__init__ (   self,
  config,
  name,
  schema,
  metadata,
  logName = None 
)

Definition at line 89 of file NaivePlugin.py.

Member Function Documentation

◆ computeLength()

def lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.computeLength (   Ixx,
  Iyy 
)
static
Compute the length of a trail, given unweighted second-moments.

Definition at line 369 of file NaivePlugin.py.

◆ computeRaDec()

def lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.computeRaDec (   exposure,
  x,
  y 
)
static
Convert pixel coordinates to RA and Dec.

Parameters
----------
exposure : `lsst.afw.image.ExposureF`
    Exposure object containing the WCS.
x : `float`
    x coordinate of the trail centroid
y : `float`
    y coodinate of the trail centroid

Returns
-------
ra : `float`
    Right ascension.
dec : `float`
    Declination.

Definition at line 381 of file NaivePlugin.py.

◆ fail()

def lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.fail (   self,
  measRecord,
  error = None 
)
Record failure

See also
--------
lsst.meas.base.SingleFramePlugin.fail

Definition at line 264 of file NaivePlugin.py.

◆ findLength()

def lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.findLength (   cls,
  Ixx,
  Iyy 
)
Find the length of a trail, given adaptive second-moments.

Uses a root finder to compute the length of a trail corresponding to
the adaptive second-moments computed by previous measurements
(ie. SdssShape).

Parameters
----------
Ixx : `float`
    Adaptive second-moment along x-axis.
Iyy : `float`
    Adaptive second-moment along y-axis.

Returns
-------
length : `float`
    Length of the trail.
results : `scipy.optimize.RootResults`
    Contains messages about convergence from the root finder.

Definition at line 306 of file NaivePlugin.py.

◆ getExecutionOrder()

def lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.getExecutionOrder (   cls)

Definition at line 84 of file NaivePlugin.py.

◆ measure()

def lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.measure (   self,
  measRecord,
  exposure 
)
Run the Naive trailed source measurement algorithm.

Parameters
----------
measRecord : `lsst.afw.table.SourceRecord`
    Record describing the object being measured.
exposure : `lsst.afw.image.Exposure`
    Pixel data to be measured.

See also
--------
lsst.meas.base.SingleFramePlugin.measure

Definition at line 131 of file NaivePlugin.py.

Member Data Documentation

◆ centriodExtractor

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.centriodExtractor

Definition at line 128 of file NaivePlugin.py.

◆ ConfigClass

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.ConfigClass = SingleFrameNaiveTrailConfig
static

Definition at line 81 of file NaivePlugin.py.

◆ FAILURE

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.FAILURE

Definition at line 121 of file NaivePlugin.py.

◆ flagHandler

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.flagHandler

Definition at line 126 of file NaivePlugin.py.

◆ keyAngle

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyAngle

Definition at line 103 of file NaivePlugin.py.

◆ keyAngleErr

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyAngleErr

Definition at line 118 of file NaivePlugin.py.

◆ keyDec

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyDec

Definition at line 96 of file NaivePlugin.py.

◆ keyFlux

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyFlux

Definition at line 101 of file NaivePlugin.py.

◆ keyFluxErr

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyFluxErr

Definition at line 114 of file NaivePlugin.py.

◆ keyLength

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyLength

Definition at line 102 of file NaivePlugin.py.

◆ keyLengthErr

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyLengthErr

Definition at line 116 of file NaivePlugin.py.

◆ keyRa

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyRa

Definition at line 95 of file NaivePlugin.py.

◆ keyX0

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyX0

Definition at line 97 of file NaivePlugin.py.

◆ keyX0Err

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyX0Err

Definition at line 106 of file NaivePlugin.py.

◆ keyX1

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyX1

Definition at line 99 of file NaivePlugin.py.

◆ keyX1Err

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyX1Err

Definition at line 110 of file NaivePlugin.py.

◆ keyY0

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyY0

Definition at line 98 of file NaivePlugin.py.

◆ keyY0Err

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyY0Err

Definition at line 108 of file NaivePlugin.py.

◆ keyY1

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyY1

Definition at line 100 of file NaivePlugin.py.

◆ keyY1Err

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.keyY1Err

Definition at line 112 of file NaivePlugin.py.

◆ log

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.log

Definition at line 129 of file NaivePlugin.py.

◆ NO_CONVERGE

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.NO_CONVERGE

Definition at line 123 of file NaivePlugin.py.

◆ NO_FLUX

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.NO_FLUX

Definition at line 122 of file NaivePlugin.py.

◆ NO_SIGMA

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.NO_SIGMA

Definition at line 124 of file NaivePlugin.py.

◆ SAFE_CENTROID

lsst.meas.extensions.trailedSources.NaivePlugin.SingleFrameNaiveTrailPlugin.SAFE_CENTROID

Definition at line 125 of file NaivePlugin.py.


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