Changeset 35081 for trunk/ppImage
- Timestamp:
- Feb 1, 2013, 5:01:08 PM (13 years ago)
- Location:
- trunk/ppImage/src
- Files:
-
- 1 added
- 5 edited
-
Makefile.am (modified) (1 diff)
-
ppImage.h (modified) (3 diffs)
-
ppImageLoop.c (modified) (3 diffs)
-
ppImageMosaicBackground.c (added)
-
ppImageOptions.c (modified) (2 diffs)
-
ppImageParseCamera.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/ppImage/src/Makefile.am
r33590 r35081 44 44 ppImageRebinReadout.c \ 45 45 ppImageMosaic.c \ 46 ppImageMosaicBackground.c \ 46 47 ppImageMaskStats.c \ 47 48 ppImagePhotom.c \ -
trunk/ppImage/src/ppImage.h
r33848 r35081 41 41 bool doPatternCell; // Cell pattern correction 42 42 bool doPatternContinuity; // Cell continuity correction 43 bool doBackgroundContinuity; // Do mosaic continuity correction 43 44 bool doFringe; // Fringe subtraction 44 45 bool doPhotom; // Source identification and photometry … … 50 51 bool checkNoise; // measure cell-level variance 51 52 bool applyParity; // Apply Cell parities 52 53 bool doMaskStats; // Calculate mask statistics 53 bool doMaskStats; // Calculate mask statistics 54 54 55 55 bool doCrosstalkMeasure; // measure crosstalk signal … … 183 183 bool ppImageDetrendPatternApply(pmConfig *config, pmChip *chip, const pmFPAview *inputView, const ppImageOptions *options); 184 184 185 // Do background continuity step 186 bool ppImageMosaicBackground(pmConfig *config, const ppImageOptions *options); 187 185 188 // Record which detrend file was used for the detrending 186 189 bool ppImageDetrendRecord( -
trunk/ppImage/src/ppImageLoop.c
r33590 r35081 41 41 ESCAPE("load failure for FPA"); 42 42 } 43 43 44 44 pmChip *chip; // Chip from FPA 45 45 while ((chip = pmFPAviewNextChip(view, input->fpa, 1)) != NULL) { … … 233 233 ESCAPE("Unable to bin chip (level 2)."); 234 234 } 235 235 if (options->doBackgroundContinuity) { 236 pmFPAfile *out = psMetadataLookupPtr(NULL, config->files, "PPIMAGE.BACKMDL"); 237 pmFPAfileCopyView(out->fpa,out->src,view); 238 } 236 239 // Close cells (XXX shouldn't pmFPAfileClose iterate down as needed?) 237 240 view->cell = -1; … … 251 254 } 252 255 256 // Do background model continuity updates 257 if (!ppImageMosaicBackground(config, options )) { 258 ESCAPE("failure in Background Mosaic"); 259 } 260 253 261 // generate the full-scale FPA mosaic 254 262 if (!ppImageMosaicFPA(config, options, "PPIMAGE.OUTPUT.FPA1", "PPIMAGE.BIN1")) { -
trunk/ppImage/src/ppImageOptions.c
r33848 r35081 35 35 options->doPatternCell = false; // Cell pattern correction 36 36 options->doPatternContinuity = false; // Cell continuity correction 37 options->doBackgroundContinuity = false; // Chip level background continuity correction 37 38 options->doFringe = false; // Fringe subtraction 38 39 options->doPhotom = false; // Source identification and photometry … … 429 430 } 430 431 432 // Option to enable the background continuity 433 options->doBackgroundContinuity = psMetadataLookupBool(NULL, recipe, "BACKGROUND.CONTINUITY"); 434 431 435 432 436 // Remnance options -
trunk/ppImage/src/ppImageParseCamera.c
r33848 r35081 303 303 } 304 304 305 305 306 // chipImage -> psphotInput (pmFPAfileDefineFromFile) : fpa is constructed 306 307 // psphotInput -> psphotOutput (pmFPAfileDefineOutputFromFile) : fpa is equated … … 387 388 // the input data is the same as the outImage data : force the free levels to match 388 389 input->freeLevel = PS_MIN(outImage->freeLevel, input->freeLevel); 390 391 // define the continuity corrected background model files 392 if (options->doBackgroundContinuity) { 393 pmFPAfile *bkgMosaicModel = pmFPAfileDefineFromFPA(config,input->fpa, 1, 1, "PPIMAGE.BACKMDL"); 394 if (!bkgMosaicModel) { 395 psError(PS_ERR_IO, false, _("Unable to generate new file from PPIMAGE.BACKMDL")); 396 psFree(options); 397 return NULL; 398 } 399 if (bkgMosaicModel->type != PM_FPA_FILE_IMAGE) { 400 psError(PS_ERR_IO, true, "PPIMAGE.BACKMDL is not of type IMAGE"); 401 psFree(options); 402 return NULL; 403 404 } 405 bkgMosaicModel->save = options->doBackgroundContinuity; 406 // bkgMosaicModel->freeLevel = PS_MIN(bkgMosaicModel->freeLevel, PM_FPA_LEVEL_FPA); 407 bkgMosaicModel->freeLevel = PM_FPA_LEVEL_FPA; 408 bkgMosaicModel->dataLevel = bkgMosaicModel->dataLevel; 409 bkgMosaicModel->fileLevel = PS_MIN(bkgMosaicModel->fileLevel, bkgMosaicModel->dataLevel); 410 } 389 411 390 412 // define the binned target files (which may just be carriers for some camera configurations) … … 497 519 chipVariance->save = false; 498 520 } 499 521 500 522 if (psTraceGetLevel("ppImage.config") > 0) { 501 523 // Get a look inside all the files.
Note:
See TracChangeset
for help on using the changeset viewer.
