IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Apr 19, 2012, 2:08:20 PM (14 years ago)
Author:
eugene
Message:

added some commented-out timing tests; fix the indexing to the mosaic array

Location:
branches/eam_branches/ipp-20120405/Ohana/src/relphot/src
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120405/Ohana/src/relphot/src/MosaicOps.c

    r33799 r33820  
    258258    if (j != -1) {
    259259      // mark this mosaic as bad
    260       mosaic[i].skipCal = TRUE;
     260      mosaic[j].skipCal = TRUE;
    261261      Nmark ++;
    262262    }
  • branches/eam_branches/ipp-20120405/Ohana/src/relphot/src/global_stats.c

    r33651 r33820  
    11# include "relphot.h"
     2
     3# define MARKTIME(MSG,...) { \
     4  float dtime; \
     5  gettimeofday (&stopTimer, (void *) NULL); \
     6  dtime = DTIME (stopTimer, startTimer); \
     7  fprintf (stderr, MSG, __VA_ARGS__); }
    28
    39void global_stats (Catalog *catalog, int Ncatalog, FlatCorrectionTable *flatcorr) {
     
    511  StatType stN, stX, stS, imN, imX, imM, imD, msM, msX, msN, msD;
    612
     13  // struct timeval startTimer, stopTimer;
     14
    715  initstats ("MEAN");
    816
    917  fprintf (stderr, "\n");
    1018  fprintf (stderr, "STATS            median     mean    sigma      min      max   Nmeas\n");
     19
     20  // gettimeofday (&startTimer, (void *) NULL);
    1121
    1222  int Ns;
     
    1727    int seccode = photcodes[Ns][0].code;
    1828
     29    // MARKTIME("start star stats: %f sec\n", dtime);
    1930    stN = statsStarN (catalog, Ncatalog, Nsec, seccode, flatcorr);
     31    // MARKTIME("done star N: %f sec\n", dtime);
    2032    stX = statsStarX (catalog, Ncatalog, Nsec);
     33    // MARKTIME("done star X: %f sec\n", dtime);
    2134    stS = statsStarS (catalog, Ncatalog, Nsec);
     35    // MARKTIME("done star S: %f sec\n", dtime);
    2236 
    2337    fprintf (stderr, "   --- stats for %s ---\n", photcodes[Ns][0].name);
Note: See TracChangeset for help on using the changeset viewer.