- Timestamp:
- Oct 5, 2012, 6:03:49 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20120906/ppStack/src/ppStackCombinePrepare.c
r30620 r34516 1 1 #include "ppStack.h" 2 2 3 bool ppStackCombinePrepare(const char *outName, const char *expName, 3 bool ppStackCombinePrepare(const char *outName, const char *expName, const char *bkgName, 4 4 ppStackFileList files, ppStackThreadData *stack, 5 5 ppStackOptions *options, pmConfig *config) … … 26 26 pmCell *cell = pmFPAfileThisCell(config->files, view, outName); // Output cell 27 27 options->outRO = pmReadoutAlloc(cell); // Output readout 28 28 29 29 pmCell *expCell = pmFPAfileThisCell(config->files, view, expName); // Exposure cell 30 30 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 } 31 37 32 38 psFree(view); … … 47 53 } 48 54 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 49 62 return true; 50 63 }
Note:
See TracChangeset
for help on using the changeset viewer.
