Changeset 350 in Sophya for trunk/Poubelle/archTOI.old/archtoi.cc
- Timestamp:
- Aug 4, 1999, 4:10:06 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/archtoi.cc
r342 r350 1 // archtoi.cc 2 // Eric Aubourg CEA/DAPNIA/SPP juillet 1999 3 4 1 5 #include <string> 2 6 #include <iostream.h> … … 27 31 void ArchTOI::init() 28 32 { 29 format = ascii ;33 format = ascii_fmt; 30 34 undef = "#"; 31 35 allBolos = false; … … 60 64 tsttoi(sampleNum) 61 65 else tsttoi(internalTime) 62 else tsttoi( utc)66 else tsttoi(mjd) 63 67 else tsttoi(boloTens) 64 68 else tsttoi(boloRaw) 65 else tsttoi(sst Signal)66 else tsttoi(sst Raw)69 else tsttoi(sstDiode) 70 else tsttoi(sstChannel) 67 71 else tsttoi(sstStarZ) 68 72 else tsttoi(sstStarF) … … 117 121 } 118 122 if (key == "#ASCII") { 119 format = ascii; 123 format = ascii_fmt; 124 } else if (key == "#FITS") { 125 format = fits_fmt; 120 126 } else if (key == "#TRANGE") { 121 127 double tmin, tmax; … … 135 141 double t0; 136 142 sscanf(arg.c_str(), "%lg", &t0); 137 svr.SetMJD0(0); 143 svr.SetMJD0(t0); 144 } else if (key == "#PERECH") { 145 double t0; 146 sscanf(arg.c_str(), "%lg", &t0); 147 svr.SetPerEch(t0); 138 148 } else if (key == "#END") { 139 149 return false; … … 190 200 while (iter.Next()) { 191 201 int nn = iter.getSampleIndex(); 192 // if (nn%200 == 0) {cout << "."; cout.flush(); 193 // if (ofn != iter.currentFile()->filename()) { 194 // ofn = iter.currentFile()->filename(); 195 // cout << "current file=" << ofn << endl; 196 // } 197 //} 198 //if (nn%(200*80) == 0) cout << endl; 202 if (nn%200 == 0) { 203 cout << "."; cout.flush(); 204 } 205 if (nn%(200*80) == 0) cout << endl; 199 206 // Si rien de dispo parmi les triggering, alors on passe au suivant 200 207 bool hasValue = false;
Note:
See TracChangeset
for help on using the changeset viewer.