Changeset 18524
- Timestamp:
- 06/25/16 23:37:21 (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/fact/processing/lidar.C
r18522 r18524 1 void dust(const char *fname, double beg=0, double end=100000)1 void lidar(const char *fname, double beg=0, double end=100000) 2 2 { 3 3 fits file(fname); … … 27 27 while (file.GetNextRow()) 28 28 { 29 if (time<50000) 30 time += 682607./45; 31 32 time += offset; 33 29 34 if (time<beg) 30 35 { … … 50 55 if (cnt>0) 51 56 { 52 cout << "result "; 53 avg[0]/cnt << " "; 54 avg[1]/cnt << " "; 55 avg[2]/cnt << " "; 56 avg[3]/cnt << endl; 57 cout << "result " << avg[0]/cnt << " " << avg[1]/cnt << " " << avg[2]/cnt << " " << avg[3]/cnt << endl; 57 58 return; 58 59 } 59 60 60 if (beg-lastt<time-end && (beg-last )*24*3600<10*60)61 if (beg-lastt<time-end && (beg-lastt)*24*3600<10*60) 61 62 { 62 cout << "result "; 63 trans[0] << " "; 64 trans[1] << " "; 65 trans[2] << " "; 66 trans[3] << endl; 63 cout << "result " << trans[0] << " " << trans[1] << " " << trans[2] << " " << trans[3] << endl; 67 64 return; 68 65 } 69 66 if (beg-lastt>time-end && (time-end)*24*3600<10*60) 70 67 { 71 cout << "result "; 72 t3 << " "; 73 t6 << " "; 74 t9 << " "; 75 t12 << endl; 68 cout << "result " << t3 << " " << t6 << " " << t9 << " " << t12 << endl; 76 69 return; 77 70 } 71 cout << "result " << endl; 72 return; 78 73 }
Note:
See TracChangeset
for help on using the changeset viewer.