loaddap on Intel Mac OS 10.4.7
Ed Zaron
ezaron at coas.oregonstate.edu
Tue Nov 14 20:26:22 PST 2006
Forgive me if this is the wrong email list for this.
I am setting up a new computer with the latest Opendap, netcdf,
snctools, etc.
Machine info:
Intel Mac
OS X 10.4.7
Matlab 7.3.0 (R2006b)
I just installed the "Matlab Structs Tool 3.5.2" from here:
http://www.opendap.org/download/ml-structs.html
I built the latest libdap from source and it seems to work.
**** Major issue:
I cannot get loaddap to work. The command "help loaddap" returns a
proper help message, so I know that it is in my path. Also, whodap
works. Example of error:
>> t =
loaddap('-A','http://test.opendap.org/opendap/nph-dods/data/nc/fnoc1.nc')
??? Error: File: loaddap.m Line: 1 Column: 27
Unbalanced or misused parentheses or brackets.
The error is the same whether or not I suppply the -nojvm flag to matlab.
Looking at the README for the loaddap-3.5.2 source package, I see that
/usr/bin should be in front of /usr/share/loaddap in the matlabpath. I
have set this up, but I still receive the same error message. I am
guessing that the /usr/bin path supplies the dap-config script.
I have also tried to build from the loaddap-3.5.2 source package, but
this fails during the make. I can send the config.log if that would be
useful.
**** Minor issues:
1) writedap needs to be in the path of the shell that Matlab operates
in. This requires modifying the script that executes Matlab. On my
machine this is in /Applications/MATLAB73/bin/matlab . I just decided to
source my own bash profile:
source ~/.profile
and I added /usr/share/loaddap to my PATH in ~/.profile . [In addition,
as the installation notes state, this same directory needs to be added
to MATLABPATH.]
2) The whodap.m script calls writedap with "./writedap", so it looks for
this in the current working directory. This is fine if you run matlab
from the command line in /usr/share/loaddap, but I don't think it works
otherwise. I changed this to
eval(['!writedap -D -- ', url])
and it works just fine.
3) The correct url for the test dataset mentioned in the "help whodap"
command is
http://test.opendap.org/opendap/nph-dods/data/nc/fnoc1.nc
-Thanks, developers, for writing this great software!
Regards,
Ed
==============================================================================
To unsubscribe opendap, visit:
http://www.unidata.ucar.edu/mailing-list-delete-form.html
==============================================================================
More information about the Opendap
mailing list