IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19948


Ignore:
Timestamp:
Oct 7, 2008, 10:06:25 AM (18 years ago)
Author:
eugene
Message:

handle chisq case for model missing

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceIO_PS1_DEV_1.c

    r19904 r19948  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2008-10-06 13:02:43 $
     5 *  @version $Revision: 1.12 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2008-10-07 20:06:25 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    6161    psF32 xPos, yPos;
    6262    psF32 xErr, yErr;
    63     psF32 errMag;
     63    psF32 errMag, chisq;
    6464
    6565    // let's write these out in S/N order
     
    8484            yErr = dPAR[PM_PAR_YPOS];
    8585            axes = pmPSF_ModelToAxes (PAR, 20.0);
     86            chisq = model->chisq;
    8687
    8788            // need to determine the PSF photometry error: source->errMag is the error on the 'best' model mag.
     
    9596            axes.minor = NAN;
    9697            axes.theta = NAN;
     98            chisq = NAN;
    9799            errMag = NAN;
    98100        }
     
    114116        psMetadataAdd (row, PS_LIST_TAIL, "SKY_SIGMA",        PS_DATA_F32, "Sigma of sky level",                         source->skyErr);
    115117
    116         psMetadataAdd (row, PS_LIST_TAIL, "PSF_CHISQ",        PS_DATA_F32,  "Chisq of PSF-fit",                          model->chisq);
     118        psMetadataAdd (row, PS_LIST_TAIL, "PSF_CHISQ",        PS_DATA_F32,  "Chisq of PSF-fit",                          chisq);
    117119        psMetadataAdd (row, PS_LIST_TAIL, "CR_NSIGMA",        PS_DATA_F32,  "Nsigma deviations from PSF to CF",          source->crNsigma);
    118120        psMetadataAdd (row, PS_LIST_TAIL, "EXT_NSIGMA",       PS_DATA_F32,  "Nsigma deviations from PSF to EXT",         source->extNsigma);
Note: See TracChangeset for help on using the changeset viewer.