lsst.meas.base gdd9490a0bf+839504dd15
Loading...
Searching...
No Matches
lsst.meas.base.plugins.EvaluateLocalWcsPlugin Class Reference
Inheritance diagram for lsst.meas.base.plugins.EvaluateLocalWcsPlugin:
lsst.meas.base.wrappers.GenericPlugin lsst.meas.base.pluginsBase.BasePlugin

Public Member Functions

 getExecutionOrder (cls)
 
 __init__ (self, config, name, schema, metadata)
 
 measure (self, measRecord, exposure, center)
 
 makeLocalTransformMatrix (self, wcs, center)
 

Public Attributes

 cdMatrix11Key
 
 cdMatrix12Key
 
 cdMatrix21Key
 
 cdMatrix22Key
 
 name
 

Static Public Attributes

 ConfigClass = EvaluateLocalWcsPluginConfig
 

Protected Attributes

 _failKey = np.array([[np.nan, np.nan], [np.nan, np.nan]])
 

Static Protected Attributes

tuple _scale = (1.0 * lsst.geom.arcseconds).asDegrees()
 

Detailed Description

Evaluate the local, linear approximation of the Wcs.

The aim is to store the local calib value within the catalog for later
use in the Science Data Model functors.

Definition at line 483 of file plugins.py.

Constructor & Destructor Documentation

◆ __init__()

lsst.meas.base.plugins.EvaluateLocalWcsPlugin.__init__ ( self,
config,
name,
schema,
metadata )

Reimplemented from lsst.meas.base.wrappers.GenericPlugin.

Definition at line 496 of file plugins.py.

Member Function Documentation

◆ getExecutionOrder()

lsst.meas.base.plugins.EvaluateLocalWcsPlugin.getExecutionOrder ( cls)
Get the relative execution order of this plugin.

Must be reimplemented as a class method by concrete derived classes.

Reimplemented from lsst.meas.base.wrappers.GenericPlugin.

Definition at line 493 of file plugins.py.

◆ makeLocalTransformMatrix()

lsst.meas.base.plugins.EvaluateLocalWcsPlugin.makeLocalTransformMatrix ( self,
wcs,
center )
Create a local, linear approximation of the wcs transformation
matrix.

The approximation is created as if the center is at RA=0, DEC=0. All
comparing x,y coordinate are relative to the position of center. Matrix
is initially calculated with units arcseconds and then converted to
radians. This yields higher precision results due to quirks in AST.

Parameters
----------
wcs : `lsst.afw.geom.SkyWcs`
    Wcs to approximate
center : `lsst.geom.Point2D`
    Point at which to evaluate the LocalWcs.

Returns
-------
localMatrix : `numpy.ndarray`
    Matrix representation the local wcs approximation with units
    radians.

Definition at line 536 of file plugins.py.

◆ measure()

lsst.meas.base.plugins.EvaluateLocalWcsPlugin.measure ( self,
measRecord,
exposure,
center )
Measure a single source.

It is the responsibility of this method to perform the desired
measurement and record the result in the `measRecord`.

Parameters
----------
measRecord : `lsst.afw.table.SourceRecord`
    Catalog record for the source being measured.
exposure : `lsst.afw.image.Exposure`
    Exposure on which the source is being measured.
center : `lsst.geom.Point2D`
    Pixel coordinates of the object.

Raises
------
MeasurementError
    Raised if the measurement fails for a known/justifiable reason.

Reimplemented from lsst.meas.base.wrappers.GenericPlugin.

Definition at line 519 of file plugins.py.

Member Data Documentation

◆ _failKey

lsst.meas.base.plugins.EvaluateLocalWcsPlugin._failKey = np.array([[np.nan, np.nan], [np.nan, np.nan]])
protected

Definition at line 528 of file plugins.py.

◆ _scale

tuple lsst.meas.base.plugins.EvaluateLocalWcsPlugin._scale = (1.0 * lsst.geom.arcseconds).asDegrees()
staticprotected

Definition at line 490 of file plugins.py.

◆ cdMatrix11Key

lsst.meas.base.plugins.EvaluateLocalWcsPlugin.cdMatrix11Key
Initial value:
= schema.addField(
f"{name}_CDMatrix_1_1",
type="D",
doc="(1, 1) element of the CDMatrix for the linear approximation "
"of the WCS at the src location. Gives units in radians.")

Definition at line 498 of file plugins.py.

◆ cdMatrix12Key

lsst.meas.base.plugins.EvaluateLocalWcsPlugin.cdMatrix12Key
Initial value:
= schema.addField(
f"{name}_CDMatrix_1_2",
type="D",
doc="(1, 2) element of the CDMatrix for the linear approximation "
"of the WCS at the src location. Gives units in radians.")

Definition at line 503 of file plugins.py.

◆ cdMatrix21Key

lsst.meas.base.plugins.EvaluateLocalWcsPlugin.cdMatrix21Key
Initial value:
= schema.addField(
f"{name}_CDMatrix_2_1",
type="D",
doc="(2, 1) element of the CDMatrix for the linear approximation "
"of the WCS at the src location. Gives units in radians.")

Definition at line 508 of file plugins.py.

◆ cdMatrix22Key

lsst.meas.base.plugins.EvaluateLocalWcsPlugin.cdMatrix22Key
Initial value:
= schema.addField(
f"{name}_CDMatrix_2_2",
type="D",
doc="(2, 2) element of the CDMatrix for the linear approximation "
"of the WCS at the src location. Gives units in radians.")

Definition at line 513 of file plugins.py.

◆ ConfigClass

lsst.meas.base.plugins.EvaluateLocalWcsPlugin.ConfigClass = EvaluateLocalWcsPluginConfig
static

Definition at line 489 of file plugins.py.

◆ name

lsst.meas.base.plugins.EvaluateLocalWcsPlugin.name

Definition at line 524 of file plugins.py.


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