- Timestamp:
- May 29, 2012, 4:18:58 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/eam_branches/ipp-20120405/Ohana/src/opihi/dvo/avextract.c
r33827 r33944 74 74 } 75 75 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 76 85 dvo_catalog_init (&catalog, TRUE); 77 86 … … 87 96 goto escape; 88 97 } 98 99 // init locally static variables (time refs) 100 dbExtractAveragesInit (); 89 101 90 102 // command-line is of the form: avextract field,field, field [where (field op value)...] … … 198 210 m = catalog.average[j].measureOffset; 199 211 200 // reset counters for saved fields, extract fields201 dbExtractAveragesInit (); 212 dbExtractAveragesInitAve (); // reset counters for saved fields (costs very little) 213 202 214 for (n = 0; n < Nfields; n++) { 203 215 values[n] = dbExtractAverages (&catalog.average[j], &catalog.secfilt[j*Nsecfilt], &catalog.measure[m], &fields[n]); … … 234 246 235 247 // 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) { 237 249 int status = WriteVectorTableFITS (RESULT_FILE, "RESULT", vec, Nreturn, FALSE, NULL); 238 if (!status) goto escape; 250 if (!status) { 251 goto escape; 252 } 239 253 } 240 254
Note:
See TracChangeset
for help on using the changeset viewer.
