Ignore:
Timestamp:
Jun 14, 2001, 3:39:07 PM (24 years ago)
Author:
aubourg
Message:

gestion des flags

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/ArchTOIPipe/Kernel/fitstoirdr.cc

    r1480 r1527  
    7171  fits_lock();
    7272  // Dans cette version, on s'attend a ce que la premiere colonne soit le samplenum
     73  int itoi=-1;
    7374  for (int i=1; i<ncols; i++) {
    7475    char templt[10];
     
    7879    fits_get_colname(fptr, CASESEN, templt, colname, &colnum, &fstatus);
    7980    cout << "FITSTOIReader col " << colname << endl;
    80     declareOutput(colname);
     81    if (!strncmp(colname, "fg_", 3)) {
     82      colsinput[itoi].second=true;
     83    } else {
     84      declareOutput(colname);
     85      itoi++;
     86      colsinput[itoi] = pair<int,bool>(i,false);
     87    }
    8188  }
    8289  fits_unlock();
     
    130137    if (sn < mgr->getRequestedBegin()) continue;
    131138    // if (sn < mgr->getRequestedBegin()+10) cout << "rdr out " << sn << endl;
    132     for (int j=1; j<=ncols; j++) {
    133       if ( !checkOutputTOIIndex(j-1) )  continue;  // Reza - Si TOI non connecte
     139    for (int k=0; k<getNOut(); k++) {
     140      int j = colsinput[k].first;
     141      if ( !checkOutputTOIIndex(k) )  continue;  // Reza - Si TOI non connecte
    134142      fits_lock();
    135143      fits_read_col_dbl(fptr,j+1,i+1,1,1,0,&y,&anyNul,&fstatus);
     144      long flg = 0;
     145      if (colsinput[k].second) {
     146        fits_read_col_lng(fptr,j+2,i+1,1,1,0,&flg,&anyNul,&fstatus);
     147      }
    136148      fits_unlock();
    137       putData(j-1, sn, y);
     149      putData(k, sn, y, flg);
    138150    }
    139151  }
Note: See TracChangeset for help on using the changeset viewer.