Changeset 35931
- Timestamp:
- Aug 12, 2013, 6:23:17 PM (13 years ago)
- Files:
-
- 3 edited
-
branches/czw_branch/20130702/ippconfig/gpc1/ppStack.config (modified) (1 diff)
-
branches/czw_branch/20130702/ippconfig/recipes/ppStack.config (modified) (1 diff)
-
trunk/ppStack/src/ppStackPrepare.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/czw_branch/20130702/ippconfig/gpc1/ppStack.config
r35580 r35931 63 63 PSF.INPUT.THRESH F32 10.0 64 64 PSF.INPUT.ASYMMETRY F32 0.2 65 PSF.TARGET.AS.MAX BOOL TRUE 65 66 MATCH.REJ F32 4.0 66 67 SAFE BOOL F -
branches/czw_branch/20130702/ippconfig/recipes/ppStack.config
r35580 r35931 95 95 PSF.INPUT.THRESH F32 NAN # Set minimum limit below which we do not exclude an input (defaults to 0.0) 96 96 PSF.INPUT.ASYMMETRY F32 NAN # Set difference in mixture model populations to consider equal. 97 PSF.TARGET.AS.MAX BOOL F # Set the target PSF FWHM as the maximum of accepted input FWHM values. 98 PSF.TARGET.AS.MAX.EPSILON F32 0.1 # Amount to set the target PSF FWHM larger than the maximum input. Target = eps + max(input) 97 99 98 100 TEMP.IMAGE STR conv.im.fits # Suffix for temporary convolved images -
trunk/ppStack/src/ppStackPrepare.c
r35530 r35931 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.
