IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jun 26, 2012, 11:31:38 AM (14 years ago)
Author:
eugene
Message:

re-enable MODEL_VAR option for linear photometry fit

Location:
trunk/psModules
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules

  • trunk/psModules/src/detrend/pmFringeStats.c

    r31069 r34085  
    662662        if (item->type == PS_DATA_VECTOR) { \
    663663            ARRAY->data[i] = psMemIncrRefCounter(item->data.V); \
    664         } else if (item->type == PS_TYPE_##TYPE) { \
     664        } else if (item->type == PS_DATA_##TYPE) { \
    665665            psVector *vector = psVectorAlloc(1, PS_TYPE_##TYPE); \
    666666            vector->data.TYPE[0] = item->data.TYPE; \
  • trunk/psModules/src/detrend/pmNonLinear.c

    r29935 r34085  
    8282    }
    8383    PS_ASSERT_PTR_NON_NULL(outFlux,NULL);
    84     psS32 tableSize = inFlux->n;
     84    // XXX unused psS32 tableSize = inFlux->n;
    8585    if (inFlux->n != outFlux->n) {
    86         tableSize = PS_MIN(inFlux->n, outFlux->n);
     86        // XXX unused tableSize = PS_MIN(inFlux->n, outFlux->n);
    8787        psLogMsg(__func__, PS_LOG_WARN,
    8888                 "WARNING: pmNonLinear.c: pmNonLinearityLookup(): "
     
    329329
    330330    bin = correction_fluxes->n - 1;
     331    psTrace("psModules.nonlin",6,"NLMN: %f %d %f %f\n",flux,bin,correction_fluxes->data.F32[0],correction_fluxes->data.F32[bin]);
     332    if (bin < 0) { /* warn? */ }
    331333    if (flux < correction_fluxes->data.F32[0]) {
    332334        return(0.0);
     
    357359    bin = correction_fluxes->n - 1;
    358360    psTrace("psModules.nonlin",6,"NLMN: %f %d %f %f\n",flux,bin,correction_fluxes->data.F32[0],correction_fluxes->data.F32[bin]);
     361    if (bin < 0) { /* warn? */ }
    359362    if (flux < correction_fluxes->data.F32[0]) {
    360363        return(0.0);
  • trunk/psModules/src/detrend/pmShutterCorrection.c

    r33089 r34085  
    406406
    407407    // Check input sizes, generate first-pass statistics
    408     psRegion refRegion;                 // Reference region
    409408    psVector *refs = psVectorAlloc(num, PS_TYPE_F32); // Reference measurements
    410409    psVectorInit(refs, 0);
     
    441440            numCols = image->numCols;
    442441            // define the reference region : a box of size 'size' at the center
    443             refRegion = psRegionForSquare(0.5 * numCols, 0.5 * numRows, size);
     442            // XXX unused psRegion refRegion = psRegionForSquare(0.5 * numCols, 0.5 * numRows, size);
    444443            // Set up the sample regions : boxes of size 'size' at the 4 image corners
    445444            for (int j = 0; j < MEASURE_SAMPLES; j++) {
Note: See TracChangeset for help on using the changeset viewer.