Standard Install Instructions: ============================== Simply add the path to this directory to your matlab path, and you should be set. Platform-Specific Notes: ======================== If your platform isn't listed here, then either there aren't any problems with the standard installation or nobody has reported any yet... Linux R14: Two versions are provided. mexnc.mexglx ============ NetCDF 3.6.0-p1, Mandriva 2006, kernel 2.6.12-12mdk, gcc 4.0, glibc-2.3.5-5mdk, MATLAB Version 7.0.4.352 (R14) Service Pack 2. mexnc.mexglx.redhat73 ===================== NetCDF 3.6.0-p1, RedHat 7.3, kernel 2.4.20-18.7, gcc 2.96, glibc-2.2.5-44, MATLAB Version 7.0.4.352 (R14) Service Pack 2. This version should work if your version of glibc is less than 2.3. If that's the case, then do a rm -f mexnc.mexglx mv mexnc.mexglx.redhat73 mexnc.mexglx and that should do it. Mac OS X R14: There are two mex-files to choose from. "mexnc.mexmac-schlining" was built expecting to find the netcdf dynamic library at /sw/lib/libnetcdf.3.dylib This was installed via fink. "mexnc.mexmac-morsdorf" expects to find the same dynamic library at /usr/local/lib/libnetcdf.3.dylib If neither situation fits you, you may have to compile your own. Windows R14, R12 Place the mexnc.dll and netcdf.dll files into both of these directories C:\path\to\matlab\bin C:\path\to\matlab\bin\win32 and add both of them to your path. Please see the online FAQ. Compiling your Own: =================== If you need to roll your own on unix, please type from the unix prompt shell> make Rxx where "xx" is your matlab release (e.g. R11, R12, R13, R14). The result of this should be a mex-file called "mexnc.mex___", where the "___" is replaced by a suffix suitable to your platform (e.g. "glx" for linux, "mac" for Mac OS X, etc). Unless you are on windows, I would suggest you put the mex-file into the mexnc directory. On windows, you should put the mex-file into both the C:\path\to\matlab\bin and C:\path\to\matlab\bin\win32 directories. Make sure that the mex-file precedes the m-file "mexnc.m" on the matlab path. If compiling for windows, please take a look at the m-file win32_make_mexnc. It requires Microsoft Visual C++ compiler version 7.1 and Matlab 7 (sp1) and single threaded NetCDF 3.6.1 library (w/ large file support), but maybe you can get it to work for other variations. Note, I do not have access to Microsoft Visual C++, so I cannot test this. You will need to already have NetCDF installed on your system before attempting to compile mexnc. Make sure you add the directory into which this file was unpacked to your matlab path. If you also dowload the netcdf_toolbox, make sure that mexnc precedes the netcdf_toolbox in your matlab path. For information about building with opendap libraries, please see mexcdf.sourceforge.net.