Changeset 35167
- Timestamp:
- Feb 13, 2013, 4:18:09 PM (13 years ago)
- Location:
- trunk/ppStack/src
- Files:
-
- 6 edited
-
ppStackCamera.c (modified) (4 diffs)
-
ppStackCombineAlternate.c (modified) (1 diff)
-
ppStackLoop.c (modified) (2 diffs)
-
ppStackOptions.c (modified) (1 diff)
-
ppStackOptions.h (modified) (1 diff)
-
ppStackSetup.c (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppStack/src/ppStackCamera.c
r35081 r35167 48 48 bool convolve = psMetadataLookupBool(NULL, recipe, "CONVOLVE"); // Convolve images before stack? 49 49 bool doBackground = psMetadataLookupBool(NULL, recipe, "BACKGROUND.MODEL"); 50 50 // fprintf(stderr,"ppSC: %d\n",doBackground); 51 51 psArray *runImages = pmFPAfileDefineMultipleFromRun(&status, NULL, config, 52 52 "PPSTACK.INPUT"); // Input images from previous run … … 218 218 219 219 // Grab bkgmodel information here 220 if (doBackground) { 221 if (!bkgmodel || strlen(bkgmodel) == 0) { 220 221 // if (doBackground) { 222 if ((!bkgmodel) || (strlen(bkgmodel) == 0)) { 222 223 // We have no background models. 224 // fprintf(stderr,"No backgrounds specified, resettting recipe value.\n"); 225 doBackground = false; 226 psMetadataAddBool(recipe, PS_LIST_TAIL, "BACKGROUND.MODEL", PS_META_REPLACE, 227 "Do photometry on stacked image?", false); 228 223 229 } 224 230 else { … … 227 233 if (!inputBKG) { 228 234 // We failed to generate an pmFPAfile, so disable the background construction and continue. 235 // fprintf(stderr,"No backgrounds specified, resettting recipe value.\n"); 229 236 doBackground = false; 230 237 psMetadataAddBool(recipe, PS_LIST_TAIL, "BACKGROUND.MODEL", PS_META_REPLACE, … … 238 245 } 239 246 }// End bkgmodel 240 }247 // } 241 248 242 249 -
trunk/ppStack/src/ppStackCombineAlternate.c
r35081 r35167 88 88 } 89 89 90 if (!ppStackLinearScale(inputs, config)) { 91 psFree(inputs); 92 return(false); 93 } 90 94 91 95 // Do combination -
trunk/ppStack/src/ppStackLoop.c
r34860 r35167 63 63 } 64 64 65 bool doBackground = psMetadataLookupBool(NULL, recipe, "BACKGROUND.MODEL");65 // bool doBackground = psMetadataLookupBool(NULL, recipe, "BACKGROUND.MODEL"); 66 66 67 67 // Prepare for combination 68 if (!ppStackCombinePrepare("PPSTACK.OUTPUT", "PPSTACK.OUTPUT.EXP", doBackground ? "PPSTACK.OUTPUT.BKGMODEL" : NULL, PPSTACK_FILES_STACK, stack, options, config)) {68 if (!ppStackCombinePrepare("PPSTACK.OUTPUT", "PPSTACK.OUTPUT.EXP", options->doBackground ? "PPSTACK.OUTPUT.BKGMODEL" : NULL, PPSTACK_FILES_STACK, stack, options, config)) { 69 69 psError(psErrorCodeLast(), false, "Unable to prepare for combination."); 70 70 psFree(stack); … … 146 146 147 147 // Generate median background stack here. 148 if ( doBackground && !ppStackCombineBackground(stack, options, config)) {148 if (options->doBackground && !ppStackCombineBackground(stack, options, config)) { 149 149 psError(psErrorCodeLast(), false, "Unable to generate median of background images."); 150 150 psFree(stack); -
trunk/ppStack/src/ppStackOptions.c
r34092 r35167 43 43 options->matchZPs = true; 44 44 options->photometry = false; 45 options->doBackground = false; 45 46 options->stats = NULL; 46 47 options->statsFile = NULL; -
trunk/ppStack/src/ppStackOptions.h
r34800 r35167 8 8 bool matchZPs; // Adjust relative fluxes based on transparency analysis? 9 9 bool photometry; // Perform photometry? 10 bool doBackground; // Do background model combination? 10 11 psMetadata *stats; // Statistics for output 11 12 FILE *statsFile; // File to which to write statistics -
trunk/ppStack/src/ppStackSetup.c
r34800 r35167 17 17 18 18 options->convolve = psMetadataLookupBool(NULL, recipe, "CONVOLVE"); // Convolve images? 19 options->doBackground = psMetadataLookupBool(NULL, recipe, "BACKGROUND.MODEL"); 20 19 21 if (!psMetadataLookupBool(NULL, config->arguments, "HAVE.PSF")) { 20 22 psWarning("No PSFs provided --- unable to convolve to common PSF.");
Note:
See TracChangeset
for help on using the changeset viewer.
