IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Changeset 13439


Ignore:
Timestamp:
May 20, 2007, 10:55:35 AM (19 years ago)
Author:
eugene
Message:

working towards boolean selections

Location:
branches/kapa-mods-2007-05/Ohana/src/opihi/dvo
Files:
2 added
1 edited

Legend:

Unmodified
Added
Removed
  • branches/kapa-mods-2007-05/Ohana/src/opihi/dvo/avextract.c

    r12332 r13439  
    6868    for (j = 0; j < catalog.Naverage; j++) {
    6969      m = catalog.average[j].offset;
    70       vec[0].elements[N] = ExtractAverages (code, mode, &catalog.average[j], &catalog.secfilt[j*Nsecfilt], &catalog.measure[m], param);
     70      // extract the relevant values
     71      for (n = 0; n < Nfields; n++) {
     72        value[n] = ExtractAveragesNew (&catalog.average[j], &catalog.secfilt[j*Nsecfilt], &catalog.measure[m], field[n]);
     73      }
     74      // test the conditional statement
     75      if (!CheckBooleanCond (stack, Nstack, value, field, Nfield)) continue;
     76      for (n = 0; n < Nfields; n++) {
     77        vec[n].elements[N] = value[n];
     78      }
    7179      N++;
    7280      CHECK_REALLOCATE (vec[0].elements, float, NPTS, N, 2000);
Note: See TracChangeset for help on using the changeset viewer.