lsst.meas.modelfit  22.0.1-2-ge470956+9d917ffefc
Public Member Functions | Public Attributes | List of all members
lsst.meas.modelfit.display.interactive.Interactive Class Reference

Public Member Functions

def __init__ (self, root, tag=None, config=None, dataId=None, mode="ccd")
 
def fit (self, outRecord)
 
def plotDistribution (self, *records)
 
def displayOptimizer (self, record, **kwds)
 
def displayResiduals (self, record, nonlinear="fit", amplitudes="fit", doApplyWeights=False)
 

Public Attributes

 mode
 
 butler
 
 dataRef
 
 task
 
 inputs
 

Detailed Description

Interactive analysis helper class

This class manages a butler, calexp, modelfits catalog, and an instance
of a Measure*Task, allowing individual objects to be re-fit and plotted.

Definition at line 44 of file interactive.py.

Constructor & Destructor Documentation

◆ __init__()

def lsst.meas.modelfit.display.interactive.Interactive.__init__ (   self,
  root,
  tag = None,
  config = None,
  dataId = None,
  mode = "ccd" 
)
Construct an interactive analysis object.

@param[in]  rerun    Output directory, relative to $S13_DATA_DIR/output.
                     measureCcd.py (or measureCoadd.py if mode='coadd') must
                     have been run (possibly with prepOnly=True) previously
                     with this output directory.
@param[in]  tag      Tag associated with the run; see BaseMeasureConfig.tag.
                     If None, config must not be (and config.tag will be used).
@param[in]  config   ConfigClass instance; if None, it will be loaded from disk.
@param[in]  dataId   Butler data ID of the image to analyze.
@param[in]  mode     One of "ccd", "coadd", or "multi", indicating whether
                     to use MeasureCcdTask, MeasureCoaddTask, or MeasureMultiTask.

Definition at line 51 of file interactive.py.

Member Function Documentation

◆ displayOptimizer()

def lsst.meas.modelfit.display.interactive.Interactive.displayOptimizer (   self,
  record,
**  kwds 
)

Definition at line 139 of file interactive.py.

◆ displayResiduals()

def lsst.meas.modelfit.display.interactive.Interactive.displayResiduals (   self,
  record,
  nonlinear = "fit",
  amplitudes = "fit",
  doApplyWeights = False 
)
Display the data postage stamp along with the model image and residuals in ds9.

@param[in] record       ModelFitRecord defining the object to display
@param[in] nonlinear    Vector of nonlinear parameters, or a string prefix (see below)
@param[in] amplitudes   Vector of linear parameters, or a string prefix (see below)
@param[in] doApplyWeights  Whether to show the weighted images used directly in the fit
                           or the original unweighted data.

String prefixes are used to extract the parameters from the record.  Usually the following
are available:
  fit ------- use record.get("fit.*"); the best-fit parameters
  initial --- use record.get("initial.*"); the initial parameters

Definition at line 144 of file interactive.py.

◆ fit()

def lsst.meas.modelfit.display.interactive.Interactive.fit (   self,
  outRecord 
)
Re-fit the object indicated by the given record sequential index or source ID,
returning the record.

Definition at line 99 of file interactive.py.

◆ plotDistribution()

def lsst.meas.modelfit.display.interactive.Interactive.plotDistribution (   self,
records 
)
Plot a representation of the posterior distribution from a ModelFitRecord.

Definition at line 107 of file interactive.py.

Member Data Documentation

◆ butler

lsst.meas.modelfit.display.interactive.Interactive.butler

Definition at line 66 of file interactive.py.

◆ dataRef

lsst.meas.modelfit.display.interactive.Interactive.dataRef

Definition at line 72 of file interactive.py.

◆ inputs

lsst.meas.modelfit.display.interactive.Interactive.inputs

Definition at line 97 of file interactive.py.

◆ mode

lsst.meas.modelfit.display.interactive.Interactive.mode

Definition at line 65 of file interactive.py.

◆ task

lsst.meas.modelfit.display.interactive.Interactive.task

Definition at line 96 of file interactive.py.


The documentation for this class was generated from the following file: