The invaluable MexCDF (MATLAB NetCDF interface) may now be found
here [sourceforge]. I was having issues with the old MexCDF versions, where MATLAB was complaining about the subrutine "subs" also being a variable. I installed this package on my mac using the Mac OS X binary provided. This binary requires a few shared libraries in the /sw/lib directory -- i.e., from
fink. You need to get the NetCDF and TIFF (wtf?) shared libraries. You also need to adjust the matlab path as:
addpath('/Users/rob/matlab/mexnc');
addpath('/Users/rob/matlab/snctools');
addpath('/Users/rob/matlab/netcdf_toolbox/netcdf');
addpath('/Users/rob/matlab/netcdf_toolbox/netcdf/ncutility');
addpath('/Users/rob/matlab/netcdf_toolbox/netcdf/nctype');
After I did this, everything seems to be working fine. You may want to add
ncquiet
to prevent your screen from filling up with "
ncattinq: ncid 12; varid 0; attname "_FillValue": Attribute not found" and the like.
No comments:
Post a Comment