Skip to content
Snippets Groups Projects
Commit 4fa3f88c authored by jacques.grelet_ird.fr's avatar jacques.grelet_ird.fr
Browse files

re-formattage visuel du code, pas de modifications réalisées

parent dc535dcf
No related branches found
No related tags found
No related merge requests found
......@@ -31,14 +31,14 @@ NO_CONTROL = s.code;
% Suppress longitude discontinuity at -180 or 180 crossing
% --------------------------------------------------------
deflon=find(isfinite(tsg.LONX));
dlon=diff(tsg.LONX(deflon));
tsg.indcross=find(abs(dlon)>180);
deflon = find(isfinite(tsg.LONX));
dlon = diff(tsg.LONX(deflon));
tsg.indcross = find(abs(dlon)>180);
if ~isempty(tsg.indcross)
tsg.loncross=sign(dlon(tsg.indcross))*360;
tsg.indcross=deflon(tsg.indcross);
tsg.loncross = sign(dlon(tsg.indcross))*360;
tsg.indcross = deflon(tsg.indcross);
for i=1:length(tsg.indcross)
tsg.LONX(tsg.indcross(i)+1:end)=tsg.LONX(tsg.indcross(i)+1:end)-tsg.loncross(i);
tsg.LONX(tsg.indcross(i)+1:end) = tsg.LONX(tsg.indcross(i)+1:end) - tsg.loncross(i);
end
end
tsg.lonplus = 0;
......
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