lsst.meas.modelfit  13.0-8-g8613bc8+15
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Pages
Public Member Functions | Public Attributes | List of all members
lsst.meas.modelfit.display.interactive.Interactive Class Reference
Inheritance diagram for lsst.meas.modelfit.display.interactive.Interactive:

Public Member Functions

def __init__
 
def fit
 
def plotDistribution
 
def displayOptimizer
 
def displayResiduals
 

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 50 of file interactive.py.

Constructor & Destructor Documentation

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 57 of file interactive.py.

Member Function Documentation

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

Definition at line 145 of file interactive.py.

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 150 of file interactive.py.

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 105 of file interactive.py.

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

Definition at line 113 of file interactive.py.

Member Data Documentation

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

Definition at line 72 of file interactive.py.

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

Definition at line 78 of file interactive.py.

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

Definition at line 103 of file interactive.py.

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

Definition at line 71 of file interactive.py.

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

Definition at line 102 of file interactive.py.


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