IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36298


Ignore:
Timestamp:
Nov 22, 2013, 2:36:43 PM (13 years ago)
Author:
bills
Message:

add temporary recipe value BILLS.SCALE.FACTOR which multiplies the
convolution radius by the given factor

Location:
branches/eam_branches/ipp-20130904
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psModules/src/objects/pmPCMdata.c

    r36281 r36298  
    4343
    4444# define USE_DELTA_PSF 0
    45 # define KERNEL_NSIGMA 3.0
     45# define KERNEL_NSIGMA 5.0
     46
     47// TEST: factor to increase the convolution sigma. psphot modifies this global variable.
     48// Should be removed before commitng to the tag
     49psF32 BILLS_SCALE_FACTOR = 1.0;
    4650
    4751static void pmPCMdataFree (pmPCMdata *pcm) {
     
    344348    }
    345349    if (modelPSF->type == modelType_PS1_V1) {
    346         *sigma = 0.5 * (axes.major + axes.minor);
     350        *sigma = 0.5 * (axes.major + axes.minor) * BILLS_SCALE_FACTOR;
    347351        *kappa = PAR[PM_PAR_7];
    348352    }
  • branches/eam_branches/ipp-20130904/psphot/src/psphotExtendedSourceFits.c

    r36258 r36298  
    100100    assert (status && fitIter > 0);
    101101
     102    float billsScaleFactor = psMetadataLookupF32 (&status, recipe, "BILLS.SCALE.FACTOR");
     103    if (isfinite(billsScaleFactor)) {
     104        // this lives in psModules/src/objects/pmPCMdata.c and defaults to 1.0
     105        extern psF32 BILLS_SCALE_FACTOR;
     106        BILLS_SCALE_FACTOR = billsScaleFactor;
     107    }
     108       
    102109    float fitMinTol = psMetadataLookupF32 (&status, recipe, "EXT_FIT_MIN_TOL"); // Fit tolerance
    103110    if (!status || !isfinite(fitMinTol) || fitMinTol <= 0) {
Note: See TracChangeset for help on using the changeset viewer.