The IDL package is used for data viusualization, data reduction, and analysis.
The following template submits an IDL source program to SGE for batch processing. IDL source files use the .pro extension by default.
#!/bin/csh #$ -M email@example.com #$ -m ae #$ -r y module load idl setenv IDL_STARTUP world_batch idl
When you edit the job script file on a Mac editor, you must change the end line after the executable, idl.
In the "world_batch" file,
.r hello_world.pro world
The 'hello_world.pro' file:
PRO world for i = 0, 100 do begin print, 'hello world!' endfor END
IDL programs producing plotted data need to plot to a file instead of a terminal window if they're run in batch mode. In the following example, the plot device is being set to postsript, and the program will write out the plot as a postscript file named 'sine_example.ps'
; set a postscript output device set_plot, 'ps' device, file='sine_example.ps' ;plot to that device plot, a(*,0), a(*,1), xtitle = 'x-axis', ytitle = 'y-axis', $ title = 'Simple Sine Curve' ;close that device device, /close
See the official website: IDL