%% SNCTOOLS (<a href="http://mexcdf.sourceforge.net/">http://mexcdf.sourceforge.net/</a>).
%
% SNCTOOLS is a package of simple tools for manipulating netCDF files, or
% at least it started out that way.  The focus used to be just on reading
% and writing netCDF files, but can also handle the following formats under
% certain conditions. 
%
%   GRIB2, OPeNDAP:  can read datasets via oct_netcdf-java.  For GRIB2
%   please check the README.
%
%   HDF4:  can read datasets via MATLAB's HDFSD interface.
%
% The most important parts of SNCTOOLS are (in my humble opinions) the 
% following:
%
%   NC_ADDDIM         -  Adds a dimension to an existing oct_netcdf file
%   NC_ADDVAR         -  Adds a variable to a NetCDF file.
%   NC_ATTGET         -  Get the values of a NetCDF attribute.
%   NC_ATTPUT         -  Put an attribute into a oct_netcdf file.
%   NC_CREATE_EMPTY   -  Creates an empty netCDF file.
%   NC_DUMP           -  Matlab counterpart to the NetCDF utility 'oct_ncdump'.
%   NC_INFO           -  Information about a netCDF file.
%   NC_VARGET         -  Retrieve variable data.
%   NC_VARGETR        -  Retrieve raw, untransformed variable data.
%   NC_VARPUT         -  Write data into a NetCDF file.
%   TEST_SNCTOOLS     -  Runs the SNCTOOLS testsuite.
%
% Some older routines are also present that you may or may not find useful:
%
%   NC_ADDHIST        -  Either appends or constructs a history attribute.
%   NC_ADDRECS        -  Adds records to unlimited-dimension file.
%   NC_ADDNEWRECS     -  Adds monotonically increasing records to file.
%   NC_CAT            -  Concatentate files.
%   NC_DIFF           -  Determines if two NetCDF files contain same data.
%   NC_GETALL         -  Read the entire netCDF contents into structure
%   NC_GETDIMINFO     -  Returns metadata about a specific netCDF dimension.
%   NC_GETLAST        -  Get last few datums from unlimited NetCDF variable.
%   NC_GETVARINFO     -  Returns metadata about a specific NetCDF variable.
%   NC_ISCOORDVAR     -  Yes if the given variable is a coordinate variable.
%   NC_ISUNLIMITEDVAR -  Yes if the given variable has a record dimension.
%   NC_ISATT          -  Yes if the given attribute is in the file.
%   NC_ISVAR          -  Yes if the given variable is in the oct_netcdf file.
%   NC_PADHEADER      -  Pads the metadata header of a oct_netcdf file.
%   NC_VARRENAME      -  Renames a NetCDF variable.
%   SNC2MAT           -  Saves oct_netcdf file to *.mat format.
%
% Preferences
% -----------
%   PRESERVE_FVD - Setting the preference 'PRESERVE_FVD' to true will
%                  compel NC_VARGET to preserve the fastest varying
%                  dimension, i.e. NC_VARGET will not transpose the data.
%                  This flips the order of the dimension IDs from what one
%                  would see by using the oct_ncdump C utility.  This may
%                  result in a performance boost when working with large
%                  data.
%
