- Timestamp:
- May 3, 2010, 8:50:52 AM (16 years ago)
- Location:
- branches/simtest_nebulous_branches
- Files:
-
- 3 edited
-
. (modified) (1 prop)
-
ppStack/src (modified) (1 prop)
-
ppStack/src/ppStackCombinePrepare.c (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/simtest_nebulous_branches
- Property svn:mergeinfo changed
-
branches/simtest_nebulous_branches/ppStack/src
- Property svn:ignore
-
old new 10 10 stamp-h1 11 11 ppStackVersionDefinitions.h 12 ppStackErrorCodes.c 13 ppStackErrorCodes.h
-
- Property svn:ignore
-
branches/simtest_nebulous_branches/ppStack/src/ppStackCombinePrepare.c
r23576 r27840 10 10 #include "ppStackLoop.h" 11 11 12 bool ppStackCombinePrepare(ppStackThreadData *stack, ppStackOptions *options, pmConfig *config) 12 bool ppStackCombinePrepare(const char *outName, const char *expName, 13 ppStackFileList files, ppStackThreadData *stack, 14 ppStackOptions *options, pmConfig *config) 13 15 { 14 16 psAssert(stack, "Require stack"); … … 20 22 ppStackThread *thread = stack->threads->data[0]; // Representative thread 21 23 if (!pmReadoutStackSetOutputSize(&col0, &row0, &numCols, &numRows, thread->readouts)) { 22 psError(P S_ERR_UNKNOWN, false, "problem setting output readout size.");24 psError(PPSTACK_ERR_ARGUMENTS, false, "problem setting output readout size."); 23 25 return false; 24 26 } 25 27 26 28 pmFPAfileActivate(config->files, false, NULL); 27 ppStackFileActivation(config, PPSTACK_FILES_COMBINE, true);29 ppStackFileActivation(config, files, true); 28 30 pmFPAview *view = ppStackFilesIterateDown(config); // View to readout 29 31 if (!view) { … … 31 33 } 32 34 33 pmCell *outCell = pmFPAfileThisCell(config->files, view, "PPSTACK.OUTPUT"); // Output cell 34 options->outRO = pmReadoutAlloc(outCell); // Output readout 35 pmCell *cell = pmFPAfileThisCell(config->files, view, outName); // Output cell 36 options->outRO = pmReadoutAlloc(cell); // Output readout 37 38 pmCell *expCell = pmFPAfileThisCell(config->files, view, expName); // Exposure cell 39 options->expRO = pmReadoutAlloc(expCell); // Output readout 40 35 41 psFree(view); 36 42 … … 39 45 psString maskBadStr = psMetadataLookupStr(NULL, recipe, "MASK.BAD"); // Name of bits to mask for bad 40 46 psImageMaskType maskBad = pmConfigMaskGet(maskBadStr, config); // Bits to mask for bad pixels 47 41 48 if (!pmReadoutStackDefineOutput(options->outRO, col0, row0, numCols, numRows, true, true, maskBad)) { 42 psError(PS_ERR_UNKNOWN, false, "Unable to prepare output."); 49 psError(PPSTACK_ERR_ARGUMENTS, false, "Unable to prepare output."); 50 return false; 51 } 52 53 if (!pmReadoutStackDefineOutput(options->expRO, col0, row0, numCols, numRows, true, true, 0)) { 54 psError(PPSTACK_ERR_ARGUMENTS, false, "Unable to prepare output."); 43 55 return false; 44 56 }
Note:
See TracChangeset
for help on using the changeset viewer.
