/[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.22 by mlosch, Fri May 28 07:16:43 2010 UTC revision 1.23 by mlosch, Thu Jan 27 11:42:02 2011 UTC
# Line 509  function A = ncgetatt(nc,varname) Line 509  function A = ncgetatt(nc,varname)
509        if ~ischar(attval)        if ~ischar(attval)
510          attval = double(attval);          attval = double(attval);
511        end        end
512        A.(char(attn))=attval;        if strcmp(attn,'_FillValue')
513            % matlab does not allow variable names to begin with an
514            % underscore ("_"), so we have to do change the name of this
515            % obsolete attribute.
516            A.FillValue_=attval;
517          else
518            A.(char(attn))=attval;
519          end
520      end      end
521    else    else
522        A = 'none';        A = 'none';

Legend:
Removed from v.1.22  
changed lines
  Added in v.1.23

  ViewVC Help
Powered by ViewVC 1.1.22