IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 19312


Ignore:
Timestamp:
Sep 2, 2008, 9:11:00 AM (18 years ago)
Author:
eugene
Message:

allow more iterations, allow arbitrary errors if maxError is 0

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psastro/src/psastroMosaicOneChip.c

    r15562 r19312  
    1212    char errorWord[64];
    1313    char orderWord[64];
    14 
    15     assert (iteration < 4);
    1614
    1715    PS_ASSERT_PTR_NON_NULL(chip,    false);
     
    8684
    8785    // XXX allow statitic to be set by the user
    88     psStats *fitStats = psStatsAlloc (PS_STAT_CLIPPED_MEAN | PS_STAT_CLIPPED_STDEV);
    89     fitStats->clipSigma = psMetadataLookupF32 (&status, recipe, "PSASTRO.MOSAIC.CHIP.NSIGMA");
    90     fitStats->clipIter = psMetadataLookupS32 (&status, recipe, "PSASTRO.MOSAIC.CHIP.NITER");
     86    // only clip if we are fitting the chip parameters.
     87    psStats *fitStats = NULL;
     88//    if (order == 0) {
     89//      fitStats = psStatsAlloc (PS_STAT_CLIPPED_MEAN | PS_STAT_CLIPPED_STDEV);
     90//      fitStats->clipSigma = psMetadataLookupF32 (&status, recipe, "PSASTRO.MOSAIC.CHIP.NSIGMA");
     91//      fitStats->clipIter = psMetadataLookupS32 (&status, recipe, "PSASTRO.MOSAIC.CHIP.NITER");
     92//    } else {
     93        fitStats = psStatsAlloc (PS_STAT_CLIPPED_MEAN | PS_STAT_CLIPPED_STDEV);
     94        fitStats->clipSigma = psMetadataLookupF32 (&status, recipe, "PSASTRO.MOSAIC.CHIP.NSIGMA");
     95        fitStats->clipIter = psMetadataLookupS32 (&status, recipe, "PSASTRO.MOSAIC.CHIP.NITER");
     96//    }
    9197
    9298    // need to pass in an update header, sent in from above
     
    117123    // XXX should these result in errors or be handled another way?
    118124    psLogMsg ("psastro", PS_LOG_INFO, "astrometry solution: error: %f arcsec, Nstars: %d", astError, astNstar);
    119     if (astError > maxError) {
     125    if ((maxError > 0) && (astError > maxError)) {
    120126        psLogMsg("psastro", PS_LOG_INFO, "residual error is too large, failed to find a solution: %f > %f", astError, maxError);
    121127        validSolution = false;
Note: See TracChangeset for help on using the changeset viewer.