IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20593


Ignore:
Timestamp:
Nov 8, 2008, 2:28:54 PM (18 years ago)
Author:
eugene
Message:

do not break the image if the GAIN is nan

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotAddNoise.c

    r20453 r20593  
    4141    float GAIN = psMetadataLookupF32(&status, readout->parent->concepts, "CELL.GAIN"); // Cell gain
    4242    PS_ASSERT (status, false);
    43 
    44     FACTOR /= GAIN;
     43    if (isfinite(GAIN)) {
     44        FACTOR /= GAIN;
     45    }
    4546
    4647    // loop over all source
Note: See TracChangeset for help on using the changeset viewer.