IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Jul 30, 2005, 9:13:10 AM (21 years ago)
Author:
eugene
Message:

more photselection modifications

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/opihi/dvo/cmd.c

    r4606 r4679  
    77  int i, j, m, i1, i3, N1, N3, N;
    88  int Npts, NPTS, mode[3];
    9   int Ngraph, Nsec, Nregions;
     9  int Ngraph, Nsec, Nregions, KeepNulls;
    1010
    1111  Catalog catalog;
     
    3333  if (!SetRegionSelection (&argc, argv, &RegionName, &RegionList)) goto escape;
    3434  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  }
    3541
    3642  /* interpret command-line options */
     
    8086      SetSelectionParam (2);
    8187      M3 = ExtractMagnitudes (code[2], mode[2], &catalog.average[i], &catalog.secfilt[i*Nsec], &catalog.measure[m], &N3);
    82       if (N3 == 0) goto skip;
     88      if (N3 == 0) {
     89        if (KeepNulls) {
     90          ALLOCATE (M3, double, 1);
     91          N3 = 1;
     92          M3[0] = NO_MAG;
     93        } else {
     94          goto skip;
     95        }
     96      }
    8397
    8498      for (i1 = 0; i1 < N1; i1++) {
Note: See TracChangeset for help on using the changeset viewer.