From: <aba...@us...> - 2012-07-31 13:45:25
|
Revision: 10791 http://octave.svn.sourceforge.net/octave/?rev=10791&view=rev Author: abarth93 Date: 2012-07-31 13:45:19 +0000 (Tue, 31 Jul 2012) Log Message: ----------- Modified Paths: -------------- trunk/octave-forge/main/octcdf/inst/@ncdim/isrecord.m trunk/octave-forge/main/octcdf/inst/ncinfo.m Modified: trunk/octave-forge/main/octcdf/inst/@ncdim/isrecord.m =================================================================== --- trunk/octave-forge/main/octcdf/inst/@ncdim/isrecord.m 2012-07-31 11:44:13 UTC (rev 10790) +++ trunk/octave-forge/main/octcdf/inst/@ncdim/isrecord.m 2012-07-31 13:45:19 UTC (rev 10791) @@ -1,3 +1,4 @@ +% depreciated: use isrecdim instead function isr = isrecord(self) isr = ncisrecord(self); end Modified: trunk/octave-forge/main/octcdf/inst/ncinfo.m =================================================================== --- trunk/octave-forge/main/octcdf/inst/ncinfo.m 2012-07-31 11:44:13 UTC (rev 10790) +++ trunk/octave-forge/main/octcdf/inst/ncinfo.m 2012-07-31 13:45:19 UTC (rev 10791) @@ -30,7 +30,7 @@ vinfo.Size = fliplr(size(nv)); vinfo.Filename = filename; -vinfo.Dimensions = {}; +vinfo.Dimensions = []; vinfo.Name = varname; dims = fliplr(dim(nv)); @@ -39,8 +39,9 @@ tmp = struct(); tmp.Name = name(dims{i}); tmp.Length = dims{i}(:); - tmp.Unlimited = isrecord(dims{i}); - vinfo.Dimensions(i) = tmp; + % requires octcdf 1.1.6 + %tmp.Unlimited = isrecdim(dims{i}); + vinfo.Dimensions = [vinfo.Dimensions; tmp]; end @@ -54,7 +55,7 @@ tmp.Name = nm; tmp.Value = na{j}(:); - vinfo.Attributes(j) = tmp; + vinfo.Attributes = [vinfo.Attributes; tmp]; end vinfo.FillValue = fillval(nv); This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |