From: <aba...@us...> - 2012-07-03 14:57:31
|
Revision: 10723 http://octave.svn.sourceforge.net/octave/?rev=10723&view=rev Author: abarth93 Date: 2012-07-03 14:57:21 +0000 (Tue, 03 Jul 2012) Log Message: ----------- add license Modified Paths: -------------- trunk/octave-forge/extra/ncArray/DESCRIPTION trunk/octave-forge/extra/ncArray/inst/@BaseArray/BaseArray.m trunk/octave-forge/extra/ncArray/inst/@BaseArray/full.m trunk/octave-forge/extra/ncArray/inst/@BaseArray/prod.m trunk/octave-forge/extra/ncArray/inst/cached_decompress.m trunk/octave-forge/extra/ncArray/inst/ncCatArray.m trunk/octave-forge/extra/ncArray/inst/nccoord.m trunk/octave-forge/extra/ncArray/inst/test_ncarray.m Added Paths: ----------- trunk/octave-forge/extra/ncArray/INDEX Modified: trunk/octave-forge/extra/ncArray/DESCRIPTION =================================================================== --- trunk/octave-forge/extra/ncArray/DESCRIPTION 2012-07-03 13:59:38 UTC (rev 10722) +++ trunk/octave-forge/extra/ncArray/DESCRIPTION 2012-07-03 14:57:21 UTC (rev 10723) @@ -5,7 +5,8 @@ Maintainer: Alexander Barth <bar...@gm...> Title: ncArray Description: Subsetting and concatenating of NetCDF files -Depends: octave (>= 3.4.0) +Categories: IO +Depends: octave (>= 3.4.0), octcdf (>= 1.1.5) Autoload: yes License: GPL version 2 or later -Url: http://octave.sf.net +Url: http://octave.sf.net, http://modb.oce.ulg.ac.be/mediawiki/index.php/ncArray Added: trunk/octave-forge/extra/ncArray/INDEX =================================================================== --- trunk/octave-forge/extra/ncArray/INDEX (rev 0) +++ trunk/octave-forge/extra/ncArray/INDEX 2012-07-03 14:57:21 UTC (rev 10723) @@ -0,0 +1,5 @@ +ncarray >> ncArray +ncArray + ncCatArray + ncArray + nccoord \ No newline at end of file Modified: trunk/octave-forge/extra/ncArray/inst/@BaseArray/BaseArray.m =================================================================== --- trunk/octave-forge/extra/ncArray/inst/@BaseArray/BaseArray.m 2012-07-03 13:59:38 UTC (rev 10722) +++ trunk/octave-forge/extra/ncArray/inst/@BaseArray/BaseArray.m 2012-07-03 14:57:21 UTC (rev 10723) @@ -1,4 +1,5 @@ -% sz size of the array (with at least two elements) +% create a BaseArray of size size sz +% sz has at least two elements. function retval = BaseArray(sz) Modified: trunk/octave-forge/extra/ncArray/inst/@BaseArray/full.m =================================================================== --- trunk/octave-forge/extra/ncArray/inst/@BaseArray/full.m 2012-07-03 13:59:38 UTC (rev 10722) +++ trunk/octave-forge/extra/ncArray/inst/@BaseArray/full.m 2012-07-03 14:57:21 UTC (rev 10723) @@ -1,3 +1,5 @@ +% make full (dense) array + function F = full(self); n = length(self.sz); Modified: trunk/octave-forge/extra/ncArray/inst/@BaseArray/prod.m =================================================================== --- trunk/octave-forge/extra/ncArray/inst/@BaseArray/prod.m 2012-07-03 13:59:38 UTC (rev 10722) +++ trunk/octave-forge/extra/ncArray/inst/@BaseArray/prod.m 2012-07-03 14:57:21 UTC (rev 10723) @@ -1,3 +1,4 @@ + function s = prod(self,varargin) funred = @times; Modified: trunk/octave-forge/extra/ncArray/inst/cached_decompress.m =================================================================== --- trunk/octave-forge/extra/ncArray/inst/cached_decompress.m 2012-07-03 13:59:38 UTC (rev 10722) +++ trunk/octave-forge/extra/ncArray/inst/cached_decompress.m 2012-07-03 14:57:21 UTC (rev 10723) @@ -1,19 +1,17 @@ +% Decompress a file using a cache. % [fname,success]=cached_decompress(filename) % -% Decompress a file if it is not already in cache -% % Input: % filename: name of the file which is possibly compressed % % Output: % fname: the filename of the uncompressed file -% % Alexander Barth, 2012-06-13 % +function [fname]=cached_decompress(url) -function [fname]=cached_decompress(url) global CASHED_GUNZIP_DIR global CASHED_GUNZIP_LOG_FID Modified: trunk/octave-forge/extra/ncArray/inst/ncCatArray.m =================================================================== --- trunk/octave-forge/extra/ncArray/inst/ncCatArray.m 2012-07-03 13:59:38 UTC (rev 10722) +++ trunk/octave-forge/extra/ncArray/inst/ncCatArray.m 2012-07-03 14:57:21 UTC (rev 10723) @@ -1,3 +1,5 @@ +% Create an array that represent a concatenated NetCDF variables. +% % C = ncCatArray(dim,filenames,varname) % C = ncCatArray(dim,pattern,varname) % C = ncCatArray(dim,filenamefun,varname,range) Modified: trunk/octave-forge/extra/ncArray/inst/nccoord.m =================================================================== --- trunk/octave-forge/extra/ncArray/inst/nccoord.m 2012-07-03 13:59:38 UTC (rev 10722) +++ trunk/octave-forge/extra/ncArray/inst/nccoord.m 2012-07-03 14:57:21 UTC (rev 10723) @@ -1,6 +1,14 @@ +% Coordinate of a NetCDF variable % coord = nccoord(filename,varname) -% get coordinates of a variables using CF convention +% get coordinates of the variable varname in the +% netcdf file called filename. The netcdf is assumed to +% follow the CF convention. +% coord is an array of structures with the field 'name' +% for the variable name and 'dims' with a cell-array of the +% netcdf dimensions. +% Author: Alexander Barth (bar...@gm...) + function [dims,coord] = nccoord(filename,varname) finfo = ncinfo(filename); Modified: trunk/octave-forge/extra/ncArray/inst/test_ncarray.m =================================================================== --- trunk/octave-forge/extra/ncArray/inst/test_ncarray.m 2012-07-03 13:59:38 UTC (rev 10722) +++ trunk/octave-forge/extra/ncArray/inst/test_ncarray.m 2012-07-03 14:57:21 UTC (rev 10723) @@ -1,5 +1,5 @@ -%function test_ncarray() % test ncBaseArray, ncCatArray and ncArray +function test_ncarray() varname = 'SST'; This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |