Changeset 432 in Sophya for trunk/Poubelle/archTOI.old/toisvr.cc
- Timestamp:
- Sep 24, 1999, 4:06:09 PM (26 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Poubelle/archTOI.old/toisvr.cc
r426 r432 36 36 37 37 38 void TOISvr::set TimeInterval(double tStart, double tEnd) {38 void TOISvr::setMJDInterval(double tStart, double tEnd) { 39 39 if (tStart>0) iter.tStart = tStart; 40 40 if (tEnd>0) iter.tEnd = tEnd; 41 41 } 42 43 void TOISvr::setUTCInterval(double tStart, double tEnd) { 44 if (tStart>0) iter.utcStart = tStart; 45 if (tEnd>0) iter.utcEnd = tEnd; 46 } 47 48 void TOISvr::setSNInterval(long tStart, long tEnd) { 49 if (tStart>0) iter.sStart = tStart; 50 if (tEnd>0) iter.sEnd = tEnd; 51 } 52 42 53 43 54 void TOISvr::setUnderSample(int n) { … … 110 121 else tsttoi(internalTime) 111 122 else tsttoi(mjd) 112 else tsttoi(boloTens) 113 else tsttoi(boloTens2) 114 else tsttoi(boloRaw) 123 else tsttoi(mutc) 124 else tsttoi(boloMuV) 125 else tsttoi(boloMuV2) 126 else tsttoi(boloRawMuV) 115 127 else tsttoi(boloRes) 116 128 else tsttoi(boloTemp) … … 118 130 else tsttoi(boloDACV) 119 131 else tsttoi(boloDACI) 120 else tsttoi(boloTens2T) 121 else tsttoi(boloRawCN) 122 else tsttoi(boloTensCN) 132 else tsttoi(boloMuV2T) 133 else tsttoi(boloRawMuVCN) 123 134 else tsttoi(dilDAC) 124 135 else tsttoi(dilSwitch) 136 else tsttoi(serviceTemp) 125 137 else tsttoi(sstDiode) 126 138 else tsttoi(sstChannel) … … 132 144 else tsttoi(sstStarT) 133 145 else tsttoi(gyroRaw) 134 else tsttoi(gyro Tens)146 else tsttoi(gyroV) 135 147 else tsttoi(gyroSpeed) 136 148 else tsttoi(gpsTime) … … 139 151 else tsttoi(altitude) 140 152 else tsttoi(tsid) 141 else tsttoi(azimut Bolo)142 else tsttoi(alpha Axis)143 else tsttoi(delta Axis)153 else tsttoi(azimuthBolo) 154 else tsttoi(alphaRotAxis) 155 else tsttoi(deltaRotAxis) 144 156 else tsttoi(alphaSst) 145 157 else tsttoi(deltaSst) 158 else tsttoi(alphaZenith) 159 else tsttoi(deltaZenith) 160 else tsttoi(alphaFPAxis) 161 else tsttoi(deltaFPAxis) 146 162 else tsttoi(alphaBolo) 147 163 else tsttoi(deltaBolo) … … 150 166 return false; 151 167 } 152 if (kind == sampleNum || kind == mjd ) notrig = true;168 if (kind == sampleNum || kind == mjd || kind == mutc) notrig = true; 153 169 string toiname = keyw.substr(1); 154 170 while (args != "") { 155 171 if (args[0] == ' ') { 156 args = args.substr(args.find_first_not_of(' ')); 172 x = args.find_first_not_of(' '); 173 if (x==string::npos) break; 174 args = args.substr(x); 157 175 if (args == "") break; 158 176 } … … 196 214 arg = arg.substr(arg.find_first_not_of(' ')); 197 215 } 198 if (key == "# TRANGE") {216 if (key == "#MJDRANGE") { 199 217 double tmin, tmax; 200 218 sscanf(arg.c_str(), "%lg %lg", &tmin, &tmax); 201 setTimeInterval(tmin, tmax); 219 setMJDInterval(tmin, tmax); 220 } else if (key == "#UTCRANGE") { 221 double tmin, tmax; 222 sscanf(arg.c_str(), "%lg %lg", &tmin, &tmax); 223 setUTCInterval(tmin, tmax); 224 } else if (key == "#SNRANGE") { 225 long tmin, tmax; 226 sscanf(arg.c_str(), "%ld %ld", &tmin, &tmax); 227 setSNInterval(tmin, tmax); 202 228 } else if (key == "#PATH") { 203 229 setDirectory(arg); … … 212 238 sscanf(arg.c_str(), "%lg", &t0); 213 239 archParam.acq.tBlock0 = t0; 240 } else if (key == "#UTCORIGIN") { 241 double t0; 242 sscanf(arg.c_str(), "%lg", &t0); 243 archParam.acq.utcOrigin = t0; 214 244 } else if (key == "#PERECH") { 215 245 double t0; … … 235 265 processRequest("#MJD0 1376.8358818"); 236 266 processRequest("#PERECH 0.005836818076"); 267 processRequest("#UTCORIGIN 1376.5"); 237 268 processRequest("#ASIGPS ASI_GPS_archeops1999.ascii"); 238 269 processRequest("#COMMENT Archtoi -- 23 september 1999 -- Eric Aubourg CEA/DAPNIA");
Note:
See TracChangeset
for help on using the changeset viewer.