Information about mexnc distributed in the m_cmg/trunk- (for matlab 2006 - 2008a) Note for Matlab 200b and newer, where matlab includes native support for netcdf, you should have m_contrib/trunk/mexcdf_2008b_plus in your path!!! This is where we put the newer mexcdf from sourceforge- it may change with versions, so it's up to date with the current matlab used by cmg users (2009a on 3/2/2010) ========================================================================================== There are 3 flavors of mexnc for PC available currently,though there may be more at sourceforge. There are some tradeoffs to consider in deciding which of the older ones to use- If you choose to have OpenDAP support, you can't also have large file support. I also discovered that the DAP version for R14 causes a red herring error involving trying to write FillValue as a long. So if you get the red box with that error, look at which mexnc is in your path. At the moment, for data processing, the BEST one to use is the non-DAP enabled one for win2006a. 1) mexnc_win_2006a is not DAP enabled If using this version mexnc.mexw32 (size 108Kb) needs to be put in \Program Files\Matlab\R2006a\bin\win32 and $MATLABPATH needs mexnc_win_2006a dir first. This solves the odd fillvalue as long error problem, but doesn't access web DAP files 2) mexnc_dap_r14 is DAP enabled, for Windows XP & Matlab R14 If using this version mexnc.dll needs to be put in \Program Files\Matlab\R2006a\bin\win32 and $MATLABPATH needs to have the mexnc_dap_r14 dir first. This mostly works fine, but bombs with the odd fillvalue as long error occasionally 3) mex_dap_2006a is DAP enabled, for Windows XP & Matlab R14 If using this version mexnc.mexw32 (size(1928 Kb) needs to be put in \Program Files\Matlab\R2006a\bin\win32 and $MATLABPATH needs mex_dap_2006a/mexnc dir first. This one works getting DAP files from the web- test by trying : nc=netcdf('http://stellwagen.er.usgs.gov/cgi-bin/nph-dods/DATAFILES/OCEANOG_C/2481-A1H.cdf') **I didn't try to make it fail with the long FillValue.