IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 15102


Ignore:
Timestamp:
Sep 28, 2007, 4:28:04 PM (19 years ago)
Author:
eugene
Message:

correct number of iteration

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/astrom/pmAstrometryObjects.c

    r15051 r15102  
    88*  @author EAM, IfA
    99*
    10 *  @version $Revision: 1.33 $ $Name: not supported by cvs2svn $
    11 *  @date $Date: 2007-09-28 00:37:59 $
     10*  @version $Revision: 1.34 $ $Name: not supported by cvs2svn $
     11*  @date $Date: 2007-09-29 02:28:04 $
    1212*
    1313*  Copyright 2004-2005 Maui High Performance Computing Center, University of Hawaii
     
    236236    *results->xStats = *stats;
    237237    *results->yStats = *stats;
     238
     239    int nIter = stats->clipIter;
     240
    238241    results->xStats->clipIter = 1;
    239242    results->yStats->clipIter = 1;
     
    242245    // we run 'clipIter' cycles clipping in each of x and y, with only one iteration each
    243246    // need to use the stats lookups functions to get the width and center
    244     for (int i = 0; i < stats->clipIter; i++) {
     247    for (int i = 0; i < nIter; i++) {
    245248        psVectorClipFitPolynomial2D (map->x, results->xStats, mask, 0xff, x, wt, X, Y);
    246249        // psTrace ("psModules.astrom", 3, "x resid: %f +/- %f (%ld of %ld)\n", results->xStats->robustMedian, results->xStats->robustStdev, results->xStats->clippedNvalues, x->n);
     
    583586
    584587        # if 0
    585 
    586588        char line[16];
    587589        psFits *fits = psFitsOpen ("grid.image.fits", "w");
Note: See TracChangeset for help on using the changeset viewer.