IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
May 29, 2012, 4:18:58 PM (14 years ago)
Author:
eugene
Message:

split out time from csystem inits in dbExtractAverageInit to dbExtractAverageInitAve; allow option to skip result output for parallel ops; fix remote -reload; flush, fsync, fsetlockfile on remote command to ensure all machines see it (and report errors caught); handle equal value bins in threshold function; set global variable to hold the scrip name

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/eam_branches/ipp-20120405/Ohana/src/opihi/dvo/avextract.c

    r33827 r33944  
    7474  }
    7575
     76  // this is used to NOT save the results in the results file
     77  // use this option when mextract is used in a script which does its
     78  // own job of packaging the results
     79  int SKIP_RESULTS = FALSE;
     80  if ((N = get_argument (argc, argv, "-skip-results"))) {
     81    remove_argument (N, &argc, argv);
     82    SKIP_RESULTS = TRUE;
     83  }
     84
    7685  dvo_catalog_init (&catalog, TRUE);
    7786
     
    8796    goto escape;
    8897  }
     98
     99  // init locally static variables (time refs)
     100  dbExtractAveragesInit ();
    89101
    90102  // command-line is of the form: avextract field,field, field [where (field op value)...]
     
    198210      m = catalog.average[j].measureOffset;
    199211
    200       // reset counters for saved fields, extract fields
    201       dbExtractAveragesInit ();
     212      dbExtractAveragesInitAve ();  // reset counters for saved fields (costs very little)
     213
    202214      for (n = 0; n < Nfields; n++) {
    203215        values[n] = dbExtractAverages (&catalog.average[j], &catalog.secfilt[j*Nsecfilt], &catalog.measure[m], &fields[n]);
     
    234246
    235247  // write vectors to a table (this is used by parallel dvo operations, but can be used elsewhere)
    236   if (RESULT_FILE) {
     248  if (RESULT_FILE && !SKIP_RESULTS) {
    237249    int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nreturn, FALSE, NULL);
    238     if (!status) goto escape;
     250    if (!status) {
     251      goto escape;
     252    }
    239253  }
    240254
Note: See TracChangeset for help on using the changeset viewer.