LSSTApplications  17.0+124,17.0+14,17.0+73,18.0.0+37,18.0.0+80,18.0.0-4-g68ffd23+4,18.1.0-1-g0001055+12,18.1.0-1-g03d53ef+5,18.1.0-1-g1349e88+55,18.1.0-1-g2505f39+44,18.1.0-1-g5315e5e+4,18.1.0-1-g5e4b7ea+14,18.1.0-1-g7e8fceb+4,18.1.0-1-g85f8cd4+48,18.1.0-1-g8ff0b9f+4,18.1.0-1-ga2c679d+1,18.1.0-1-gd55f500+35,18.1.0-10-gb58edde+2,18.1.0-11-g0997b02+4,18.1.0-13-gfe4edf0b+12,18.1.0-14-g259bd21+21,18.1.0-19-gdb69f3f+2,18.1.0-2-g5f9922c+24,18.1.0-2-gd3b74e5+11,18.1.0-2-gfbf3545+32,18.1.0-26-g728bddb4+5,18.1.0-27-g6ff7ca9+2,18.1.0-3-g52aa583+25,18.1.0-3-g8ea57af+9,18.1.0-3-gb69f684+42,18.1.0-3-gfcaddf3+6,18.1.0-32-gd8786685a,18.1.0-4-gf3f9b77+6,18.1.0-5-g1dd662b+2,18.1.0-5-g6dbcb01+41,18.1.0-6-gae77429+3,18.1.0-7-g9d75d83+9,18.1.0-7-gae09a6d+30,18.1.0-9-gc381ef5+4,w.2019.45
LSSTDataManagementBasePackage
Public Types | Public Member Functions | Public Attributes | List of all members
lsst::meas::modelfit::CModelResult Struct Reference

Master result object for CModel, containing results for the final linear fit and three nested CModelStageResult objects for the results of the previous stages. More...

#include <CModel.h>

Public Types

enum  FlagBit {
  FAILED =0, REGION_MAX_AREA, REGION_MAX_BAD_PIXEL_FRACTION, REGION_USED_FOOTPRINT_AREA,
  REGION_USED_PSF_AREA, REGION_USED_INITIAL_ELLIPSE_MIN, REGION_USED_INITIAL_ELLIPSE_MAX, NO_SHAPE,
  SMALL_SHAPE, NO_SHAPELET_PSF, BAD_CENTROID, BAD_REFERENCE,
  N_FLAGS
}
 Flags that apply to all four CModel fits or just the last one. More...
 

Public Member Functions

 CModelResult ()
 

Public Attributes

Scalar instFlux
 Flux from the final linear fit. More...
 
Scalar instFluxErr
 Flux uncertainty from the final linear fit. More...
 
Scalar instFluxInner
 Flux measured strictly within the fit region (no extrapolation). More...
 
Scalar fracDev
 Fraction of flux from the final linear fit in the de Vaucouleur component (always between 0 and 1). More...
 
Scalar objective
 Objective value at the best-fit point (chisq/2) More...
 
CModelStageResult initial
 Results from the initial approximate nonlinear fit that feeds the others. More...
 
CModelStageResult exp
 Results from the exponential (Sersic n=1) fit. More...
 
CModelStageResult dev
 Results from the de Vaucouleur (Sersic n=4) fit. More...
 
afw::geom::ellipses::Quadrupole initialFitRegion
 Pixels used in the initial fit. More...
 
afw::geom::ellipses::Quadrupole finalFitRegion
 Pixels used in the exp, dev, and linear fits. More...
 
LocalUnitTransform fitSysToMeasSys
 Transforms to the coordinate system where parameters are defined. More...
 
std::bitset< N_FLAGSflags
 Array of flags. More...
 

Detailed Description

Master result object for CModel, containing results for the final linear fit and three nested CModelStageResult objects for the results of the previous stages.

Definition at line 333 of file CModel.h.

Member Enumeration Documentation

◆ FlagBit

Flags that apply to all four CModel fits or just the last one.

Enumerator
FAILED 

General failure flag for the linear fit flux; set if any other CModel flag is set, or if any of the three previous stages failed.

REGION_MAX_AREA 

Set if we aborted early because the fit region was too large.

REGION_MAX_BAD_PIXEL_FRACTION 

Set if we aborted early because the fit region had too many bad pixels.

REGION_USED_FOOTPRINT_AREA 

Kron radius was unavailable or outside bounds, so the second-moment ellipse scaled to the footprint area was used instead.

REGION_USED_PSF_AREA 

Kron radius was unavailable or outside bounds, so the second-moment ellipse scaled to the PSF area was used instead.

REGION_USED_INITIAL_ELLIPSE_MIN 

Fit region implied by the best-fit ellipse of the initial was too small, so we used the configuration minimum instead.

REGION_USED_INITIAL_ELLIPSE_MAX 

Fit region implied by the best-fit ellipse of the initial was too large, so we used the configuration maximum instead.

NO_SHAPE 

Set if the input SourceRecord had no valid shape slot with which to start the fit.

SMALL_SHAPE 

Initial moments were sufficiently small that we used minInitialRadius to set the initial parameters.

NO_SHAPELET_PSF 

Set if the Psf shapelet approximation failed.

BAD_CENTROID 

Input centroid did not land within the fit region.

BAD_REFERENCE 

Reference fit failed, so forced fit will fail as well.

N_FLAGS 

Non-flag counter to indicate the number of flags.

Definition at line 336 of file CModel.h.

336  {
337  FAILED=0,
350  NO_SHAPE,
352  SMALL_SHAPE,
356  BAD_CENTROID,
357  BAD_REFERENCE,
358  N_FLAGS
359  };
Set if the input SourceRecord had no valid shape slot with which to start the fit.
Definition: CModel.h:351
Fit region implied by the best-fit ellipse of the initial was too small, so we used the configuration...
Definition: CModel.h:347
General failure flag for the linear fit flux; set if any other CModel flag is set, or if any of the three previous stages failed.
Definition: CModel.h:337
Fit region implied by the best-fit ellipse of the initial was too large, so we used the configuration...
Definition: CModel.h:349
Set if we aborted early because the fit region had too many bad pixels.
Definition: CModel.h:340
Initial moments were sufficiently small that we used minInitialRadius to set the initial parameters...
Definition: CModel.h:353
Set if we aborted early because the fit region was too large.
Definition: CModel.h:339
Non-flag counter to indicate the number of flags.
Definition: CModel.h:358
Set if the Psf shapelet approximation failed.
Definition: CModel.h:355
Reference fit failed, so forced fit will fail as well.
Definition: CModel.h:357
Kron radius was unavailable or outside bounds, so the second-moment ellipse scaled to the footprint a...
Definition: CModel.h:342
Kron radius was unavailable or outside bounds, so the second-moment ellipse scaled to the PSF area wa...
Definition: CModel.h:345
Input centroid did not land within the fit region.
Definition: CModel.h:356

Constructor & Destructor Documentation

◆ CModelResult()

lsst::meas::modelfit::CModelResult::CModelResult ( )

Member Data Documentation

◆ dev

CModelStageResult lsst::meas::modelfit::CModelResult::dev

Results from the de Vaucouleur (Sersic n=4) fit.

Definition at line 372 of file CModel.h.

◆ exp

CModelStageResult lsst::meas::modelfit::CModelResult::exp

Results from the exponential (Sersic n=1) fit.

Definition at line 371 of file CModel.h.

◆ finalFitRegion

afw::geom::ellipses::Quadrupole lsst::meas::modelfit::CModelResult::finalFitRegion

Pixels used in the exp, dev, and linear fits.

Definition at line 375 of file CModel.h.

◆ fitSysToMeasSys

LocalUnitTransform lsst::meas::modelfit::CModelResult::fitSysToMeasSys

Transforms to the coordinate system where parameters are defined.

Definition at line 377 of file CModel.h.

◆ flags

std::bitset<N_FLAGS> lsst::meas::modelfit::CModelResult::flags

Array of flags.

Definition at line 378 of file CModel.h.

◆ fracDev

Scalar lsst::meas::modelfit::CModelResult::fracDev

Fraction of flux from the final linear fit in the de Vaucouleur component (always between 0 and 1).

Definition at line 366 of file CModel.h.

◆ initial

CModelStageResult lsst::meas::modelfit::CModelResult::initial

Results from the initial approximate nonlinear fit that feeds the others.

Definition at line 370 of file CModel.h.

◆ initialFitRegion

afw::geom::ellipses::Quadrupole lsst::meas::modelfit::CModelResult::initialFitRegion

Pixels used in the initial fit.

Definition at line 374 of file CModel.h.

◆ instFlux

Scalar lsst::meas::modelfit::CModelResult::instFlux

Flux from the final linear fit.

Definition at line 363 of file CModel.h.

◆ instFluxErr

Scalar lsst::meas::modelfit::CModelResult::instFluxErr

Flux uncertainty from the final linear fit.

Definition at line 364 of file CModel.h.

◆ instFluxInner

Scalar lsst::meas::modelfit::CModelResult::instFluxInner

Flux measured strictly within the fit region (no extrapolation).

Definition at line 365 of file CModel.h.

◆ objective

Scalar lsst::meas::modelfit::CModelResult::objective

Objective value at the best-fit point (chisq/2)

Definition at line 368 of file CModel.h.


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