From: <aba...@us...> - 2012-07-03 12:55:53
|
Revision: 10718 http://octave.svn.sourceforge.net/octave/?rev=10718&view=rev Author: abarth93 Date: 2012-07-03 12:55:44 +0000 (Tue, 03 Jul 2012) Log Message: ----------- Modified Paths: -------------- trunk/octave-forge/main/octcdf/inst/ncinfo.m trunk/octave-forge/main/octcdf/inst/ncread.m trunk/octave-forge/main/octcdf/inst/ncwrite.m Modified: trunk/octave-forge/main/octcdf/inst/ncinfo.m =================================================================== --- trunk/octave-forge/main/octcdf/inst/ncinfo.m 2012-07-03 12:45:00 UTC (rev 10717) +++ trunk/octave-forge/main/octcdf/inst/ncinfo.m 2012-07-03 12:55:44 UTC (rev 10718) @@ -1,7 +1,7 @@ % finfo = ncinfo(filename) % vinfo = ncinfo(filename,varname) -% return information about variable varname in netCDF -% file filename +% return information about complete netCDF file (filename) or about +% the specific variable varname. function info = ncinfo(filename,varname) Modified: trunk/octave-forge/main/octcdf/inst/ncread.m =================================================================== --- trunk/octave-forge/main/octcdf/inst/ncread.m 2012-07-03 12:45:00 UTC (rev 10717) +++ trunk/octave-forge/main/octcdf/inst/ncread.m 2012-07-03 12:55:44 UTC (rev 10718) @@ -1,6 +1,9 @@ % x = ncread(filename,varname) % x = ncread(filename,varname,start,count,stride) % read the variable varname from file filename. +% The parameter start contains the starting indices, count +% is the number of elements and stride the increment between +% two successive elements (default 1). function x = ncread(filename,varname,start,count,stride) @@ -74,3 +77,19 @@ x = permute(x,[ndims(x):-1:1]); x = reshape(x,count); close(nc) + + +%% Copyright (C) 2012 Alexander Barth +%% +%% 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/>. Modified: trunk/octave-forge/main/octcdf/inst/ncwrite.m =================================================================== --- trunk/octave-forge/main/octcdf/inst/ncwrite.m 2012-07-03 12:45:00 UTC (rev 10717) +++ trunk/octave-forge/main/octcdf/inst/ncwrite.m 2012-07-03 12:55:44 UTC (rev 10718) @@ -1,6 +1,9 @@ % ncwrite(filename,varname,x) % ncwrite(filename,varname,x,start,stride) % write the variable varname to file filename. +% The parameter start contains the starting indices +% and stride the increment between +% two successive elements (default 1). function ncwrite(filename,varname,x,start,stride) This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |