Hi,
I'm a sysadmin, trying to restore some idl scripts after a system crash. It's been a LONG time since I've done any IDL development myself.
I'm running an old shell script that calls some custom idl routines, and am getting fundamental-looking syntax errors that look to me like the idl pro's were maybe written for an older version of IDL. I've installed the IDL that I thought was working on the system before the crash, but I don't know for sure. I've tried with IDL 5.6, 6.0, 6.3, 6.4 and 8.2.
Below are the first few errors and parts of the code - could anyone point me the right way? Thanks!
% Compiled module: VB_ERROR.
Result=PICKFILE(GET_PATH=GET_PATH, _EXTRA = e)
^
% Syntax error.
At: /usr/local/VoxBo/pros/VoxBo_IO.pro, Line 64
% 1 Compilation error(s) in module VB_PICKFILE.
% Compiled module: GETFILENAME.
% Compiled module: RETURNXYZ.
% Compiled module: CREATEHEADER.
if i eq 0 then Tokens=strsplit(UserHeader(i),TABSPACE,/extract) else $
^
% Syntax error.
At: /usr/local/VoxBo/pros/VoxBo_IO.pro, Line 369
% 1 Compilation error(s) in module PARSEUSERHEADER.
TempParse=strsplit(InLine,TABSPACE,/extract)
^
% Syntax error.
At: /usr/local/VoxBo/pros/VoxBo_IO.pro, Line 672
TempParse=strsplit(InLine,TABSPACE,/extract)
^
% Syntax error.
At: /usr/local/VoxBo/pros/VoxBo_IO.pro, Line 705
TempParse=strsplit(InLine,TABSPACE,/extract)
===
The shell script looks like this. The "-nw" option is invalid in IDL 8.2
idl -nw -IDL_STARTUP /jet/aguirre/PatientStudies/BlindnessNOS/PrepScripts/ASL_scripts/local_asl_vs
===
The source for the first error looks like this:
FUNCTION VB_PICKFILE, GET_PATH=GET_PATH, _EXTRA = e
Result=PICKFILE(GET_PATH=GET_PATH, _EXTRA = e)
if GET_PATH eq strmid(result,0,rstrpos(result,'/')+1) then $
Result=strmid(result,rstrpos(result,'/')+1,strlen(result))
return,Result
end
|