IDL
Interactive Data Language (IDL) is a programming language used for data analysis and is popular in several scientific fields. This page explains how to use the IDL module on Oscar run IDL programs.
Setting Up IDL
First load the IDL module that you want to use with module load idl/version_number
:
As indicated by the system dialogue, you will need to enter the following command to set up the environment for IDL:
IDL Command Line
Once you've set up IDL in the way outlined above, you can open the IDL command line by simply using the command idl
:
IDL Programs
To write an IDL program, you can use any of the text editors on Oscar (such as vim, emacs, and nano) or you can create the program in a file on your own computer and then copy that file to Oscar when you are finished. Here is an example (hello world) IDL program idl_hello_world.pro
:
Once you have the .pro
file on Oscar, you can then run this file using a batch script. Here is a bare bones version of a batch script (called idl_hello_world.sh)
that will run the script idl_hello_world.pro
(note that the .pro
is omitted in the script).
We can then run the batch file by using the sbatch
command:
Last updated
Was this helpful?