Line | |
---|
1 | function 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 | |
---|
14 | if nargin < 1, help(mfilename), return, end |
---|
15 | |
---|
16 | result = cell(0, 0); |
---|
17 | |
---|
18 | v = var(self); |
---|
19 | for i = 1:length(v) |
---|
20 | result = [result att(v{i})]; |
---|
21 | end |
---|
22 | |
---|
23 | if nargout > 0 |
---|
24 | theResult = result; |
---|
25 | else |
---|
26 | for i = 1:length(result) |
---|
27 | disp(name(result{i})) |
---|
28 | end |
---|
29 | end |
---|
Note: See
TracBrowser
for help on using the repository browser.