IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 9, 2008, 2:39:01 PM (18 years ago)
Author:
beaumont
Message:

merged mainline into branch. resolved conflicts. added plots.

Location:
branches/cnb_branch_20080830/psastro/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/cnb_branch_20080830/psastro/src

    • Property svn:ignore
      •  

        old new  
        1515psastroModel
        1616gpcModel
         17psastroModelFit
  • branches/cnb_branch_20080830/psastro/src/psastroMosaicOneChip.c

    r15562 r20033  
    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.