Changeset 4679 for trunk/Ohana/src/opihi/dvo/ccd.c
- Timestamp:
- Jul 30, 2005, 9:13:10 AM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/opihi/dvo/ccd.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/opihi/dvo/ccd.c
r4606 r4679 8 8 int i, m, k, Npts, NPTS, N; 9 9 int N1, N2, i1, i2, mode[4]; 10 int Ngraph, Nsec, Nregions ;10 int Ngraph, Nsec, Nregions, KeepNulls; 11 11 12 12 Catalog catalog; … … 33 33 if (!SetRegionSelection (&argc, argv, &RegionName, &RegionList)) goto escape; 34 34 if (!SetPhotSelections (&argc, argv, 4)) 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 options */ … … 82 88 SetSelectionParam (2); 83 89 M2 = ExtractDMag (&code[2], &mode[2], &catalog.average[i], &catalog.secfilt[i*Nsec], &catalog.measure[m], &N2); 84 if (N2 == 0) goto skip; 90 if (N2 == 0) { 91 if (KeepNulls) { 92 ALLOCATE (M2, double, 1); 93 N2 = 1; 94 M2[0] = NO_MAG; 95 } else { 96 goto skip; 97 } 98 } 85 99 86 100 for (i1 = 0; i1 < N1; i1++) {
Note:
See TracChangeset
for help on using the changeset viewer.
