Table of Contents
Something of a newcomer to the scene, the mexfile formerly known as MEXCDF (now MEXNC) can be linked to the OPeNDAP libraries, which basically allows any m-file that use MEXNC to access remote datasets just as you would with local NetCDF files. OPeNDAP-enabled mexnc clients for linux, solaris, and windows can be retrieved from the MEXCDF website.
In order to use the opendap mexnc client on queequeg, one should add the following
to one's
startup.m m-file,
and make sure that no old versions of mexcdf or the
netcdf toolbox are in your
matlab path.
addpath /opt/opendap/matlab/m -end addpath /opt/opendap/matlab/mexcdf/mexnc-opendap -end addpath /opt/opendap/matlab/mexcdf/snctools -end addpath /opt/opendap/matlab/mexcdf/netcdf_toolbox -end addpath /opt/opendap/matlab/mexcdf/netcdf_toolbox/netcdf -end addpath /opt/opendap/matlab/mexcdf/netcdf_toolbox/netcdf/nctype -end addpath /opt/opendap/matlab/mexcdf/netcdf_toolbox/netcdf/ncutility -end addpath /opt/opendap/matlab/rslice -end
You could also log into queequeg and your path will already be setup for you.
For the sake of this tutorial, however, just executing the following command in matlab on either ahab or queequeg will get you started.
>> addpath /home/jevans/dods_tutorial >> dap_path
If you want to do the following examples with your own computer, you need to follow the installation instructions on the mexcdf website, but substitute the opendap-enabled mex-file in place of the default mex-file.