IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Oct 28, 2008, 3:05:05 PM (18 years ago)
Author:
eugene
Message:

cleanup timer marks

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psphot/src/psphotFitSourcesLinear.c

    r19910 r20453  
    2020    // float r;
    2121
    22     psTimerStart ("psphot");
     22    psTimerStart ("psphot.linear");
    2323
    2424    // bit-masks to test for good/bad pixels
     
    9393        psArrayAdd (fitSources, 100, source);
    9494    }
    95     psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "built fitSources: %f (%ld objects)\n", psTimerMark ("psphot"), sources->n);
     95    psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "built fitSources: %f sec (%ld objects)\n", psTimerMark ("psphot.linear"), sources->n);
    9696
    9797    // vectors to store stats for each object
     
    163163
    164164    psSparseResort (sparse);
    165     psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "built matrix: %f (%d elements)\n", psTimerMark ("psphot"), sparse->Nelem);
     165    psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "built matrix: %f sec (%d elements)\n", psTimerMark ("psphot.linear"), sparse->Nelem);
    166166
    167167    // set the sky, sky_x, sky_y components of border matrix
    168168    SetBorderMatrixElements (border, readout, fitSources, CONSTANT_PHOTOMETRIC_WEIGHTS, SKY_FIT_ORDER, markVal);
    169     psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "set border: %f (%d elements)\n", psTimerMark ("psphot"), sparse->Nelem);
    170169
    171170    psSparseConstraint constraint;
     
    184183        skyfit = NULL;
    185184    }
    186     psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "solve matrix: %f (%d elements)\n", psTimerMark ("psphot"), sparse->Nelem);
     185    psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "solve matrix: %f sec (%d elements)\n", psTimerMark ("psphot.linear"), sparse->Nelem);
    187186
    188187    // adjust I0 for fitSources and subtract
     
    203202        source->mode |= PM_SOURCE_MODE_SUBTRACTED;
    204203    }
    205     psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "sub models: %f (%d elements)\n", psTimerMark ("psphot"), sparse->Nelem);
     204    psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "sub models: %f sec (%d elements)\n", psTimerMark ("psphot.linear"), sparse->Nelem);
    206205
    207206    // measure chisq for each source
     
    211210        pmSourceChisq (model, source->pixels, source->maskObj, source->weight, maskVal);
    212211    }
    213     psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "get chisqs: %f (%d elements)\n", psTimerMark ("psphot"), sparse->Nelem);
     212    psLogMsg ("psphot.ensemble", PS_LOG_MINUTIA, "get chisqs: %f sec (%d elements)\n", psTimerMark ("psphot.linear"), sparse->Nelem);
    214213
    215214    // psFree (index);
     
    221220    psFree (border);
    222221
    223     psLogMsg ("psphot.ensemble", PS_LOG_INFO, "measure ensemble of PSFs: %f sec\n", psTimerMark ("psphot"));
     222    psLogMsg ("psphot.ensemble", PS_LOG_INFO, "measure ensemble of PSFs: %f sec\n", psTimerMark ("psphot.linear"));
    224223
    225224    psphotVisualShowResidualImage (readout);
     
    241240    fullArray = psRegionForImage (readout->mask, fullArray);
    242241    psImageMaskRegion (readout->mask, fullArray, "OR", markVal);
    243     psLogMsg ("psphot.ensemble", PS_LOG_INFO, "step 1: %f sec\n", psTimerMark ("psphot"));
    244242
    245243    // turn off MARK for all object pixels
     
    252250        psImageMaskCircle (source->maskView, x, y, model->radiusFit, "AND", PS_NOT_U8(markVal));
    253251    }
    254     psLogMsg ("psphot.ensemble", PS_LOG_INFO, "step 2: %f sec\n", psTimerMark ("psphot"));
    255252
    256253    // accumulate the image statistics from the masked regions
     
    289286        }
    290287    }
    291     psLogMsg ("psphot.ensemble", PS_LOG_INFO, "step 3: %f sec\n", psTimerMark ("psphot"));
    292288
    293289    // turn off MARK for all image pixels
    294290    psImageMaskRegion (readout->mask, fullArray, "AND", PS_NOT_U8(markVal));
    295     psLogMsg ("psphot.ensemble", PS_LOG_INFO, "step 4: %f sec\n", psTimerMark ("psphot"));
    296291
    297292    // set the Border T elements
     
    310305        psSparseBorderElementT (border, 2, 2, y2);
    311306    }
    312     psLogMsg ("psphot.ensemble", PS_LOG_INFO, "step 5: %f sec\n", psTimerMark ("psphot"));
    313307
    314308    return true;
Note: See TracChangeset for help on using the changeset viewer.