Changeset 4679 for trunk/Ohana/src/opihi/dvo/dmagmeas.c
- Timestamp:
- Jul 30, 2005, 9:13:10 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/dmagmeas.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/dmagmeas.c
r4606 r4679 7 7 int i, j, k, m, i1, i3, N1, N3, N; 8 8 int Npts, NPTS, param, mode[3]; 9 int Ngraph, Nsec, Nregions ;9 int Ngraph, Nsec, Nregions, KeepNulls; 10 10 11 11 Catalog catalog; … … 33 33 if (!SetRegionSelection (&argc, argv, &RegionName, &RegionList)) goto escape; 34 34 if (!SetPhotSelections (&argc, argv, 3)) goto usage; 35 36 KeepNulls = FALSE; 37 if (N = get_argument (argc, argv, "-nulls")) { 38 KeepNulls = TRUE; 39 remove_argument (N, &argc, argv); 40 } 35 41 36 42 /* interpret command-line arguments: dmagmeas F1 - F2 : (value) */ … … 81 87 SetSelectionParam (2); 82 88 M3 = ExtractMeasures (code[2], mode[2], &catalog.average[i], &catalog.secfilt[i*Nsec], &catalog.measure[m], &N3, param); 83 if (N3 == 0) goto skip; 89 if (N3 == 0) { 90 if (KeepNulls) { 91 ALLOCATE (M3, double, 1); 92 N3 = 1; 93 M3[0] = NO_MAG; 94 } else { 95 goto skip; 96 } 97 } 84 98 85 99 for (i1 = 0; i1 < N1; i1++) {
Note:
See TracChangeset
for help on using the changeset viewer.
