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:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules

  • 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);
Note: See TracChangeset for help on using the changeset viewer.