Action Types

Here is a list of the current actions implemented in analysis_tools, please look at these carefully before adding new actions to avoid duplication.

Plot actions are covered in a separate section.

Vector Actions

lsst.analysis.tools.actions.vector Package

Classes

AstromDiff(*args, **kw)

Calculate the difference between two columns, assuming their units are degrees, and convert the difference to arcseconds.

BandSelector(*args, **kw)

Makes a mask for sources observed in a specified set of bands.

BinnedCorr2Config(*args, **kw)

A Config class that holds some of the parameters supported by treecorr.

CalcE(*args, **kw)

Calculate a complex value representation of the ellipticity.

CalcE1(*args, **kw)

Calculate distortion-type \(e1 = (Ixx - Iyy)/(Ixx + Iyy)\) or shear-type \(g1 = (Ixx - Iyy)/(Ixx + Iyy + 2sqrt(Ixx*Iyy - Ixy^{2}))\).

CalcE2(*args, **kw)

Calculate distortion-type \(e2 = 2Ixy/(Ixx+Iyy)\) or shear-type \(g2 = 2Ixy/(Ixx+Iyy+2\sqrt(Ixx*Iyy - Ixy^{2}))\).

CalcEDiff(*args, **kw)

Calculate the difference of two ellipticities as a complex quantity.

CalcRhoStatistics(*args, **kw)

Calculate rho statistics

CalcShapeSize(*args, **kw)

Calculate a size: (Ixx*Iyy - Ixy**2)**0.25 OR (0.5*(Ixx + Iyy))**0.5 The square of size measure is typically expressed either as the arithmetic mean of the eigenvalues of the moment matrix (trace radius) or as the geometric mean of the eigenvalues (determinant radius), which can be specified using the sizeType parameter.

CoaddPlotFlagSelector(*args, **kw)

This default setting makes it take the band from the kwargs.

ConstantValue(*args, **kw)

Return a constant scalar value

DivideVector(*args, **kw)

Calculate (A/B)

DownselectVector(*args, **kw)

Get a vector from KeyedData, apply specified selector, return the shorter Vector.

ExtendednessSelector(*args, **kw)

A selector that picks between extended and point sources.

ExtinctionCorrectedMagDiff(*args, **kw)

Compute the difference between two magnitudes and correct for extinction By default bands are derived from the <band>_ prefix on flux columns, per the naming convention in the Object Table: e.g.

FlagSelector(*args, **kw)

The base flag selector to use to select valid sources for QA

FractionalDifference(*args, **kw)

Calculate (A-B)/B

GalaxySelector(*args, **kw)

A selector that picks out galaxies based off of their extendedness values.

GoodDiaSourceSelector(*args, **kw)

Selects good DIA sources from diaSourceTables

LoadVector(*args, **kw)

Load and return a Vector from KeyedData

MagColumnNanoJansky(*args, **kw)

Turn nano janskies into magnitudes.

MagDiff(*args, **kw)

Calculate the difference between two magnitudes; each magnitude is derived from a flux column.

MultiCriteriaDownselectVector(*args, **kw)

Get a vector from KeyedData, apply specified set of selectors with AND logic, and return the shorter Vector.

PerGroupStatistic(*args, **kw)

Compute per-group statistic values and return result as a vector with one element per group.

RangeSelector(*args, **kw)

Selects rows within a range, inclusive of min/exclusive of max.

SNCalculator(*args, **kw)

Calculate the signal-to-noise.

SkyObjectSelector(*args, **kw)

Selects sky objects in the given band(s)

SkySourceSelector(*args, **kw)

Selects sky sources from sourceTables

Sn(*args, **kw)

Compute signal-to-noise in the given flux type

SnSelector(*args, **kw)

Selects points that have S/N > threshold in the given flux type

StarSelector(*args, **kw)

A selector that picks out stars based off of their extendedness values.

SubtractVector(*args, **kw)

Calculate (A-B)

ThresholdSelector(*args, **kw)

Return a mask corresponding to an applied threshold.

UnknownSelector(*args, **kw)

A selector that picks out unclassified objects based off of their extendedness values.

VectorSelector(*args, **kw)

Load a boolean vector from KeyedData and return it for use as a selector.

VisitPlotFlagSelector(*args, **kw)

Select on a set of flags appropriate for making visit-level plots (i.e., using sourceTable_visit catalogs).

Class Inheritance Diagram

Inheritance diagram of lsst.analysis.tools.actions.vector.vectorActions.AstromDiff, lsst.analysis.tools.actions.vector.selectors.BandSelector, lsst.analysis.tools.actions.vector.calcRhoStatistics.BinnedCorr2Config, lsst.analysis.tools.actions.vector.ellipticity.CalcE, lsst.analysis.tools.actions.vector.ellipticity.CalcE1, lsst.analysis.tools.actions.vector.ellipticity.CalcE2, lsst.analysis.tools.actions.vector.ellipticity.CalcEDiff, lsst.analysis.tools.actions.vector.calcRhoStatistics.CalcRhoStatistics, lsst.analysis.tools.actions.vector.calcShapeSize.CalcShapeSize, lsst.analysis.tools.actions.vector.selectors.CoaddPlotFlagSelector, lsst.analysis.tools.actions.vector.vectorActions.ConstantValue, lsst.analysis.tools.actions.vector.vectorActions.DivideVector, lsst.analysis.tools.actions.vector.vectorActions.DownselectVector, lsst.analysis.tools.actions.vector.selectors.ExtendednessSelector, lsst.analysis.tools.actions.vector.vectorActions.ExtinctionCorrectedMagDiff, lsst.analysis.tools.actions.vector.selectors.FlagSelector, lsst.analysis.tools.actions.vector.vectorActions.FractionalDifference, lsst.analysis.tools.actions.vector.selectors.GalaxySelector, lsst.analysis.tools.actions.vector.selectors.GoodDiaSourceSelector, lsst.analysis.tools.actions.vector.vectorActions.LoadVector, lsst.analysis.tools.actions.vector.vectorActions.MagColumnNanoJansky, lsst.analysis.tools.actions.vector.vectorActions.MagDiff, lsst.analysis.tools.actions.vector.vectorActions.MultiCriteriaDownselectVector, lsst.analysis.tools.actions.vector.vectorActions.PerGroupStatistic, lsst.analysis.tools.actions.vector.selectors.RangeSelector, lsst.analysis.tools.actions.vector.vectorActions.SNCalculator, lsst.analysis.tools.actions.vector.selectors.SkyObjectSelector, lsst.analysis.tools.actions.vector.selectors.SkySourceSelector, lsst.analysis.tools.actions.vector.vectorActions.Sn, lsst.analysis.tools.actions.vector.selectors.SnSelector, lsst.analysis.tools.actions.vector.selectors.StarSelector, lsst.analysis.tools.actions.vector.vectorActions.SubtractVector, lsst.analysis.tools.actions.vector.selectors.ThresholdSelector, lsst.analysis.tools.actions.vector.selectors.UnknownSelector, lsst.analysis.tools.actions.vector.selectors.VectorSelector, lsst.analysis.tools.actions.vector.selectors.VisitPlotFlagSelector

Scalar Actions

lsst.analysis.tools.actions.scalar Package

Classes

ApproxFloor(*args, **kw)

Returns the median of the lowest ten values of the sorted input.

CountAction(*args, **kw)

Returns the number of non nan entries in the given column,

CountUniqueAction(*args, **kw)

Counts the number of unique rows in a given column.

FracInRange(*args, **kw)

Compute the fraction of a distribution that is between specified minimum and maximum values, and is not NaN.

FracNan(*args, **kw)

Compute the fraction of vector entries that are NaN.

FracThreshold(*args, **kw)

Compute the fraction of a distribution that is above or below a specified threshold.

MaxAction(*args, **kw)

Returns the maximum of the given data.

MeanAction(*args, **kw)

Calculates the mean of the given data.

MedianAction(*args, **kw)

Calculates the median of the given data.

MinAction(*args, **kw)

Returns the minimum of the given data.

SigmaMadAction(*args, **kw)

Calculates the sigma mad of the given data.

StdevAction(*args, **kw)

Calculates the standard deviation of the given data.

Class Inheritance Diagram

Inheritance diagram of lsst.analysis.tools.actions.scalar.scalarActions.ApproxFloor, lsst.analysis.tools.actions.scalar.scalarActions.CountAction, lsst.analysis.tools.actions.scalar.scalarActions.CountUniqueAction, lsst.analysis.tools.actions.scalar.scalarActions.FracInRange, lsst.analysis.tools.actions.scalar.scalarActions.FracNan, lsst.analysis.tools.actions.scalar.scalarActions.FracThreshold, lsst.analysis.tools.actions.scalar.scalarActions.MaxAction, lsst.analysis.tools.actions.scalar.scalarActions.MeanAction, lsst.analysis.tools.actions.scalar.scalarActions.MedianAction, lsst.analysis.tools.actions.scalar.scalarActions.MinAction, lsst.analysis.tools.actions.scalar.scalarActions.SigmaMadAction, lsst.analysis.tools.actions.scalar.scalarActions.StdevAction