IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34046


Ignore:
Timestamp:
Jun 20, 2012, 11:53:21 AM (14 years ago)
Author:
mhuber
Message:

adding parts for simple model mean target PSF

Location:
branches/meh_branches/ppstack_test/ppStack/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • branches/meh_branches/ppstack_test/ppStack/src/ppStackOptions.h

    r31158 r34046  
    3232    psVector *airmassInput;             // airmass of input exposure
    3333    psArray *sources;                   // Matched sources
     34    // input stats
     35    float clippedMean;                  // clipped mean of input fwhm
     36    float clippedStdev;                 // clipped stdev of input fwhm
    3437    // Convolve
    3538    psArray *cells;                     // Cells for convolved images --- a handle for reading again
  • branches/meh_branches/ppstack_test/ppStack/src/ppStackPSF.c

    r34042 r34046  
    33//#define TESTING
    44
     5//pmPSF *ppStackPSF(const pmConfig *config, int numCols, int numRows,
     6//                  const psArray *psfs, const psVector *inputMask)
    57pmPSF *ppStackPSF(const pmConfig *config, int numCols, int numRows,
    6                   const psArray *psfs, const psVector *inputMask)
     8                  const psArray *psfs, ppStackOptions *options)
    79{
    810    bool mdok = false;
    911    pmPSF *psf = NULL;
     12
     13    const psVector options->inputMask
    1014
    1115    // Get the recipe values
     
    4953    } else {
    5054
    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
    5261        float psfFWHM = psMetadataLookupF32(&mdok, recipe, "PSF.OUTPUT.FWHM"); // Radius for PSF
    5362        if (!mdok) {
     
    5564        }
    5665
    57         //MEH -- add option for manually defined versus simply defined but not fully autosized?
    58 
     66      }
    5967
    6068        //MEH -- 2.35 or 2.355 as seen elsewhere? small difference though
  • branches/meh_branches/ppstack_test/ppStack/src/ppStackPrepare.c

    r34042 r34046  
    306306    psLogMsg("ppStack", PS_LOG_INFO, "Input FWHMs : %f +/- %f", fwhmStats->clippedMean, fwhmStats->clippedStdev);
    307307
     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
    308313    if (isfinite(clipFWHMnSig)) {
    309314        float fwhmLimit = fwhmStats->clippedMean + clipFWHMnSig * fwhmStats->clippedStdev;
     
    318323    }
    319324
    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 limit
    321 
    322     //MEH -- could use fwhmStats->clippedMean+X to internally set PSF.OUTPUT.FWHM but called in ppStackPSF and would need to pass it
    323 
    324325
    325326    //MEH - try runnning every thing that can reject images before target psf and conv -
     
    334335    // Generate target PSF
    335336    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);
    337339        psFree(psfs);
    338340        if (!options->psf) {
Note: See TracChangeset for help on using the changeset viewer.