Changeset 1527 in Sophya for trunk/ArchTOIPipe/Kernel/fitstoirdr.cc
- Timestamp:
- Jun 14, 2001, 3:39:07 PM (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/ArchTOIPipe/Kernel/fitstoirdr.cc
r1480 r1527 71 71 fits_lock(); 72 72 // Dans cette version, on s'attend a ce que la premiere colonne soit le samplenum 73 int itoi=-1; 73 74 for (int i=1; i<ncols; i++) { 74 75 char templt[10]; … … 78 79 fits_get_colname(fptr, CASESEN, templt, colname, &colnum, &fstatus); 79 80 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 } 81 88 } 82 89 fits_unlock(); … … 130 137 if (sn < mgr->getRequestedBegin()) continue; 131 138 // 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 134 142 fits_lock(); 135 143 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 } 136 148 fits_unlock(); 137 putData( j-1, sn, y);149 putData(k, sn, y, flg); 138 150 } 139 151 }
Note:
See TracChangeset
for help on using the changeset viewer.