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