MomentsIuvSky

class lsst.pipe.tasks.functors.MomentsIuvSky(shape_1_1, shape_2_2, shape_1_2, colCD_1_1, colCD_1_2, colCD_2_1, colCD_2_2, **kwargs)

Bases: MomentsBase

Rotate pixel moments Ixx,Iyy,Ixy into ra,dec frame and arcseconds

Attributes Summary

columns

Columns required to perform calculation.

columns_ref

Return columns that are needed from the ref table.

is_covariance

name

noDup

Do not explode by band if used on object table.

shortname

Methods Summary

__call__(data[, dropna])

Call self as a function.

compute_ellipse_terms(df[, sky])

Return terms commonly used for ellipse parameterization conversions.

difference(data1, data2, **kwargs)

Computes difference between functor called on two different DataFrame/Handle objects.

fail(df)

get_xx(df)

get_xy(df)

get_yy(df)

multilevelColumns(data[, columnIndex, ...])

Returns columns needed by functor from multilevel dataset.

sky_uu(df)

Return the component of the moments tensor aligned with the RA axis, in radians.

sky_uv(df)

Return the covariance of the moments tensor in ra, dec coordinates, in radians.

sky_vv(df)

Return the component of the moments tensor aligned with the dec axis, in radians.

Attributes Documentation

columns
columns_ref

Return columns that are needed from the ref table.

is_covariance: bool = True
name = 'moments_uv'
noDup

Do not explode by band if used on object table.

shortname = 'moments_uv'

Methods Documentation

__call__(data, dropna=False)

Call self as a function.

compute_ellipse_terms(df, sky: bool = 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.

difference(data1, data2, **kwargs)

Computes difference between functor called on two different DataFrame/Handle objects.

fail(df)
get_xx(df)
get_xy(df)
get_yy(df)
multilevelColumns(data, columnIndex=None, returnTuple=False)

Returns columns needed by functor from multilevel dataset.

To access tables with multilevel column structure, the DeferredDatasetHandle or InMemoryDatasetHandle needs to be passed either a list of tuples or a dictionary.

Parameters:
datavarious

The data as either DeferredDatasetHandle, or InMemoryDatasetHandle.

columnIndex (optional): pandas `~pandas.Index` object

Either passed or read in from DeferredDatasetHandle.

`returnTuple`bool

If true, then return a list of tuples rather than the column dictionary specification. This is set to True by CompositeFunctor in order to be able to combine columns from the various component functors.

sky_uu(df)

Return the component of the moments tensor aligned with the RA axis, in radians.

sky_uv(df)

Return the covariance of the moments tensor in ra, dec coordinates, in radians.

sky_vv(df)

Return the component of the moments tensor aligned with the dec axis, in radians.