Commit 0b3ef2d1 authored by Pierre Cazenave's avatar Pierre Cazenave
Browse files

Fix bug when reading 2D arrays after 3D arrays.

parent c8d22c80
......@@ -372,6 +372,7 @@ for aa=1:length(varnames)
% eval([varnames{aa},'=netcdf.getVar(nc,varID,start,count,''double'');'])
clear read_start read_count
switch sum(do_restrict) % there are dimensions to restrict
case 1 % only one dimension to restrict
switch find(do_restrict) % find position of restrictive variable
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