IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 34050


Ignore:
Timestamp:
Jun 20, 2012, 7:59:19 PM (14 years ago)
Author:
mhuber
Message:

working version for target FWHM mean simple PSF in ppstack

Location:
branches/meh_branches/ppstack_test
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/meh_branches/ppstack_test/ippconfig/recipes/ppStack.config

    r33415 r34050  
    8383PSF.MODEL       STR     PS_MODEL_GAUSS  # Model for PSF generation
    8484
    85 PSF.AUTOSIZE    BOOL    TRUE            # Determine output PSF size from input PSFs?
    86 PSF.OUTPUT.FWHM F32     5.0             # Target size for output PSF (if not auto-sized)
     85PSF.AUTOSIZE            BOOL    FALSE           # Determine output PSF size from input PSFs?
     86# need to add/mod autosize to allow for simple autosize versus envelope
     87# PSF.AUTOENVEL         BOOL    TRUE            # rather than autosize
     88PSF.OUTPUT.FWHM         F32     5.0             # Target size for output PSF (if not auto-sized), -1 as FWHM
     89PSF.OUTPUT.NFWHMSIG     F32     0.0             # N FWHM-sig to be added to the FWHMmean for PSF
    8790
    8891PSF.INPUT.MAX           F32  NAN
  • branches/meh_branches/ppstack_test/ppStack/src/ppStack.h

    r30620 r34050  
    6363                  int numCols, int numRows, // Size of image
    6464                  const psArray *psfs,  // List of input PSFs
    65                   const psVector *inputMask // Mask for inputs
     65//                  const psVector *inputMask // Mask for inputs
     66                  ppStackOptions *options // options including Mask for inputs
    6667    );
    6768
  • branches/meh_branches/ppstack_test/ppStack/src/ppStackOptions.c

    r30620 r34050  
    6060    options->exposures = NULL;
    6161    options->targetSeeing = NAN;
     62    options->clippedMean = NAN;
     63    options->clippedStdev = NAN;
    6264    options->inputMask = NULL;
    6365    options->sourceLists = NULL;
  • branches/meh_branches/ppstack_test/ppStack/src/ppStackPSF.c

    r34046 r34050  
    1010    bool mdok = false;
    1111    pmPSF *psf = NULL;
    12 
    13     const psVector options->inputMask
     12   
     13    //MEH - where should this be put now?
     14    const psVector *inputMask = options->inputMask;
    1415
    1516    // Get the recipe values
     
    5253        }
    5354    } else {
     55        // Manually static defined target PSF
     56        float psfFWHM = psMetadataLookupF32(&mdok, recipe, "PSF.OUTPUT.FWHM"); // Radius for PSF
     57        if (!mdok) {
     58            psfFWHM = 4.0;
     59        }
    5460
    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
    61         float psfFWHM = psMetadataLookupF32(&mdok, recipe, "PSF.OUTPUT.FWHM"); // Radius for PSF
    62         if (!mdok) {
    63             psfFWHM = 4.0;
     61        //MEH -- add option -1 for manually defined versus simply defined but not fully autosized? call it what?
     62        if (psfFWHM<0.0){
     63            float NpsfFWHMsig = psMetadataLookupF32(&mdok, recipe, "PSF.OUTPUT.NFWHMSIG"); // Nsig to include
     64            if (!mdok){
     65                NpsfFWHMsig = 0.0;
     66            }
     67//          psfFWHM = options->clippedMean;
     68            float clippedMean = options->clippedMean;
     69            float clippedStdev = options->clippedStdev;
     70            psfFWHM = clippedMean + NpsfFWHMsig*clippedStdev;
     71            if (NpsfFWHMsig<0.0){
     72                psfFWHM = clippedMean + NpsfFWHMsig * -1.0*clippedStdev/clippedMean;
     73            }
    6474        }
    65 
    66       }
    6775
    6876        //MEH -- 2.35 or 2.355 as seen elsewhere? small difference though
  • branches/meh_branches/ppstack_test/ppStack/src/ppStackPrepare.c

    r34046 r34050  
    336336    if (options->convolve) {
    337337      //        options->psf = ppStackPSF(config, numCols, numRows, psfs, options->inputMask);
    338         options->psf = ppStackPSF(config, numCols, numRows, psfs, options);
     338        options->psf = ppStackPSF(config, numCols, numRows, psfs, options);
    339339        psFree(psfs);
    340340        if (!options->psf) {
Note: See TracChangeset for help on using the changeset viewer.