【发布时间】:2018-02-18 00:07:26
【问题描述】:
我正在尝试从 Windows 命令行启动 IDL 程序。 假设我有以下程序:
PRO hello
print, "Hello, I am a IDL script!"
a=bytarr(100,200)
outname='g:\testimage.tif'
WRITE_TIFF, outname, a
END
我想使用 IDL -e .RUN 从命令行执行这个程序,如下所示:
C:\Users\lein_pa>idl -e ".RUN G:/05_Software/01_IDL/IDLWorkspace/Default/hello.pro"
IDL Version 8.2, Microsoft Windows (Win32 x86_64 m64). (c) 2012, Exelis Visual Information Solutions, Inc.
Installation number: xxxxx.
Licensed for use by: xxx
% Compiled module:HELLO.
C:\Users\lein_pa>
如您所见,HELLO.pro 将被编译,但没有消息“你好,我是 IDL 脚本!”出现在外壳上,并且 testimage.tif 也没有写入磁盘。当我从 IDL IDE 启动这个程序时,一切正常。
请有人帮助我吗?我做错了什么?
【问题讨论】:
标签: windows cmd idl-programming-language