/[MITgcm]/MITgcm/utils/matlab/rdmnc.m
ViewVC logotype

Diff of /MITgcm/utils/matlab/rdmnc.m

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph | View Patch Patch

revision 1.15 by jmc, Sat Mar 3 21:40:45 2007 UTC revision 1.16 by mlosch, Wed Mar 7 09:59:53 2007 UTC
# Line 165  function [S] = rdmnc_local(nc,varlist,it Line 165  function [S] = rdmnc_local(nc,varlist,it
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)

Legend:
Removed from v.1.15  
changed lines
  Added in v.1.16

  ViewVC Help
Powered by ViewVC 1.1.22