lsst.pipe.tasks gd5638573c2+392ae78cd2
Loading...
Searching...
No Matches
lsst.pipe.tasks.functors.MomentsBase Class Reference
Inheritance diagram for lsst.pipe.tasks.functors.MomentsBase:
lsst.pipe.tasks.functors.Functor lsst.pipe.tasks.functors.MomentsG1Sky lsst.pipe.tasks.functors.MomentsG2Sky lsst.pipe.tasks.functors.MomentsIuuSky lsst.pipe.tasks.functors.MomentsIuvSky lsst.pipe.tasks.functors.MomentsIvvSky lsst.pipe.tasks.functors.MomentsTraceSky lsst.pipe.tasks.functors.PositionAngleFromMoments lsst.pipe.tasks.functors.SemimajorAxisFromMoments lsst.pipe.tasks.functors.SemiminorAxisFromMoments

Public Member Functions

 __init__ (self, shape_1_1, shape_2_2, shape_1_2, colCD_1_1, colCD_1_2, colCD_2_1, colCD_2_2, **kwargs)
 columns (self)
 columns_ref (self)
 compute_ellipse_terms (self, df, bool sky=True)
 get_xx (self, df)
 get_yy (self, df)
 get_xy (self, df)
 sky_uu (self, df)
 sky_vv (self, df)
 sky_uv (self, df)
 get_g1 (self, df)
 get_g2 (self, df)
 get_trace (self, df)
Public Member Functions inherited from lsst.pipe.tasks.functors.Functor
 __init__ (self, filt=None, dataset=None, noDup=None)
 noDup (self)
 multilevelColumns (self, data, columnIndex=None, returnTuple=False)
 __call__ (self, data, dropna=False)
 difference (self, data1, data2, **kwargs)
 fail (self, df)
 name (self)
 shortname (self)

Public Attributes

 shape_1_1 = shape_1_1
 shape_2_2 = shape_2_2
 shape_1_2 = shape_1_2
 colCD_1_1 = colCD_1_1
 colCD_1_2 = colCD_1_2
 colCD_2_1 = colCD_2_1
 colCD_2_2 = colCD_2_2
Public Attributes inherited from lsst.pipe.tasks.functors.Functor
 filt = filt
str dataset = dataset if dataset is not None else self._defaultDataset
 log = logging.getLogger(type(self).__name__)
 name

Static Public Attributes

bool is_covariance = True

Additional Inherited Members

Protected Member Functions inherited from lsst.pipe.tasks.functors.Functor
 _get_data_columnLevels (self, data, columnIndex=None)
 _get_data_columnLevelNames (self, data, columnIndex=None)
 _colsFromDict (self, colDict, columnIndex=None)
 _func (self, df, dropna=True)
 _get_columnIndex (self, data)
 _get_data (self, data)
 _setLevels (self, df)
 _dropna (self, vals)
Protected Attributes inherited from lsst.pipe.tasks.functors.Functor
 _noDup = noDup
Static Protected Attributes inherited from lsst.pipe.tasks.functors.Functor
str _defaultDataset = 'ref'
tuple _dfLevels = ('column',)
bool _defaultNoDup = False

Detailed Description

Base class for functors that use shape moments and localWCS

Attributes
----------
is_covariance : bool
    Whether the shape columns are terms of a covariance matrix. If False,
    they will be assumed to be terms of a correlation matrix instead.

Member Function Documentation

◆ columns()

lsst.pipe.tasks.functors.MomentsBase.columns ( self)
Columns required to perform calculation.

Reimplemented from lsst.pipe.tasks.functors.Functor.

◆ columns_ref()

lsst.pipe.tasks.functors.MomentsBase.columns_ref ( self)
Return columns that are needed from the ref table.

◆ compute_ellipse_terms()

lsst.pipe.tasks.functors.MomentsBase.compute_ellipse_terms ( self,
df,
bool sky = True )
Return terms commonly used for ellipse parameterization conversions.

Parameters
----------
df
    The data frame.
sky
    Whether to compute the terms in sky coordinates.
    If False, XX, YY and XY moments are used instead of
    UU, VV and UV.

Returns
-------
xx_p_yy
    The sum of the diagonal terms of the covariance.
xx_m_yy
    The difference of the diagonal terms of the covariance.
t2
    A term similar to the discriminant of the quadratic formula.

◆ get_g1()

lsst.pipe.tasks.functors.MomentsBase.get_g1 ( self,
df )
Calculate shear-type ellipticity parameter G1.

◆ get_g2()

lsst.pipe.tasks.functors.MomentsBase.get_g2 ( self,
df )
Calculate shear-type ellipticity parameter G2.

This has the opposite sign as sky_uv in order to maintain consistency with the HSM moments
sign convention.

◆ sky_uu()

lsst.pipe.tasks.functors.MomentsBase.sky_uu ( self,
df )
Return the component of the moments tensor aligned with the RA axis, in radians.

◆ sky_uv()

lsst.pipe.tasks.functors.MomentsBase.sky_uv ( self,
df )
Return the covariance of the moments tensor in ra, dec coordinates, in radians.

◆ sky_vv()

lsst.pipe.tasks.functors.MomentsBase.sky_vv ( self,
df )
Return the component of the moments tensor aligned with the dec axis, in radians.

The documentation for this class was generated from the following file:
  • python/lsst/pipe/tasks/functors.py