From a80c2e7016df46f87de09714f5f33cdc468d0366 Mon Sep 17 00:00:00 2001 From: Pierre Cazenave Date: Thu, 16 Jul 2015 17:26:33 +0100 Subject: [PATCH] Fix array shapes. --- fvcom_prepro/get_CFS_forcing.m | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fvcom_prepro/get_CFS_forcing.m b/fvcom_prepro/get_CFS_forcing.m index 540d126..53891e4 100644 --- a/fvcom_prepro/get_CFS_forcing.m +++ b/fvcom_prepro/get_CFS_forcing.m @@ -330,7 +330,7 @@ for t = 1:nt end 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 start = [... @@ -354,7 +354,7 @@ for t = 1:nt length(data_time_idx)]; end 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}) = ... cat(1, ... @@ -376,8 +376,8 @@ for t = 1:nt case fields{aa} % This is the actual data. scratch.(fields{aa}).(structfields{ii}) = ... - [rot90(data_west.(fields{aa}).(structfields{ii})), ... - rot90(data_east.(fields{aa}).(structfields{ii}))]; + [data_west.(fields{aa}).(structfields{ii}); ... + data_east.(fields{aa}).(structfields{ii})]; otherwise % Assume the data are the same in both arrays. % A simple check of the range of values in the -- GitLab