- Timestamp:
- Apr 21, 2014, 5:42:34 AM (12 years ago)
- Location:
- branches/eam_branches/ps2-tc3-20130727
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
ppStack/src/ppStackPrepare.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ps2-tc3-20130727
- Property svn:mergeinfo changed
-
branches/eam_branches/ps2-tc3-20130727/ppStack/src/ppStackPrepare.c
r35530 r36680 257 257 258 258 bool mdok = false; 259 bool simpleClip = psMetadataLookup F32(&mdok, recipe, "PSF.INPUT.CLIP.SIMPLE");259 bool simpleClip = psMetadataLookupBool(&mdok, recipe, "PSF.INPUT.CLIP.SIMPLE"); 260 260 float maxFWHM = psMetadataLookupF32(&mdok, recipe, "PSF.INPUT.MAX"); // max allowed input fwhm 261 261 float clipFWHMnSig = psMetadataLookupF32(&mdok, recipe, "PSF.INPUT.CLIP.NSIGMA"); // sigma clipping of inputs 262 262 float threshFWHM = psMetadataLookupF32(&mdok, recipe, "PSF.INPUT.THRESH"); // FWHM size that we refuse to clip below 263 263 float asymmetryFWHM = psMetadataLookupF32(&mdok, recipe, "PSF.INPUT.ASYMMETRY"); // max bimodal asymmetry 264 264 265 265 266 psString log = psStringCopy("Input seeing FWHMs:\n"); // Log message … … 477 478 "Target PSF for stack", options->psf); 478 479 options->targetSeeing = pmPSFtoFWHM(options->psf, 0.5 * numCols, 0.5 * numRows); // FWHM for target 479 psLogMsg("ppStack", PS_LOG_INFO, "Target seeing FWHM: %f\n", options->targetSeeing); 480 480 481 482 bool psfTargetAsMax = psMetadataLookupBool(&mdok, recipe, "PSF.TARGET.AS.MAX"); 483 if (psfTargetAsMax) { // Should we use the largest input as the target? 484 float psfTargetEpsilon = psMetadataLookupF32(&mdok,recipe,"PSF.TARGET.AS.MAX.EPSILON"); 485 if (!mdok) { psfTargetEpsilon = 0.0; } 486 options->targetSeeing = 0.0; 487 for (int i = 0; i < num; i++) { 488 if (options->inputMask->data.PS_TYPE_VECTOR_MASK_DATA[i]) continue; 489 options->targetSeeing = PS_MAX(options->targetSeeing,options->inputSeeing->data.F32[i]); 490 } 491 psLogMsg("ppStack", PS_LOG_INFO, "Using MAX accepted input FWHM as target (max: %f epsilon: %f target %f)\n", 492 options->targetSeeing,psfTargetEpsilon,options->targetSeeing + psfTargetEpsilon); 493 options->targetSeeing = options->targetSeeing + psfTargetEpsilon; 494 } 495 psLogMsg("ppStack", PS_LOG_INFO, "Target seeing FWHM: %f\n", options->targetSeeing); 496 481 497 pmChip *outChip = pmFPAfileThisChip(config->files, view, "PPSTACK.TARGET.PSF"); // Output chip 482 498 psMetadataAddPtr(outChip->analysis, PS_LIST_TAIL, "PSPHOT.PSF", PS_DATA_UNKNOWN,
Note:
See TracChangeset
for help on using the changeset viewer.
