Index: trunk/Mars/fact/processing/lidar.C
===================================================================
--- trunk/Mars/fact/processing/lidar.C	(revision 18688)
+++ trunk/Mars/fact/processing/lidar.C	(revision 18689)
@@ -27,4 +27,9 @@
     while (file.GetNextRow())
     {
+        //ignore strange values
+        if (t3<0 || t3>1.5)
+            continue;
+
+        //handle overflow in time
         if (time<50000)
             time += 682607./45;
@@ -64,5 +69,5 @@
         return;
     }
-    if (beg-lastt>time-end && (time-end)*24*3600<10*60)
+    if (beg-lastt>time-end && (time-end)*24*3600<10*60 && t3>=0)
     {
         cout << "result " << t3 << " " << t6 << " " << t9 << " " << t12 << endl;
