Skip to content
Snippets Groups Projects
Commit a2c6af87 authored by leprob001's avatar leprob001
Browse files

Bugfix, the SAT dates are being calculated with applied floor function.

parent 28ab6452
No related branches found
No related tags found
No related merge requests found
134
\ No newline at end of file
135
\ No newline at end of file
......@@ -344,7 +344,7 @@ for oCombination = 1:size(soundsourceCombinations, 1)
% get all dates that intersect with segment
[~, segmentDatesIndex, segmentSatIndex] = intersect(floor(segmentInterpolatedDates), satDates);
intersectedSegmentPositions = segmentInterpolatedPositions(segmentDatesIndex, :);
intersectedSegmentDates = round(segmentInterpolatedDates(segmentDatesIndex, :));
intersectedSegmentDates = floor(segmentInterpolatedDates(segmentDatesIndex, :));
segmentSatPositions = satPositions(segmentSatIndex, :);
% get all soundsources of segment
segmentSoundsources = artoa.soundsources.extract( ...
......@@ -376,7 +376,7 @@ for oCombination = 1:size(soundsourceCombinations, 1)
% save positions and dates that have been interpolated and used for time divergence
trajectoryTimeDivergenceToGps.latitude = [trajectoryTimeDivergenceToGps.latitude; intersectedSegmentPositions(:, 1)];
trajectoryTimeDivergenceToGps.longitude = [trajectoryTimeDivergenceToGps.longitude; intersectedSegmentPositions(:, 2)];
trajectoryTimeDivergenceToGps.date = [trajectoryTimeDivergenceToGps.date; floor(intersectedSegmentDates)];
trajectoryTimeDivergenceToGps.date = [trajectoryTimeDivergenceToGps.date; intersectedSegmentDates];
end
......
......@@ -35,14 +35,13 @@ else
end
t = artoa.convert.rd2dmy(dates);
trd = round(dates);
textHandles = cell(1, length(t));
if pPlotAsMap
for i = 1:length(x)
textHandles{i} = textm( ...
y(i), ...
x(i), ...
{' '; [num2str(t(i, 3)) '-' pad(num2str(t(i, 2)), 2, 'left', '0') '-' pad(num2str(t(i, 1)), 2, 'left', '0') ', ' num2str(trd(i))]}, ...
{' '; [num2str(t(i, 3)) '-' pad(num2str(t(i, 2)), 2, 'left', '0') '-' pad(num2str(t(i, 1)), 2, 'left', '0') ', ' num2str(dates(i))]}, ...
'FontSize', 10, ...
'Color', pColor ...
);
......@@ -52,7 +51,7 @@ else
textHandles{i} = text( ...
x(i), ...
y(i), ...
{' '; [num2str(t(i, 3)) '-' pad(num2str(t(i, 2)), 2, 'left', '0') '-' pad(num2str(t(i, 1)), 2, 'left', '0') ', ' num2str(trd(i))]}, ...
{' '; [num2str(t(i, 3)) '-' pad(num2str(t(i, 2)), 2, 'left', '0') '-' pad(num2str(t(i, 1)), 2, 'left', '0') ', ' num2str(dates(i))]}, ...
'FontSize', 10, ...
'Color', pColor ...
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment