IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 9, 2013, 3:31:46 PM (13 years ago)
Author:
eugene
Message:

thread add/sub noise, thread model background, pass chisq conv options to LMM fitting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130509/psphot/src/psphotChoosePSF.c

    r34317 r35640  
    158158    }
    159159    float maxChisqDOF = psMetadataLookupF32 (&status, recipe, "PSF_FIT_MAX_CHISQ"); // Fit tolerance
     160
     161    bool chisqConvergence = psMetadataLookupBool (&status, recipe, "LMM_FIT_CHISQ_CONVERGENCE"); // Fit tolerance
     162    if (!status) {
     163        // default to the old method (chisqConvergence)
     164        chisqConvergence = true;
     165    }
     166
     167    int gainFactorMode = psMetadataLookupS32 (&status, recipe, "LMM_FIT_GAIN_FACTOR_MODE"); // Fit tolerance
     168    if (!status) {
     169        // default to the old method (chisqConvergence)
     170        gainFactorMode = 0;
     171    }
    160172
    161173    // options which modify the behavior of the model fitting
     
    169181    options->fitOptions->mode          = PM_SOURCE_FIT_PSF;
    170182    options->fitOptions->covarFactor   = psImageCovarianceFactorForAperture(readout->covariance, 10.0); // Covariance matrix
    171 
    172183   
     184    options->fitOptions->gainFactorMode   = gainFactorMode;
     185    options->fitOptions->chisqConvergence = chisqConvergence;
     186
    173187    psArray *stars = psArrayAllocEmpty (sources->n);
    174188
Note: See TracChangeset for help on using the changeset viewer.