- Timestamp:
- Mar 19, 2013, 2:52:56 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20130307/ppStack/src/ppStackCamera.c
r35167 r35324 47 47 } 48 48 bool convolve = psMetadataLookupBool(NULL, recipe, "CONVOLVE"); // Convolve images before stack? 49 bool doBackground = psMetadataLookupBool(NULL, recipe, "BACKGROUND.MODEL"); 50 // fprintf(stderr,"ppSC: %d\n",doBackground); 49 51 50 psArray *runImages = pmFPAfileDefineMultipleFromRun(&status, NULL, config, 52 51 "PPSTACK.INPUT"); // Input images from previous run … … 218 217 219 218 // Grab bkgmodel information here 220 221 // if (doBackground) { 222 if ((!bkgmodel) || (strlen(bkgmodel) == 0)) { 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 219 if ((!bkgmodel) || (strlen(bkgmodel) == 0)) { 220 // We have no background models. 221 psMetadataAddBool(recipe, PS_LIST_TAIL, "BACKGROUND.MODEL", PS_META_REPLACE, "Do photometry on stacked image?", false); 222 } else { 223 pmFPAfile *inputBKG = defineFile(config,NULL,"PPSTACK.INPUT.BKGMODEL",bkgmodel, PM_FPA_FILE_IMAGE); 224 if (!inputBKG) { 225 psMetadataAddBool(recipe, PS_LIST_TAIL, "BACKGROUND.MODEL", PS_META_REPLACE, "Do photometry on stacked image?", false); 226 227 #if (0) 228 psError(psErrorCodeLast(), false, 229 "Unable to define file from bkgmodel %d (%s)",i,bkgmodel); 230 return(false); 231 #endif 229 232 } 230 else { 231 pmFPAfile *inputBKG = defineFile(config,NULL,"PPSTACK.INPUT.BKGMODEL",bkgmodel, 232 PM_FPA_FILE_IMAGE); 233 if (!inputBKG) { 234 // We failed to generate an pmFPAfile, so disable the background construction and continue. 235 // fprintf(stderr,"No backgrounds specified, resettting recipe value.\n"); 236 doBackground = false; 237 psMetadataAddBool(recipe, PS_LIST_TAIL, "BACKGROUND.MODEL", PS_META_REPLACE, 238 "Do photometry on stacked image?", false); 239 240 #if (0) 241 psError(psErrorCodeLast(), false, 242 "Unable to define file from bkgmodel %d (%s)",i,bkgmodel); 243 return(false); 244 #endif 245 } 246 }// End bkgmodel 247 // } 248 249 250 251 233 } // End bkgmodel 252 234 i++; 253 235 }
Note:
See TracChangeset
for help on using the changeset viewer.
