Changeset 25950
- Timestamp:
- Oct 27, 2009, 11:44:05 AM (17 years ago)
- Location:
- branches/pap/ppStack/src
- Files:
-
- 5 edited
-
ppStackCombineFinal.c (modified) (2 diffs)
-
ppStackCombineInitial.c (modified) (2 diffs)
-
ppStackLoop.c (modified) (1 diff)
-
ppStackMatch.c (modified) (2 diffs)
-
ppStackReject.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/pap/ppStack/src/ppStackCombineFinal.c
r25924 r25950 9 9 #include "ppStack.h" 10 10 #include "ppStackLoop.h" 11 12 #define TESTING // Enable test output 11 13 12 14 bool ppStackCombineFinal(pmReadout *target, ppStackThreadData *stack, psArray *covariances, … … 84 86 85 87 #ifdef TESTING 86 pmStackVisualPlotTestImage(target->image, "combined_initial.fits"); 87 ppStackWriteImage("combined_final.fits", NULL, target->image, config); 88 static int pass = 0; // Pass through 89 psString name = NULL; // Name of file 90 psStringAppend(&name, "combined_image_final_%d.fits", pass); 91 pass++; 92 ppStackWriteImage(name, NULL, target->image, config); 93 psStringSubstitute(&name, "mask", "image"); 94 ppStackWriteImage(name, NULL, target->mask, config); 95 psStringSubstitute(&name, "variance", "mask"); 96 ppStackWriteImage(name, NULL, target->variance, config); 97 psFree(name); 98 99 pmStackVisualPlotTestImage(target->image, "combined_image_final.fits"); 88 100 #endif 89 101 -
branches/pap/ppStack/src/ppStackCombineInitial.c
r23767 r25950 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) … … 83 85 84 86 #ifdef TESTING 85 ppStackWriteImage("combined_initial.fits", NULL, outRO->image, config); 86 pmStackVisualPlotTestImage(outRO->image, "combined_initial.fits"); 87 ppStackWriteImage("combined_image_initial.fits", NULL, options->outRO->image, config); 88 ppStackWriteImage("combined_mask_initial.fits", NULL, options->outRO->mask, config); 89 ppStackWriteImage("combined_variance_initial.fits", NULL, options->outRO->variance, config); 90 91 pmStackVisualPlotTestImage(options->outRO->image, "combined_image_initial.fits"); 87 92 #endif 88 89 psFree(options->matchChi2); options->matchChi2 = NULL;90 91 93 92 94 if (options->stats) { -
branches/pap/ppStack/src/ppStackLoop.c
r25924 r25950 98 98 psTrace("ppStack", 2, "Final stack of convolved images....\n"); 99 99 if (!ppStackCombineFinal(options->outRO, stack, options->convCovars, options, config, 100 false, false, false)) {100 true, false, false)) { 101 101 psError(PS_ERR_UNKNOWN, false, "Unable to perform final combination."); 102 102 psFree(stack); -
branches/pap/ppStack/src/ppStackMatch.c
r25467 r25950 18 18 #define COVAR_FRAC 0.01 // Truncation fraction for covariance matrix 19 19 20 //#define TESTING // Enable debugging output20 #define TESTING // Enable debugging output 21 21 22 22 #ifdef TESTING … … 257 257 psFitsClose(fits); 258 258 259 if (!readImage(&readout->image, options-> imageNames->data[index], config) ||260 !readImage(&readout->mask, options-> maskNames->data[index], config) ||261 !readImage(&readout->variance, options-> varianceNames->data[index], config)) {259 if (!readImage(&readout->image, options->convImages->data[index], config) || 260 !readImage(&readout->mask, options->convMasks->data[index], config) || 261 !readImage(&readout->variance, options->convVariances->data[index], config)) { 262 262 psError(PS_ERR_IO, false, "Unable to read previously produced image."); 263 263 return false; -
branches/pap/ppStack/src/ppStackReject.c
r25466 r25950 10 10 #include "ppStackLoop.h" 11 11 12 //#define TESTING12 #define TESTING 13 13 14 14 bool ppStackReject(ppStackOptions *options, pmConfig *config)
Note:
See TracChangeset
for help on using the changeset viewer.
