From 480609f1e85a60c4b2ab6b16c6e8a65b482a9413 Mon Sep 17 00:00:00 2001
From: Grant Meadors <gdmeadors@gmail.com>
Date: Wed, 20 Feb 2013 18:32:19 -0800
Subject: [PATCH] Fixed an issue with the segmentDivider so it correctly
 filters out any segments shorter than 60 s from the start.

---
 segmentDivider.m | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/segmentDivider.m b/segmentDivider.m
index b5ea405..51348aa 100644
--- a/segmentDivider.m
+++ b/segmentDivider.m
@@ -15,7 +15,13 @@ function Hoft = segmentDivider(time0, time1)
         % Analyze the start and end times to determine the boundaries
         % of science segments in between
         % Load a list of science segments
-        T.segments = load('seglist.txt');
+        % Filter so only segments 60 s or longer are kept
+        tempSeglist = load('seglist.txt');
+        T.segments =...
+            tempSeglist(...
+            tempSeglist(:, 2) - tempSeglist(:,1) >= 60, :);
+        clear tempSeglist
+
         % Input start and stop times
         if isnumeric(time0);
             T.time(1) = time0;
-- 
GitLab