IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 27, 2021, 3:55:13 PM (5 years ago)
Author:
eugene
Message:

consolidate reload_catalogs and relphot_objects; option to supply grid correction in relphot -averages and relphot -apply-offsets

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/relphot.20210521/src/reload_catalogs.c

    r41620 r41623  
    1717
    1818  struct timeval start, stop;
    19   double dtime = 0.0;
    20   double time1 = 0.0;
    21   double time2 = 0.0;
    22   double time3a = 0.0;
    23   double time3b = 0.0;
    24   double time4 = 0.0;
    25   double time5 = 0.0;
    26   double time6 = 0.0;
    27   double time7 = 0.0;
     19  double dtime = 0.0, time1 = 0.0, time2 = 0.0, time3 = 0.0;
     20  double time4 = 0.0, time5 = 0.0, time6 = 0.0, time7 = 0.0, time8 = 0.0;
    2821
    2922  // XXX need to decide how to determine PARALLEL mode...
     
    8073    TIMESTAMP(time2);
    8174
    82     // XXX relphot_objects.c resets average and secfilt here
    83 
    8475    populate_tiny_values(&catalog, DVO_TV_MEASURE | DVO_TV_AVERAGE);
    85     TIMESTAMP(time3a);
     76    TIMESTAMP(time3);
    8677
    8778    // XXX need to worry about the image subset data
    8879    initImageBins  (&catalog, 1, FALSE);
    89     initMosaicBins (&catalog, 1, FALSE);
    90     initTGroupBins (&catalog, 1);
    91 
    92     initGridBins   ();
    93     TIMESTAMP(time3b);
     80    TIMESTAMP(time4);
    9481
    9582    findImages (&catalog, 1, FALSE);
    96     findMosaics (&catalog, 1, FALSE);
    97     findTGroups (&catalog, 1);
    98 
    99     TIMESTAMP(time4);
     83    TIMESTAMP(time5);
    10084
    10185    initMrel (&catalog, 1);
     
    10387    setMflatFromGrid (&catalog); // Mgrid is used to set Mflat; Mgrid is the ignored in setMrelFinal/setMrelCatalog.c
    10488    setMrelFinal (&catalog, FALSE);
    105     TIMESTAMP(time5);
    106 
    107     // XXX relphot_objects allows !UPDATE and skips
     89    TIMESTAMP(time6);
    10890
    10991    // modify the output format as desired (ignore current format on disk)
     
    125107    free_tiny_values(&catalog);
    126108    dvo_catalog_free (&catalog);
    127     TIMESTAMP(time6);
    128 
    129     // XXX freeTgroupBins here:
     109    TIMESTAMP(time7);
    130110
    131111    freeImageBins (1, FALSE);
    132     freeMosaicBins (1, FALSE);
    133     freeTGroupBins (1);
    134     freeGridBins ();
    135     TIMESTAMP(time7);
     112    TIMESTAMP(time8);
    136113
    137114    if (hostID) {
     
    140117  }
    141118
    142   fprintf (stderr, "time step 1  %10.3f sec : find catalog\n", time1);
    143   fprintf (stderr, "time step 2  %10.3f sec : load catalog\n", time2);
    144   fprintf (stderr, "time step 3  %10.3f sec : make tiny values\n", time3a);
    145   fprintf (stderr, "time step 4  %10.3f sec : init imbins\n",  time3b);
    146   fprintf (stderr, "time step 5  %10.3f sec : find images\n",  time4);
    147   fprintf (stderr, "time step 6  %10.3f sec : set Mrel\n",     time5);
    148   fprintf (stderr, "time step 7  %10.3f sec : save catalog\n", time6);
    149   fprintf (stderr, "time step 8  %10.3f sec : free catalog\n", time7);
     119  fprintf (stderr, "time step 1  %10.3f sec : find catalog\n",     time1);
     120  fprintf (stderr, "time step 2  %10.3f sec : load catalog\n",     time2);
     121  fprintf (stderr, "time step 3  %10.3f sec : make tiny values\n", time3);
     122  fprintf (stderr, "time step 4  %10.3f sec : init imbins\n",      time4);
     123  fprintf (stderr, "time step 5  %10.3f sec : find images\n",      time5);
     124  fprintf (stderr, "time step 6  %10.3f sec : set Mrel\n",         time6);
     125  fprintf (stderr, "time step 7  %10.3f sec : save catalog\n",     time7);
     126  fprintf (stderr, "time step 8  %10.3f sec : free catalog\n",     time8);
    150127}
    151128
Note: See TracChangeset for help on using the changeset viewer.