LSST Applications g0f08755f38+9c285cab97,g1635faa6d4+13f3999e92,g1653933729+a8ce1bb630,g1a0ca8cf93+bf6eb00ceb,g28da252d5a+0829b12dee,g29321ee8c0+5700dc9eac,g2bbee38e9b+9634bc57db,g2bc492864f+9634bc57db,g2cdde0e794+c2c89b37c4,g3156d2b45e+41e33cbcdc,g347aa1857d+9634bc57db,g35bb328faa+a8ce1bb630,g3a166c0a6a+9634bc57db,g3e281a1b8c+9f2c4e2fc3,g414038480c+077ccc18e7,g41af890bb2+fde0dd39b6,g5fbc88fb19+17cd334064,g781aacb6e4+a8ce1bb630,g80478fca09+55a9465950,g82479be7b0+d730eedb7d,g858d7b2824+9c285cab97,g9125e01d80+a8ce1bb630,g9726552aa6+10f999ec6a,ga5288a1d22+2a84bb7594,gacf8899fa4+c69c5206e8,gae0086650b+a8ce1bb630,gb58c049af0+d64f4d3760,gc28159a63d+9634bc57db,gcf0d15dbbd+4b7d09cae4,gda3e153d99+9c285cab97,gda6a2b7d83+4b7d09cae4,gdaeeff99f8+1711a396fd,ge2409df99d+5e831397f4,ge79ae78c31+9634bc57db,gf0baf85859+147a0692ba,gf3967379c6+41c94011de,gf3fb38a9a8+8f07a9901b,gfb92a5be7c+9c285cab97,w.2024.46
LSST Data Management Base Package
Loading...
Searching...
No Matches
Classes | Functions | Variables
lsst.afw.geom.transformConfig Namespace Reference

Classes

class  AffineTransformConfig
 
class  IdentityTransformConfig
 
class  MultiTransformConfig
 
class  OneTransformConfig
 
class  RadialTransformConfig
 
class  TransformConfig
 

Functions

 identityFactory (config)
 
 invertingFactory (config)
 
 affineFactory (config)
 
 radialFactory (config)
 
 multiFactory (config)
 

Variables

 transformRegistry
 
 ConfigClass
 

Function Documentation

◆ affineFactory()

lsst.afw.geom.transformConfig.affineFactory ( config)
Make an affine ``Transform``

Definition at line 112 of file transformConfig.py.

112def affineFactory(config):
113 """Make an affine ``Transform``
114 """
115 linear = numpy.array(config.linear)
116 linear.shape = (2, 2)
117 translation = numpy.array(config.translation)
118 return makeTransform(lsst.geom.AffineTransform(linear, translation))
119
120
An affine coordinate transformation consisting of a linear transformation and an offset.

◆ identityFactory()

lsst.afw.geom.transformConfig.identityFactory ( config)
Make an identity ``Transform``

Definition at line 56 of file transformConfig.py.

56def identityFactory(config):
57 """Make an identity ``Transform``
58 """
59 return makeIdentityTransform()
60
61

◆ invertingFactory()

lsst.afw.geom.transformConfig.invertingFactory ( config)
Invert a ``Transform`` specified by config.

Definition at line 79 of file transformConfig.py.

79def invertingFactory(config):
80 """Invert a ``Transform`` specified by config.
81 """
82 return config.transform.apply().inverted()
83
84

◆ multiFactory()

lsst.afw.geom.transformConfig.multiFactory ( config)
Concatenate multiple ``Transforms``

Definition at line 170 of file transformConfig.py.

170def multiFactory(config):
171 """Concatenate multiple ``Transforms``
172 """
173 transformKeys = sorted(config.transformDict.keys())
174 transformList = [config.transformDict[key].transform.apply()
175 for key in transformKeys]
176
177 # Can't use then(self, other) directly because no single Transform class
178 def concat(transform1, transform2):
179 return transform1.then(transform2)
180
181 return functools.reduce(concat, transformList)
182
183

◆ radialFactory()

lsst.afw.geom.transformConfig.radialFactory ( config)
Make a radial ``Transform``

Definition at line 149 of file transformConfig.py.

149def radialFactory(config):
150 """Make a radial ``Transform``
151 """
152 return makeRadialTransform(config.coeffs._list)
153
154

Variable Documentation

◆ ConfigClass

lsst.afw.geom.transformConfig.ConfigClass

Definition at line 62 of file transformConfig.py.

◆ transformRegistry

lsst.afw.geom.transformConfig.transformRegistry
Initial value:
1= makeRegistry(
2
3)

Definition at line 35 of file transformConfig.py.