view extra/ncArray/inst/@ncArray/display.m @ 12663:7c7960da6a76 octave-forge

convert time to datenum
author abarth93
date Wed, 08 Jul 2015 08:06:05 +0000
parents a6a3ef834353
children
line wrap: on
line source

function display(self)

sz = size(self);
tmp = sprintf('%dx',sz);
fprintf('Size: %s\n',tmp(1:end-1))

c = coord(self);

fprintf('Coordinates:\n')

for i = 1:length(c)
  tmp = sprintf('%dx',size(c(i).val));
  stdname = c(i).standard_name;
  if isempty(stdname)
     stdname = '<unset>';
  end

  fprintf('  Name: %15s; standard name: %25s; size %10s\n',...
          c(i).name,stdname,tmp(1:end-1));
end


% Copyright (C) 2013 Alexander Barth <barth.alexander@gmail.com>
%
% This program is free software; you can redistribute it and/or modify
% it under the terms of the GNU General Public License as published by
% the Free Software Foundation; either version 2 of the License, or
% (at your option) any later version.
%
% This program is distributed in the hope that it will be useful,
% but WITHOUT ANY WARRANTY; without even the implied warranty of
% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
% GNU General Public License for more details.
%
% You should have received a copy of the GNU General Public License
% along with this program; If not, see <http://www.gnu.org/licenses/>.