IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

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)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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.