RhoStatisticsPlot

class lsst.analysis.tools.actions.plot.RhoStatisticsPlot(*args, **kw)

Bases: PlotAction

Make multiple plots of rho statistics.

Rho statistics capture the spatial correlation amongst various PSF size and shape residual quantities. For exact definitions, see here.

Attributes Summary

rhoPlots

A configurable dict describing the rho statistics to plot.

Methods Summary

__call__(data, **kwargs)

Call self as a function.

getInputSchema()

Return the schema an AnalysisAction expects to be present in the arguments supplied to the __call__ method.

getOutputNames()

Returns a list of names that will be used as keys if this action's call method returns a mapping.

makePlot(data[, plotInfo])

Make the plot(s).

setDefaults()

Subclass hook for computing defaults.

Attributes Documentation

rhoPlots

A configurable dict describing the rho statistics to plot. (ConfigDict, default {})

Methods Documentation

__call__(data: KeyedData, **kwargs) Mapping[str, Figure]

Call self as a function.

getInputSchema() KeyedDataSchema

Return the schema an AnalysisAction expects to be present in the arguments supplied to the __call__ method.

Returns:
resultKeyedDataSchema

The schema this action requires to be present when calling this action, keys are unformatted.

getOutputNames() Iterable[str]

Returns a list of names that will be used as keys if this action’s call method returns a mapping. Otherwise return an empty Iterable

Returns:
resultIterable of str

If a PlotAction produces more than one plot, this should be the keys the action will use in the returned Mapping.

makePlot(data: KeyedData, plotInfo: Mapping[str, str] | None = None, **kwargs: Any) Mapping[str, Figure]

Make the plot(s).

Parameters:
dataDataFrame

The catalog containing various rho statistics.

plotInfodict, optional
A dictionary of information about the data being plotted with keys:
"run"

The output run for the plots (str).

"skymap"

The type of skymap used for the data (str).

"filter"

The filter used for this data (str).

"tract"

The tract that the data comes from (str).

**kwargs

Additional keyword arguments to pass to the plot

Returns:
fig_dictdict [Figure]

The resulting figures. The figure corresponding \(\rho_1(\theta)\) can be accessed with the key rho1 and similarly for the other rho statistics. \(\rho_3'\) is accessed with the key rho3alt.

Examples

An example rho statistics plot may be seen below:

../_images/rhoPlotExample.png

For further details on how to generate a plot, please refer to the getting started guide.

setDefaults() None

Subclass hook for computing defaults.

Notes

Derived Config classes that must compute defaults rather than using the Field instances’s defaults should do so here. To correctly use inherited defaults, implementations of setDefaults must call their base class’s setDefaults.