“IDL script”的版本间差异

来自Shiyin's note
跳到导航 跳到搜索
(以“ IDL <<EOF print,'this is a script' exit EOF *intest.pro contains: pro intest read, one read, two print, one, two end *input.dat contains: ...”为内容创建页面)
 
无编辑摘要
 
第4行: 第4行:
EOF
EOF


*intest.pro contains: pro intest read, one read, two print, one, two end
*intest.pro contains:
pro intest
*input.dat contains: 1 2*callintest.pro contains intest exitTo run: cmd> idl callintest < input.dat % Compiled module: INTEST. 1.00000 2.00000
read, one
read, two
print, one, two
end
*input.dat contains:
1
2

*callintest.pro contains
intest
exit

*To run:
cmd> idl callintest < input.dat

% Compiled module: INTEST. 1.00000 2.00000

2013年12月18日 (三) 12:04的最新版本

IDL <<EOF
print,'this is a script'
exit
EOF
  • intest.pro contains:
pro intest
 read, one
 read, two
 print, one, two
end
  • input.dat contains:
 1
 2
  • callintest.pro contains
 intest
 exit
  • To run:
cmd> idl callintest < input.dat 

% Compiled module: INTEST. 1.00000 2.00000