lsst.analysis.tools¶
analysis_tools
is the plotting and metric framework that is used to perform QA on the pipeline products.
It is a very powerful way to explore and interact with the pipeline outputs.
Using lsst.analysis.tools¶
For a tutorial on working with
analysis_tools
please see the getting started guide.
Need Help?¶
If you get stuck with analysis_tools
then feel free to reach out to the #rubinobs-analysis-tools
channel on slack and hopefully someone will help you!
Contributing¶
lsst.analysis.tools
is developed at https://github.com/lsst/analysis_tools.
You can find Jira issues for this module under the analysis_tools component.
Python API reference¶
lsst.analysis.tools Package¶
Classes¶
|
Base class interface for the various actions used in analysis tools. |
|
Base class for all configs used to define an |
|
Base class for Connections used for AnalysisTools PipelineTasks. |
|
Base class for |
|
A tool which which calculates a single type of analysis on input data, though it may return more than one result. |
|
|
|
|
|
|
|
|
|
A |
|
|
|
A |
|
A |
|
A specialized dict for storing outputs from multiple |
|
A |
|
alias of |
|
This is an interface only class, and is intended to abstract around all the various types of numbers used in Python. |
|
A |
|
|
|
A |
Variables¶
|
|
|
|
|
|
|
Compute the median absolute deviation of the data along the given axis. |
|
Compute the median absolute deviation of the data along the given axis. |
lsst.analysis.tools.actions.plot Package¶
Classes¶
|
|
|
A plotting tool which can take multiple keyed data inputs and can create one or more bar graphs. |
|
Makes a color-color plot and overplots a prefited line to the specified area of the plot. |
|
Configuration options for DiaSkyPlot panels. |
|
Generic pseudo base class for plotting DiaSources (or DiaObjects) on the sky. |
|
|
|
|
|
A Config class that holds parameters to configure a the stats panel shown for histPlot. |
|
|
|
|
|
Calculates the statistics needed for the scatter plot with two hists. |
|
Makes a scatter plot of the data with a marginal histogram for each axis. |
|
Plots the on sky distribution of a parameter. |
|
lsst.analysis.tools.actions.vector Package¶
Classes¶
|
Calculate the difference between two columns, assuming their units are degrees, and convert the difference to arcseconds. |
|
Makes a mask for sources observed in a specified set of bands. |
|
A Config class that holds some of the parameters supported by treecorr. |
|
Calculate a complex value representation of the ellipticity. |
|
Calculate distortion-type \(e1 = (Ixx - Iyy)/(Ixx + Iyy)\) or shear-type \(g1 = (Ixx - Iyy)/(Ixx + Iyy + 2sqrt(Ixx*Iyy - Ixy^{2}))\). |
|
Calculate distortion-type \(e2 = 2Ixy/(Ixx+Iyy)\) or shear-type \(g2 = 2Ixy/(Ixx+Iyy+2\sqrt(Ixx*Iyy - Ixy^{2}))\). |
|
Calculate the difference of two ellipticities as a complex quantity. |
|
Calculate rho statistics |
|
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 |
|
This default setting makes it take the band from the kwargs. |
|
Return a constant scalar value |
|
Calculate (A/B) |
|
Get a vector from KeyedData, apply specified selector, return the shorter Vector. |
|
A selector that picks between extended and point sources. |
|
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. |
|
The base flag selector to use to select valid sources for QA |
|
Calculate (A-B)/B |
|
A selector that picks out galaxies based off of their extendedness values. |
|
Selects good DIA sources from diaSourceTables |
|
Load and return a Vector from KeyedData |
|
Turn nano janskies into magnitudes. |
|
Calculate the difference between two magnitudes; each magnitude is derived from a flux column. |
|
Get a vector from KeyedData, apply specified set of selectors with AND logic, and return the shorter Vector. |
|
Compute per-group statistic values and return result as a vector with one element per group. |
|
Selects rows within a range, inclusive of min/exclusive of max. |
|
Calculate the signal-to-noise. |
|
Selects sky objects in the given band(s) |
|
Selects sky sources from sourceTables |
|
Compute signal-to-noise in the given flux type |
|
Selects points that have S/N > threshold in the given flux type |
|
A selector that picks out stars based off of their extendedness values. |
|
Calculate (A-B) |
|
Return a mask corresponding to an applied threshold. |
|
A selector that picks out unclassified objects based off of their extendedness values. |
|
Load a boolean vector from KeyedData and return it for use as a selector. |
|
Select on a set of flags appropriate for making visit-level plots (i.e., using sourceTable_visit catalogs). |
lsst.analysis.tools.actions.scalar Package¶
Classes¶
|
Returns the median of the lowest ten values of the sorted input. |
|
Returns the number of non nan entries in the given column, |
|
Counts the number of unique rows in a given column. |
|
Compute the fraction of a distribution that is between specified minimum and maximum values, and is not NaN. |
|
Compute the fraction of vector entries that are NaN. |
|
Compute the fraction of a distribution that is above or below a specified threshold. |
|
Returns the maximum of the given data. |
|
Calculates the mean of the given data. |
|
Calculates the median of the given data. |
|
Returns the minimum of the given data. |
|
Calculates the sigma mad of the given data. |
|
Calculates the standard deviation of the given data. |