GIM2D/GREDCHI2

Parameters

       imlist = "@galname.list" List of image root names
     (ccdgain = 7.)             CCD gain (electrons/DU)

GREDCHI2 computes the reduced CHI2 of the best model fit. It is a stand-alone of the subroutine redchi2 in GIMFIT2D.

GREDCHI2 takes an image rootname or list of image rootnames as input. Each rootname is expanded into a segmentation image name ("_m" suffix), a galaxy best model image name ("_o"), and a residual image name ("_r"). GREDCHI2 computes the reduce CHI2 of the best model fit using pixels in the segmentation image which have been flagged by SExtractor as belonging either to the object or the background. The reduced CHI2 value is written to the residual image header (Keyword = REDCHI2).

Last Update: 10 July 1997
Comments/questions to Luc.Simard(at)nrc-cnrc.gc.ca