Commit fc4e7153 authored by Sanjit Mitra's avatar Sanjit Mitra

If overlapping window is on, skip half segment to match mid-segment of SIDs

parent aa5064f4
......@@ -125,6 +125,12 @@ catch
end
% If overlapping window is on, skip half segment to match mid-segment of SIDs
if foldParams.ovlWinCorrection
startOffset = startOffset + foldedSegDuration/2.0;
end
% Missing segments
missingSegments = find(~foldParams.segDist);
if (length(missingSegments) > 0) & (verbose)
......@@ -169,7 +175,7 @@ for iSegment = 1:segmentsPerFrame:nSegment
% Start and end sidereal time of data in current frame
siderealStart = startOffset + (iSegment-1)*foldedSegDuration;
siderealEnd = siderealStart + foldParams.segDuration*nSegment_thisFile;
siderealEnd = siderealStart + foldedSegDuration*nSegment_thisFile;
% Everytime there is a break in jobfile, move to next sidereal day
thisGPSStart = round(siderealStart + FSIDGPSOffset + jobCount*siderealDay);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment