On the linux boxes mps-pc10 and mps-pc11, there is a directory called ~idl/ImanParser The code in ImanParser must set the library name and the library directory and the data file search path. The test program MatlabImanparserTest.m works fine with Matlab R2007b. The only difference is right at the top of the program (first 38 lines) reproduced below. To invoke matlab from the idl home directory, just type matlab &
% MatlabImanParserTest
%debug =nn is the name of the computer of the form mps-pcnn
debug = 10; % lab linux box
% debug = 4; % windows box
% debug = 5; % desk linux box
% debug = 11; % lab linux box
if (debug == 4)
strPath = 'C:\ImanParserWindows\';
elseif (debug == 5)
strPath = '/home/caywood/keck/imaging/ImanParser/';
elseif (debug == 10) || (debug ==11)
strPath = '/home/idl/ImanParser/';
end
if (debug == 4)
strLibName = 'ImanParserLib';
% strDll = [strPath 'ImanParserLib___Win32_Debug\' strLibName ]
strDll = [strPath 'ImanParserLib___Win32_Release\' strLibName ]
elseif (debug == 5) || (debug == 10) || (debug ==11)
strLibName = 'libImanParser';
strDll = [strPath strLibName '.so'];
end
strHeader = [strPath 'imanParser.h'];
% COST
if (debug == 4)
strFile = 'h:\\raw\\k459\\t_65g.0000';
elseif (debug == 5)
strFile = '/data/raw/k459/t_65g.0000';
elseif (debug == 10) || (debug == 11)
strFile = '/b/cat/k503/t_7ag.0000';
end