From e7d3c9c92937a20ac340e41e39d5925d1bbfb672 Mon Sep 17 00:00:00 2001
From: Lewin Probst <info@emirror.de>
Date: Mon, 11 Nov 2019 12:57:13 +0100
Subject: [PATCH] Removed GPS soundsource markers before deployment of the
 soundsource.

---
 .../+edit/+timeOfArrival/plotSoundsourceToaFromGps.m          | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lib/+artoa/+controller/+edit/+timeOfArrival/plotSoundsourceToaFromGps.m b/lib/+artoa/+controller/+edit/+timeOfArrival/plotSoundsourceToaFromGps.m
index c02223a..dd1bbfa 100644
--- a/lib/+artoa/+controller/+edit/+timeOfArrival/plotSoundsourceToaFromGps.m
+++ b/lib/+artoa/+controller/+edit/+timeOfArrival/plotSoundsourceToaFromGps.m
@@ -89,6 +89,10 @@ for o = 1:length(fnames)
     selection = (gpsDates > soundSourceEnd);
     gpsDates(selection) = NaN;
     predictedToas(selection) = NaN;
+    % remove gps dates before deployment of soundsource
+    selection = (gpsDates < soundSourceBegin);
+    gpsDates(selection) = NaN;
+    predictedToas(selection) = NaN;
     clear selection;
     
     artoaGui.editTimeOfArrival.scatterToaFromGps.(fnames{o}) = scatter( ...
-- 
GitLab