IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 18611


Ignore:
Timestamp:
Jul 17, 2008, 5:19:07 PM (18 years ago)
Author:
Paul Price
Message:

Need to use Poisson errors in order to get realistic weight values.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/imcombine/pmPSFEnvelope.c

    r18566 r18611  
    3434#define PEAK_FLUX 1.0e4                 // Peak flux for each source
    3535#define SKY_VALUE 0.0e0                 // Sky value for fake image
    36 #define WEIGHT_VAL 10.0                 // Weighting for image
     36#define WEIGHT_VAL 3.0                  // Weighting for image
    3737#define WEIGHT_FACTOR 10.0              // Factor to multiply image by to get weighting
    3838#define PSF_STATS PS_STAT_SAMPLE_MEDIAN | PS_STAT_SAMPLE_STDEV // Statistics options for measuring PSF
     
    251251    // Don't assume Poisson errors
    252252    pmPSFOptions *options = pmPSFOptionsAlloc(); // Options for fitting a PSF
    253     options->poissonErrorsPhotLMM = false;
     253    options->poissonErrorsPhotLMM = true;
    254254    options->poissonErrorsPhotLin = false;
    255     options->poissonErrorsParams = false;
     255    options->poissonErrorsParams = true;
    256256    options->stats = psStatsAlloc(PSF_STATS);
    257257    options->radius = radius;
     
    264264    options->psfFieldYo = 0;
    265265
    266     pmSourceFitModelInit(50, 0.01, WEIGHT_VAL, false);
     266    pmSourceFitModelInit(50, 0.01, WEIGHT_VAL, true);
    267267
    268268    pmPSFtry *try = pmPSFtryModel(fakes, modelName, options, 0, 0xff);
Note: See TracChangeset for help on using the changeset viewer.