IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 41444


Ignore:
Timestamp:
Dec 1, 2020, 3:35:59 PM (6 years ago)
Author:
mhuber
Message:

adding psphot option to disable covariance factor (reset 1.0) in linear fit photometry primarily for diffphot use (IPP-817)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/ippconfig/recipes/psphot.config

    r41291 r41444  
    337337# it overrides).
    338338LINEAR_FIT_VARIANCE_MODE            STR  CONSTANT
     339
     340# Use the covariance factor in the linear fit (true) or set factor to 1.0 (false)
     341LINEAR_FIT_COVAR_FACTOR             BOOL  TRUE
    339342
    340343PCM_BOX_SIZE                        S32   8
  • trunk/psphot/src/psphotFitSourcesLinear.c

    r40035 r41444  
    203203    // XXX do not apply covarFactor for the moment...
    204204    // covarFactor = 1.0;
     205
     206    bool use_covarfactor = psMetadataLookupBool(&status, recipe, "LINEAR_FIT_COVAR_FACTOR");
     207    if (!status) {
     208        use_covarfactor = true;
     209    }
     210
     211    if (!use_covarfactor) {
     212        covarFactor = 1.0;
     213        psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "Manually reset covariance factor: %f\n", covarFactor);
     214
     215    }
    205216
    206217    int Nsat = 0;
Note: See TracChangeset for help on using the changeset viewer.