IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Nov 28, 2021, 5:32:07 PM (5 years ago)
Author:
eugene
Message:

use the total number of exposures to calculate the exposure time

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20211108/psModules/src/imcombine/pmStack.c

    r41933 r41940  
    17111711            combined->mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] = outputMask;
    17121712
     1713            // The exposure time of interest should be the total number of values, after
     1714            // rejection of known bad measurements, not the sorted and clipped number.
     1715            // Note that if we were to take the median, the relevant exposure time would
     1716            // still be the total of all inputs, not the single exposure for which the
     1717            // median was generated.
     1718
    17131719            if (expTime) {
    17141720                float sum = 0.0;
    1715                 for (int n = Ns; n < Ne; n++) {
     1721                for (int n = 0; n < nGood; n++) {
    17161722                    sum += expTime->data.F32[n];
    17171723                }
    17181724                expmaps->image->data.F32[y][x] = sum;
    17191725            }
    1720             if (expmaps) { expmaps->mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] = Ne - Ns; }
     1726            if (expmaps) { expmaps->mask->data.PS_TYPE_IMAGE_MASK_DATA[y][x] = nGood; }
    17211727        }
    17221728    }
Note: See TracChangeset for help on using the changeset viewer.