Commit a80c2e70 authored by Pierre Cazenave's avatar Pierre Cazenave

Fix array shapes.

parent 381b430e
...@@ -330,7 +330,7 @@ for t = 1:nt ...@@ -330,7 +330,7 @@ for t = 1:nt
end end
data_west.(fields{aa}).(fields{aa}) = ... data_west.(fields{aa}).(fields{aa}) = ...
flipud(netcdf.getVar(ncid, varid, start, count, 'double')); netcdf.getVar(ncid, varid, start, count, 'double');
if length(dimids) == 4 if length(dimids) == 4
start = [... start = [...
...@@ -354,7 +354,7 @@ for t = 1:nt ...@@ -354,7 +354,7 @@ for t = 1:nt
length(data_time_idx)]; length(data_time_idx)];
end end
data_east.(fields{aa}).(fields{aa}) = ... data_east.(fields{aa}).(fields{aa}) = ...
flipud(netcdf.getVar(ncid, varid, start, count, 'double')); netcdf.getVar(ncid, varid, start, count, 'double');
scratch.(fields{aa}).(fields{aa}).(fields{aa}) = ... scratch.(fields{aa}).(fields{aa}).(fields{aa}) = ...
cat(1, ... cat(1, ...
...@@ -376,8 +376,8 @@ for t = 1:nt ...@@ -376,8 +376,8 @@ for t = 1:nt
case fields{aa} case fields{aa}
% This is the actual data. % This is the actual data.
scratch.(fields{aa}).(structfields{ii}) = ... scratch.(fields{aa}).(structfields{ii}) = ...
[rot90(data_west.(fields{aa}).(structfields{ii})), ... [data_west.(fields{aa}).(structfields{ii}); ...
rot90(data_east.(fields{aa}).(structfields{ii}))]; data_east.(fields{aa}).(structfields{ii})];
otherwise otherwise
% Assume the data are the same in both arrays. % Assume the data are the same in both arrays.
% A simple check of the range of values in the % A simple check of the range of values in the
......
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