IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 36355


Ignore:
Timestamp:
Dec 5, 2013, 1:31:55 PM (13 years ago)
Author:
bills
Message:

if trace is off make psphot less chatty by ifdefing out some fprintfs

Location:
branches/eam_branches/ipp-20130904/psphot/src
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20130904/psphot/src/psphotExtendedSourceAnalysis.c

    r36351 r36355  
    179179    psLogMsg ("psphot", PS_LOG_INFO, "  %d annuli\n", Nannuli);
    180180
     181# if (PS_TRACE_ON)
    181182    fprintf (stderr, "ext analysis skipped @ 1  : %d\n", Nskip1);
    182183    fprintf (stderr, "ext analysis skipped @ 2  : %d\n", Nskip2);
     
    185186    fprintf (stderr, "ext analysis skipped @ 5  : %d\n", Nskip5);
    186187    fprintf (stderr, "ext analysis skipped @ 6  : %d\n", Nskip6);
     188#endif
    187189
    188190    psphotRadialProfileShowSkips ();
  • branches/eam_branches/ipp-20130904/psphot/src/psphotExtendedSourceFits.c

    r36354 r36355  
    635635          }
    636636
     637# if (PS_TRACE_ON)
    637638          fprintf (stderr, "failed to fit extended source model to object %d @ %f, %f (%x)\n", source->id, source->moments->Mx, source->moments->My, flags);
     639#endif
    638640          pmSourceSub (source, PM_MODEL_OP_FULL, maskVal);
    639641
  • branches/eam_branches/ipp-20130904/psphot/src/psphotKronIterate.c

    r35769 r36355  
    166166    }
    167167
     168# if (PS_TRACE_ON)
    168169    fprintf (stderr, "--- starting KRON ---\n");
     170#endif
    169171
    170172    // We measure the Kron Radius on a smoothed copy of the readout image
  • branches/eam_branches/ipp-20130904/psphot/src/psphotPetrosianStats.c

    r36327 r36355  
    127127                petRadius    = InterpolateValuesQuadratic (&petRatio->data.F32[nOut-3], &refRadius->data.F32[nOut-3], PETROSIAN_RATIO);
    128128              }
     129# if (PS_TRACE_ON)
    129130              float petRadiusLinear = InterpolateValues     (petRatio->data.F32[nOut-1], refRadius->data.F32[nOut-1], petRatio->data.F32[nOut], refRadius->data.F32[nOut], PETROSIAN_RATIO);
    130131              if (fabs(petRadius - petRadiusLinear) > fabs(refRadius->data.F32[nOut] - refRadius->data.F32[nOut-1])) {
    131132                fprintf (stderr, "big difference : %f vs %f\n", petRadius, petRadiusLinear);
    132133              }
     134#endif
    133135              petRadiusErr = InterpolateValuesErrX (petRatio->data.F32[nOut-1], refRadius->data.F32[nOut-1], petRatio->data.F32[nOut], refRadius->data.F32[nOut], PETROSIAN_RATIO, petRatioErr->data.F32[nOut-1], petRatioErr->data.F32[nOut]);
    134136            }
  • branches/eam_branches/ipp-20130904/psphot/src/psphotRadialProfile.c

    r36198 r36355  
    7272
    7373void psphotRadialProfileShowSkips () {
    74  
     74# if (PS_TRACE_ON)
    7575  fprintf (stderr, "radial profile skipped @ 1  : %d\n", Nskip1);
    7676  fprintf (stderr, "radial profile skipped @ 2  : %d\n", Nskip2);
     
    7878  fprintf (stderr, "radial profile skipped @ 4  : %d\n", Nskip4);
    7979  fprintf (stderr, "radial profile skipped @ 5  : %d\n", Nskip5);
     80#endif
    8081}
Note: See TracChangeset for help on using the changeset viewer.