Changeset 26076 for trunk/ppStack/src/ppStackCombineInitial.c
- Timestamp:
- Nov 9, 2009, 2:53:12 PM (17 years ago)
- Location:
- trunk/ppStack
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
src/ppStackCombineInitial.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack
-
Property svn:mergeinfo
set to (toggle deleted branches)
/branches/czw_branch/cleanup/ppStack merged eligible /branches/eam_branches/20090522/ppStack merged eligible /branches/eam_branches/20090715/ppStack merged eligible /branches/eam_branches/20090820/ppStack merged eligible /branches/pap/ppStack merged eligible /branches/pap_mops/ppStack 25137-25255
-
Property svn:mergeinfo
set to (toggle deleted branches)
-
trunk/ppStack/src/ppStackCombineInitial.c
r23767 r26076 9 9 #include "ppStack.h" 10 10 #include "ppStackLoop.h" 11 12 //#define TESTING // Enable test output 11 13 12 14 bool ppStackCombineInitial(ppStackThreadData *stack, ppStackOptions *options, pmConfig *config) … … 60 62 // Harvest the jobs, gathering the inspection lists 61 63 options->inspect = psArrayAlloc(options->num); 64 options->rejected = psArrayAlloc(options->num); 62 65 for (int i = 0; i < options->num; i++) { 63 66 if (options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i]) { … … 65 68 } 66 69 options->inspect->data[i] = psArrayAllocEmpty(numChunk); 70 options->rejected->data[i] = psArrayAllocEmpty(numChunk); 67 71 } 68 72 psThreadJob *job; // Completed job … … 71 75 "Job has incorrect type: %s", job->type); 72 76 psArray *results = job->results; // Results of job 77 psAssert(results->n == 2, "Results array has wrong size!"); 78 psArray *inspect = results->data[0]; // Pixels to inspect 79 psArray *reject = results->data[1]; // Pixels to reject 73 80 for (int i = 0; i < options->num; i++) { 74 81 if (options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i]) { 75 82 continue; 76 83 } 77 options->inspect->data[i] = psArrayAdd(options->inspect->data[i], 1, results->data[i]); 84 options->inspect->data[i] = psArrayAdd(options->inspect->data[i], 1, inspect->data[i]); 85 options->rejected->data[i] = psArrayAdd(options->rejected->data[i], 1, reject->data[i]); 78 86 } 79 87 psFree(job); … … 83 91 84 92 #ifdef TESTING 85 ppStackWriteImage("combined_initial.fits", NULL, outRO->image, config); 86 pmStackVisualPlotTestImage(outRO->image, "combined_initial.fits"); 93 ppStackWriteImage("combined_image_initial.fits", NULL, options->outRO->image, config); 94 ppStackWriteImage("combined_mask_initial.fits", NULL, options->outRO->mask, config); 95 ppStackWriteImage("combined_variance_initial.fits", NULL, options->outRO->variance, config); 96 97 pmStackVisualPlotTestImage(options->outRO->image, "combined_image_initial.fits"); 87 98 #endif 88 89 psFree(options->matchChi2); options->matchChi2 = NULL;90 91 99 92 100 if (options->stats) {
Note:
See TracChangeset
for help on using the changeset viewer.
