Changeset 41500 for trunk/psastro
- Timestamp:
- Feb 19, 2021, 2:15:14 PM (5 years ago)
- Location:
- trunk/psastro/src
- Files:
-
- 2 edited
-
psastro.h (modified) (1 diff)
-
psastroMosaicChipAstrom.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psastro/src/psastro.h
r41499 r41500 109 109 bool psastroMosaicCommonScale (pmFPA *fpa, psMetadata *recipe); 110 110 bool psastroMosaicAstrom (pmConfig *config, psMetadata *stats); 111 bool psastroMosaicChipAstrom (pmFPA *fpa, psMetadata * recipe, int iteration);111 bool psastroMosaicChipAstrom (pmFPA *fpa, psMetadata *stats, psMetadata *recipe, int iteration); 112 112 bool psastroMosaicSetMatch (pmFPA *fpa, psMetadata *recipe, int iteration); 113 113 bool psastroMosaicSetAstrom (pmFPA *fpa); -
trunk/psastro/src/psastroMosaicChipAstrom.c
r41499 r41500 29 29 30 30 int nChipGood = 0; 31 int nChip Fail = 0;31 int nChipTotal = 0; 32 32 33 33 // this loop selects the matched stars for all chips 34 34 while ((chip = pmFPAviewNextChip (view, fpa, 1)) != NULL) { 35 nChipTotal ++; 35 36 psTrace ("psastro", 4, "Chip %d: %x %x\n", view->chip, chip->file_exists, chip->process); 36 37 if (!chip->process || !chip->file_exists) { continue; } … … 60 61 psErrorStackPrint(stderr, "failure for one chip\n"); 61 62 psErrorClear(); 62 nChipFail ++;63 63 continue; 64 64 } … … 70 70 psErrorStackPrint(stderr, "failure for one chip\n"); 71 71 psErrorClear(); 72 nChipFail ++;73 72 continue; 74 73 } … … 80 79 81 80 // if basically the entire exposure is bad, return false (calling function sets bad quality) 82 float fGood = nChipGood / ((float) (nChipGood + nChipFail)); 81 float fGood = nChipGood / ((float) nChipTotal); 82 psLogMsg ("psastro", PS_LOG_INFO, "%d good chips of %d = %.2f\n", nChipGood, nChipTotal, fGood); 83 83 if (fGood < minGoodChipFraction) { 84 psWarning ("Too few good chips (%d of %d = %.2f), setting bad quality for this exposure\n", nChipGood, (nChipGood + nChipFail), fGood);84 psWarning ("Too few good chips (%d of %d = %.2f), setting bad quality for this exposure\n", nChipGood, nChipTotal, fGood); 85 85 // NOTE: set bad data quality here 86 86 if (stats && psMetadataLookupS32(NULL, stats, "QUALITY") == 0) {
Note:
See TracChangeset
for help on using the changeset viewer.
