source: Roms_tools/mexcdf/netcdf_toolbox/netcdf/@ncdim/att.m @ 1

Last change on this file since 1 was 1, checked in by cholod, 13 years ago

import Roms_Agrif

File size: 700 bytes
Line 
1function theResult = att(self)
2
3% ncdim/att -- Attributes of variables associated with a NetCDF dimension.
4%  att(self) returns a list of the ncvar objects that use the dimension
5%   associated with self, an ncdim object.
6 
7% Copyright (C) 1997 Dr. Charles R. Denham, ZYDECO.
8%  All Rights Reserved.
9%   Disclosure without explicit written consent from the
10%    copyright owner does not constitute publication.
11 
12% Version of 07-Aug-1997 15:45:48.
13
14if nargin < 1, help(mfilename), return, end
15
16result = cell(0, 0);
17
18v = var(self);
19for i = 1:length(v)
20   result = [result att(v{i})];
21end
22
23if nargout > 0
24   theResult = result;
25  else
26   for i = 1:length(result)
27      disp(name(result{i}))
28   end
29end
Note: See TracBrowser for help on using the repository browser.