# Created by Octave 3.6.3, Wed Jan 09 09:30:39 2013 UTC <builder@localhost.localdomain>
# name: cache
# type: cell
# rows: 3
# columns: 4
# name: <cell-element>
# type: sq_string
# elements: 1
# length: 17
cached_decompress


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 479
 Decompress a file using a cache.

 [fname,success]=cached_decompress(filename)

 Input:
  filename: name of the file which is possibly compressed

 Output:
  fname: the filename of the uncompressed file

 Global variables:
 CACHED_DECOMPRESS_DIR (default fullfile(getenv('HOME'),'tmp','Cache')):
    cache directory of decompressed files
 CACHED_DECOMPRESS_LOG_FID (default 1): file id for log message
 CACHED_DECOMPRESS_MAX_SIZE (default 1e10): maximum size of cache in bytes.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 33
 Decompress a file using a cache.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 10
ncCatArray


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 1239
 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)

 create a concatenated array from variables (varname) in a list of
 netcdf files along dimension dim.Individual elements can be accessed by
 subscribs, e.g. C(2,3) and the corrsponding subset of the appropriate file is loaded

 This list of netcdf files can be specified as a cell array (filenames),
 shell wildcard pattern (e.g. file_*.nc) or a function handle
 filenamefun. In this later case, this i-th filename is
 filenamefun(range(i)).

 Example:

 data = ncCatArray(3,{'file-20120708.nc','file-20120709.nc'},'SST')

 data = ncCatArray(3,'file-*.nc','SST')

 data = ncCatArray(3,@(t) ['file-' datestr(t,'yyyymmdd') '.nc'],...
              datenum(2012,07,08):datenum(2012,07,09));

 Note: in Octave the glob function is used to determine files matching the
 shell wildcard pattern, while in Matlab rdir is used. The function rdir
 is available from Matlab exchange under BSD license
 (http://www.mathworks.com/matlabcentral/fileexchange/19550).

 see also cache_decompress, ncArray
 Web: http://modb.oce.ulg.ac.be/mediawiki/index.php/ncArray



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 64
 Create an array that represent a concatenated NetCDF variables.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 7
nccoord


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 336
 Coordinates of a NetCDF variable.

 coord = nccoord(filename,varname)
 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.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 34
 Coordinates of a NetCDF variable.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 12
test_ncarray


# name: <cell-element>
# type: sq_string
# elements: 1
# length: 43
 Test ncBaseArray, ncCatArray and ncArray.



# name: <cell-element>
# type: sq_string
# elements: 1
# length: 42
 Test ncBaseArray, ncCatArray and ncArray.





