Changeset 34860
- Timestamp:
- Dec 19, 2012, 2:07:18 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 3 edited
-
ippconfig/recipes/ppStack.config (modified) (1 diff)
-
ppStack/src (modified) (1 prop)
-
ppStack/src/ppStackLoop.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ippconfig/recipes/ppStack.config
r34849 r34860 32 32 TARGET.FRAC F32 0.1 # Minimum flux fraction for target PSF 33 33 TARGET.MINMAG F32 3.0 # Minimum magnitude difference to tolerate in stamp 34 35 BACKGROUND.MODEL BOOL FALSE # Construct a stacked version of the warp stage background 34 36 35 37 RENORM BOOL TRUE # Renormalise weight maps? -
trunk/ppStack/src
- Property svn:ignore
-
trunk/ppStack/src/ppStackLoop.c
r34800 r34860 41 41 if (options->quality) return true; // Can't do anything else 42 42 43 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // ppStack recipe 44 43 45 // Ensure sufficient inputs 44 46 { 45 47 int numGood = stackSummary(options, "initial combination"); 46 psMetadata *recipe = psMetadataLookupMetadata(NULL, config->recipes, PPSTACK_RECIPE); // ppStack recipe47 48 bool safe = psMetadataLookupBool(NULL, recipe, "SAFE"); // Be safe when combining 48 49 if (safe && numGood <= 1) { … … 62 63 } 63 64 65 bool doBackground = psMetadataLookupBool(NULL, recipe, "BACKGROUND.MODEL"); 66 64 67 // Prepare for combination 65 if (!ppStackCombinePrepare("PPSTACK.OUTPUT", "PPSTACK.OUTPUT.EXP", "PPSTACK.OUTPUT.BKGMODEL", PPSTACK_FILES_STACK, stack, options, config)) {68 if (!ppStackCombinePrepare("PPSTACK.OUTPUT", "PPSTACK.OUTPUT.EXP", doBackground ? "PPSTACK.OUTPUT.BKGMODEL" : NULL, PPSTACK_FILES_STACK, stack, options, config)) { 66 69 psError(psErrorCodeLast(), false, "Unable to prepare for combination."); 67 70 psFree(stack); … … 143 146 144 147 // Generate median background stack here. 145 if ( !ppStackCombineBackground(stack, options, config)) {148 if (doBackground && !ppStackCombineBackground(stack, options, config)) { 146 149 psError(psErrorCodeLast(), false, "Unable to generate median of background images."); 147 150 psFree(stack);
Note:
See TracChangeset
for help on using the changeset viewer.
