Changeset 19312
- Timestamp:
- Sep 2, 2008, 9:11:00 AM (18 years ago)
- File:
-
- 1 edited
-
trunk/psastro/src/psastroMosaicOneChip.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastroMosaicOneChip.c
r15562 r19312 12 12 char errorWord[64]; 13 13 char orderWord[64]; 14 15 assert (iteration < 4);16 14 17 15 PS_ASSERT_PTR_NON_NULL(chip, false); … … 86 84 87 85 // 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 // } 91 97 92 98 // need to pass in an update header, sent in from above … … 117 123 // XXX should these result in errors or be handled another way? 118 124 psLogMsg ("psastro", PS_LOG_INFO, "astrometry solution: error: %f arcsec, Nstars: %d", astError, astNstar); 119 if ( astError > maxError) {125 if ((maxError > 0) && (astError > maxError)) { 120 126 psLogMsg("psastro", PS_LOG_INFO, "residual error is too large, failed to find a solution: %f > %f", astError, maxError); 121 127 validSolution = false;
Note:
See TracChangeset
for help on using the changeset viewer.
