IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 9808


Ignore:
Timestamp:
Oct 31, 2006, 9:38:04 AM (20 years ago)
Author:
magnier
Message:

if-def out some test code, comments describing SXY fitting issues

File:
1 edited

Legend:

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

    r9778 r9808  
    66 *  @author EAM, IfA
    77 *
    8  *  @version $Revision: 1.13 $ $Name: not supported by cvs2svn $
    9  *  @date $Date: 2006-10-30 03:04:03 $
     8 *  @version $Revision: 1.14 $ $Name: not supported by cvs2svn $
     9 *  @date $Date: 2006-10-31 19:38:04 $
    1010 *
    1111 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    219219
    220220        // XXX Test output
    221         psPolynomial2D *poly = psf->params_NEW->data[i];
     221        # if (0)
     222
     223            psPolynomial2D *poly = psf->params_NEW->data[i];
    222224        fprintf (stderr, "stats: %f +/- %f\n", stats->robustMedian, stats->robustStdev);
    223225        fprintf (stderr, "PO: %g %g %g\n", poly->coeff[0][0], poly->coeff[1][0], poly->coeff[0][1]);
    224226        fprintf (stderr, "PO: %g %g %g\n", poly->coeff[0][2], poly->coeff[1][1], poly->coeff[2][0]);
     227        fprintf (stderr, "PO: %g %g %g\n", poly->coeff[0][0], poly->coeff[1][0], poly->coeff[0][1]);
     228        fprintf (stderr, "PO: %g %g %g\n", poly->coeff[0][2], poly->coeff[1][1], poly->coeff[2][0]);
     229        # endif
     230
    225231    }
    226232
     
    298304// these are the values of the model->params.  the psf->params term for sxy is actually fitted
    299305// to sxy/(sxx^-2 + syy^-2)^2
     306
     307// XXX this is only an approximate solution.  A better solution would be to fit the second moment, Mxy. the
     308// problem here is that converting from Mxy,SXX,SYY -> SXY is a third order problem:
     309// Mxy = SXY * (SXX^-4 + SYY^-4 - 2 SXY ^2)
    300310
    301311// input: model->param, output: psf->param[PM_PAR_SXY]
Note: See TracChangeset for help on using the changeset viewer.