IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 10, 2006, 10:21:36 AM (20 years ago)
Author:
magnier
Message:

adding chisq-flux trend corrections; adding option to use non-poisson errors for fits

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/rel10_ifa/psModules/src/objects/pmSourceFitSet.c

    r6751 r6825  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.1.2.3 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-04-01 02:47:20 $
     5 *  @version $Revision: 1.1.2.4 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-04-10 20:21:36 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    182182    psS32 nPix = source->pixels->numRows * source->pixels->numCols;
    183183
     184    // local sky variance
     185    psF32 dSky = source->moments->dSky;
     186
    184187    // construct the coordinate and value entries
    185188    psArray *x = psArrayAlloc(nPix);
     
    206209            y->data.F32[nPix] = source->pixels->data.F32[i][j];
    207210            // psMinimizeLMChi2 takes wt = 1/dY^2
    208             yErr->data.F32[nPix] = 1.0 / source->weight->data.F32[i][j];
     211            if (PM_PSF_POISSON_WEIGHTS) {
     212                yErr->data.F32[nPix] = 1.0 / source->weight->data.F32[i][j];
     213            } else {
     214                yErr->data.F32[nPix] = 1.0 / dSky;
     215            }
    209216            nPix++;
    210217        }
Note: See TracChangeset for help on using the changeset viewer.