IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 35454


Ignore:
Timestamp:
Apr 30, 2013, 11:02:00 AM (13 years ago)
Author:
eugene
Message:

adding merge history to FromList

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/dvomerge/src/dvomergeFromList.c

    r29938 r35454  
    103103    sprintf (outputfile, "%s/%s", output, list[i]);
    104104
     105    OutputStatus *outstat = OutputStatusInit (1);
     106    outstat[0].history = dmhObjectRead (outputfile);
     107
     108    dmhObjectStats *inStats = dmhObjectStatsRead (inputfile);
     109
    105110    LoadCatalog (&incatalog, NULL, inputfile, "r", NsecfiltInput);
    106111
     
    138143    outcatalog.catflags = LOAD_AVES | LOAD_MEAS | LOAD_MISS | LOAD_SECF;
    139144
     145    dmhObjectAdd (outstat[0].history, &outcatalog.header, inStats);
     146
    140147    // if we receive a signal which would cause us to exit, wait until the full catalog is written
    141148    SetProtect (TRUE);
     
    148155    fprintf (stderr, "merged %s into %s\n", inputfile, outputfile);
    149156
     157    dmhObjectStatsFree (inStats);
     158    OutputStatusFree (outstat, 1);
     159
    150160    dvo_catalog_unlock (&outcatalog);
    151161    dvo_catalog_free (&outcatalog);
Note: See TracChangeset for help on using the changeset viewer.