IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 5, 2012, 6:03:49 PM (14 years ago)
Author:
watersc1
Message:

Incomplete.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/czw_branch/20120906/ppStack/src/ppStackCombinePrepare.c

    r30620 r34516  
    11#include "ppStack.h"
    22
    3 bool ppStackCombinePrepare(const char *outName, const char *expName,
     3bool ppStackCombinePrepare(const char *outName, const char *expName, const char *bkgName,
    44                           ppStackFileList files, ppStackThreadData *stack,
    55                           ppStackOptions *options, pmConfig *config)
     
    2626    pmCell *cell = pmFPAfileThisCell(config->files, view, outName); // Output cell
    2727    options->outRO = pmReadoutAlloc(cell); // Output readout
    28 
     28   
    2929    pmCell *expCell = pmFPAfileThisCell(config->files, view, expName); // Exposure cell
    3030    options->expRO = pmReadoutAlloc(expCell); // Output readout
     31
     32    pmCell *bkgCell;
     33    if (bkgName) {
     34      bkgCell = pmFPAfileThisCell(config->files, view, bkgName); // Bkg cell
     35      options->bkgRO = pmReadoutAlloc(bkgCell); // BKG readout
     36    }
    3137
    3238    psFree(view);
     
    4753    }
    4854
     55    if (bkgName) {
     56      if (!pmReadoutStackDefineOutput(options->bkgRO, col0, row0, numCols, numRows, false, false, 0)) {
     57        psError(PPSTACK_ERR_ARGUMENTS, false, "Unable to prepare output.");
     58        return false;
     59      }
     60    }
     61
    4962    return true;
    5063}
Note: See TracChangeset for help on using the changeset viewer.