165 |
% Attributes for structure |
% Attributes for structure |
166 |
if iters>0; S.iters_from_file=iters; end |
if iters>0; S.iters_from_file=iters; end |
167 |
S.attributes.global=read_att(nc); |
S.attributes.global=read_att(nc); |
168 |
|
[pstr,netcdf_fname,ext] = fileparts(name(nc)); |
169 |
|
if strcmp(netcdf_fname(end-3:end),'glob') |
170 |
|
% assume it is a global file produced by gluemnc and change some |
171 |
|
% attributes |
172 |
|
S.attributes.global.sNx = S.attributes.global.Nx; |
173 |
|
S.attributes.global.sNy = S.attributes.global.Ny; |
174 |
|
S.attributes.global.nPx = 1; |
175 |
|
S.attributes.global.nSx = 1; |
176 |
|
S.attributes.global.nPy = 1; |
177 |
|
S.attributes.global.nSy = 1; |
178 |
|
S.attributes.global.tile_number = 1; |
179 |
|
S.attributes.global.nco_openmp_thread_number = 1; |
180 |
|
end |
181 |
|
|
182 |
% Read variable data |
% Read variable data |
183 |
for ivar=1:size(varlist,2) |
for ivar=1:size(varlist,2) |