IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 17, 2009, 7:59:58 AM (17 years ago)
Author:
eugene
Message:

adding uniq refstar match

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/20091113/psastro/src/psastroOneChipFit.c

    r26167 r26168  
    2828    REQUIRED_RECIPE_VALUE (int nIter, "PSASTRO.MATCH.FIT.NITER", S32);
    2929
     30    // for iterations >= uniqIter, require a single match per reference
     31    REQUIRED_RECIPE_VALUE (int uniqIter, "PSASTRO.MATCH.UNIQ.ITER", S32);
     32
    3033    // correct radius to FP units (physical pixel scale in microns per pixel)
    3134    REQUIRED_RECIPE_VALUE (double pixelScale, "PSASTRO.PIXEL.SCALE", F32);
     
    6164            return false;
    6265        }
     66
     67        if (iter >= uniqIter) {
     68          if (!pmAstromRadiusMatchUniq (rawstars, refstars, match)) {
     69            psLogMsg ("psastro", 3, "failed to generate a uniq find radius-matched sources\n");
     70            return false;
     71          }
     72        }
    6373
    6474        // modify the order to correspond to the actual number of matched stars:
     
    101111        }
    102112
    103         // XXX allow statitic to be set by the user
     113        // XXX allow statistic to be set by the user
    104114        // fitStats = psStatsAlloc (PS_STAT_CLIPPED_MEAN | PS_STAT_CLIPPED_STDEV);
    105115        fitStats = psStatsAlloc (PS_STAT_ROBUST_MEDIAN | PS_STAT_ROBUST_STDEV);
Note: See TracChangeset for help on using the changeset viewer.