IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 20366


Ignore:
Timestamp:
Oct 24, 2008, 2:53:53 PM (18 years ago)
Author:
eugene
Message:

apply the flat-field value to the stars; fix scatter term

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppSim/src/ppSimMakeSky.c

    r18993 r20366  
    8282              // add a scattered light term to the flat-field images
    8383              if (type == PPSIM_TYPE_FLAT) {
    84                 float xF = 2.0*(xFPA / dXfpa) - 1.0;
    85                 scatterRate = scatterFrac * PS_SQR(xF);
     84                  scatterRate = scatterFrac * PS_SQR(xFPA);
    8685              }
    8786
     
    9493            // used later to modify the star and galaxy photometry
    9594            if (expCorr) {
    96               expCorr->data.F32[y][x] = realExpTime / expTime;
     95                // exposure correction is (effective exposure time) * (flatValue)
     96              expCorr->data.F32[y][x] = flatValue * realExpTime / expTime;
    9797            }
    9898
Note: See TracChangeset for help on using the changeset viewer.