Skip to content
Snippets Groups Projects
Commit 68a0d717 authored by Oliver Lemke's avatar Oliver Lemke
Browse files

Remove duplicate maxima

parent a77e58b0
No related branches found
No related tags found
No related merge requests found
......@@ -155,9 +155,11 @@ M(3) = max(A(3,:));
M(4) = max(A(4,:));
maximum = max(max(M))';
[ret.x,ret.y]=find(A==maximum);
if size(ret.x, 1)>1
ret.x = ret.x(1);
ret.y = ret.y(1);
end
ret.maximum = repmat(maximum, size(ret.x));
% ret.x = ret.x(1);
% ret.y = ret.y(1);
ret.lon=((double(data.lonfov45(ret.y))+double(data.lonfov46(ret.y)))/2E4)'; % longitude of nadir at maximum of light curve
ret.lat=((double(data.latfov45(ret.y))+double(data.latfov46(ret.y)))/2E4)'; % latitude of nadir at maximum of light curve
ret.height=(double(data.height(ret.y))/10)'; % altitude of satellite at maximum of light curve
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment