Changeset 34046
- Timestamp:
- Jun 20, 2012, 11:53:21 AM (14 years ago)
- Location:
- branches/meh_branches/ppstack_test/ppStack/src
- Files:
-
- 3 edited
-
ppStackOptions.h (modified) (1 diff)
-
ppStackPSF.c (modified) (3 diffs)
-
ppStackPrepare.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
branches/meh_branches/ppstack_test/ppStack/src/ppStackOptions.h
r31158 r34046 32 32 psVector *airmassInput; // airmass of input exposure 33 33 psArray *sources; // Matched sources 34 // input stats 35 float clippedMean; // clipped mean of input fwhm 36 float clippedStdev; // clipped stdev of input fwhm 34 37 // Convolve 35 38 psArray *cells; // Cells for convolved images --- a handle for reading again -
branches/meh_branches/ppstack_test/ppStack/src/ppStackPSF.c
r34042 r34046 3 3 //#define TESTING 4 4 5 //pmPSF *ppStackPSF(const pmConfig *config, int numCols, int numRows, 6 // const psArray *psfs, const psVector *inputMask) 5 7 pmPSF *ppStackPSF(const pmConfig *config, int numCols, int numRows, 6 const psArray *psfs, const psVector *inputMask)8 const psArray *psfs, ppStackOptions *options) 7 9 { 8 10 bool mdok = false; 9 11 pmPSF *psf = NULL; 12 13 const psVector options->inputMask 10 14 11 15 // Get the recipe values … … 49 53 } else { 50 54 51 // Manually defined target PSF 55 //MEH -- add option for manually defined versus simply defined but not fully autosized? 56 if (1){ 57 float psfFWHM = options->clippedMean; 58 } else { 59 60 // Manually static defined target PSF 52 61 float psfFWHM = psMetadataLookupF32(&mdok, recipe, "PSF.OUTPUT.FWHM"); // Radius for PSF 53 62 if (!mdok) { … … 55 64 } 56 65 57 //MEH -- add option for manually defined versus simply defined but not fully autosized? 58 66 } 59 67 60 68 //MEH -- 2.35 or 2.355 as seen elsewhere? small difference though -
branches/meh_branches/ppstack_test/ppStack/src/ppStackPrepare.c
r34042 r34046 306 306 psLogMsg("ppStack", PS_LOG_INFO, "Input FWHMs : %f +/- %f", fwhmStats->clippedMean, fwhmStats->clippedStdev); 307 307 308 //MEH -- add clippedMean/clippedStdev to options, may want to be part of clipFWHMnSig? 309 options->clippedMean = fwhmStats->clippedMean; 310 options->clippedStdev = fwhmStats->clippedStdev; 311 312 308 313 if (isfinite(clipFWHMnSig)) { 309 314 float fwhmLimit = fwhmStats->clippedMean + clipFWHMnSig * fwhmStats->clippedStdev; … … 318 323 } 319 324 320 //MEH -- by option could reset maxFWHM and reject any > before going into target ppStackPSF however will be masked and not included in conv/unconv stack in end rather than rej from deconv limit321 322 //MEH -- could use fwhmStats->clippedMean+X to internally set PSF.OUTPUT.FWHM but called in ppStackPSF and would need to pass it323 324 325 325 326 //MEH - try runnning every thing that can reject images before target psf and conv - … … 334 335 // Generate target PSF 335 336 if (options->convolve) { 336 options->psf = ppStackPSF(config, numCols, numRows, psfs, options->inputMask); 337 // options->psf = ppStackPSF(config, numCols, numRows, psfs, options->inputMask); 338 options->psf = ppStackPSF(config, numCols, numRows, psfs, options); 337 339 psFree(psfs); 338 340 if (!options->psf) {
Note:
See TracChangeset
for help on using the changeset viewer.
