diff --git a/segmentDivider.m b/segmentDivider.m index b5ea405702e6072877806f12e3fbee4e42a85e86..51348aaab7f811221bd38f01f4c2f12f2dba3a06 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;