Changeset 29606 for trunk/psphot/src/psphotDeblendSatstars.c
- Timestamp:
- Oct 29, 2010, 10:59:01 AM (16 years ago)
- File:
-
- 1 edited
-
trunk/psphot/src/psphotDeblendSatstars.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psphot/src/psphotDeblendSatstars.c
r28013 r29606 53 53 54 54 pmCell *cell = readout->parent; 55 float SATURATION = 0.75*psMetadataLookupF32 (&status, cell->concepts, "CELL.SATURATION"); 55 56 float SATURATION = NAN; 57 58 // do not completely trust the values in the header... 59 float CELL_SATURATION = psMetadataLookupF32 (&status, cell->concepts, "CELL.SATURATION"); 60 float MIN_SATURATION = psMetadataLookupF32 (&status, recipe, "DEBLEND_MIN_SATURATION"); 61 if (!status || !isfinite(MIN_SATURATION)) { 62 MIN_SATURATION = 40000.0; 63 } 64 if (!isfinite(CELL_SATURATION)) { 65 SATURATION = MIN_SATURATION; 66 } else { 67 SATURATION = PS_MAX(MIN_SATURATION, CELL_SATURATION); 68 } 56 69 float SAT_TEST_LEVEL = 0.5*SATURATION; 57 70
Note:
See TracChangeset
for help on using the changeset viewer.
