IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 29603


Ignore:
Timestamp:
Oct 29, 2010, 10:55:15 AM (16 years ago)
Author:
eugene
Message:

when averaging SATURATION values, do not include any absurdly low values

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/concepts/pmConceptsAverage.c

    r26971 r29603  
    222222
    223223        float cellSaturation = psMetadataLookupF32(NULL, cell->concepts, "CELL.SATURATION");
    224         if (cellSaturation < saturation) {
    225             saturation = cellSaturation;
    226         }
     224        if (cellSaturation > 10000) {
     225            // do not allow invalid values to polute this calculation
     226            // XXX really need to do this on the basis of the fraction of the cell that contributes..
     227            // if a cell is completely masked, it should not be included.
     228            if (cellSaturation < saturation) {
     229                saturation = cellSaturation;
     230            }
     231        }
    227232        float cellBad = psMetadataLookupF32(NULL, cell->concepts, "CELL.BAD");
    228233        if (cellBad > bad) {
Note: See TracChangeset for help on using the changeset viewer.