IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Mar 18, 2010, 12:01:15 PM (16 years ago)
Author:
Paul Price
Message:

Reworking ppStack to not grow the rejected pixels for the unconvolved stack. Also working with convolved and unconvolved stacks separately, so they don't have to be in memory at the same time. This should reduce the memory usage of ppStack.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackCleanup.c

    r27004 r27319  
    66#include <pslib.h>
    77#include <psmodules.h>
     8#include <ppStats.h>
    89
    910#include "ppStack.h"
     
    5960    }
    6061
     62    // Statistics on output
     63    if (options->stats) {
     64        psTrace("ppStack", 1, "Gathering statistics on stacked image....\n");
     65        psString maskBadStr = psMetadataLookupStr(NULL, recipe, "MASK.BAD"); // Name of bits for bad
     66        psImageMaskType maskBad = pmConfigMaskGet(maskBadStr, config); // Bits to mask for bad pixels
     67
     68        pmFPAview *view = pmFPAviewAlloc(0); // View to readout
     69        view->chip = view->cell = view->readout = 0;
     70
     71        ppStatsFPA(options->stats, options->outRO->parent->parent->parent, view, maskBad, config);
     72
     73        psFree(view);
     74    }
     75
    6176    return true;
    6277}
Note: See TracChangeset for help on using the changeset viewer.