IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35400


Ignore:
Timestamp:
Apr 15, 2013, 5:01:13 PM (13 years ago)
Author:
watersc1
Message:

Add option to switch back to old rejection code. Disabled testing define statement in mixture model code.

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ppStack/src/ppStackPrepare.c

    r35394 r35400  
    11# include "ppStack.h"
     2
     3
     4// Option to use the old FWHM rejection code.
     5# define NEW_REJECTION
     6// #define OLD_REJECTION
     7
    28
    39# define RE_PHOTOMETER 0
     
    293299            psLogMsg("ppStack", PS_LOG_INFO, "PSF FWHM for image %d is too large (%f vs %f maxFWHM) --- rejected.", i, options->inputSeeing->data.F32[i], maxFWHM);
    294300        }
     301        // End old rejection fixed limit.
    295302#endif
    296303        psStringAppend(&log, "Input %d: %f\n", i, options->inputSeeing->data.F32[i]);
     
    301308    psFree(log);
    302309
     310#ifdef NEW_REJECTION
    303311    // Do GMM test with two modes to decide where to put the break.
    304312    double Punimodal;
     
    324332      return(false);
    325333    }
    326     fprintf(stderr,"means: %g %g\n",means->data.F32[0],means->data.F32[1]);
    327     fprintf(stderr,"sigma: %g %g \n",S->data.F32[0],S->data.F32[1]);
    328 
    329     fprintf(stderr,"pi:    %g %g\n",pi->data.F32[0],pi->data.F32[1]);
     334    //    fprintf(stderr,"means: %g %g\n",means->data.F32[0],means->data.F32[1]);
     335    //    fprintf(stderr,"sigma: %g %g \n",S->data.F32[0],S->data.F32[1]);
     336
     337    //    fprintf(stderr,"pi:    %g %g\n",pi->data.F32[0],pi->data.F32[1]);
    330338   
    331339    //    unwrittenGMMfunction(options->inputSeeing, options->inputMask, 0xff,
     
    364372    psFree(pi);
    365373    psFree(P);
     374    // End new rejection code
     375#endif
    366376   
    367377#ifdef OLD_REJECTION
     
    389399        }
    390400    }
     401    // End old rejection sigma clip
    391402#endif
    392403    // Generate target PSF
  • trunk/psLib/src/math/psMixtureModels.c

    r35394 r35400  
    4242
    4343
    44 #define TESTING
     44// #define TESTING
    4545/////////////////////////////////////////////////////////////////////////////////
    4646// Internal functions                                                          //
Note: See TracChangeset for help on using the changeset viewer.