Difference between revisions of "Applications/IDL"
From HPC
m (Pysdlb moved page IDL to Applications/IDL without leaving a redirect) |
m |
||
| Line 5: | Line 5: | ||
* Module names : idl/8.4 | * Module names : idl/8.4 | ||
* License: University of Hull Engineering department, restricted by physics department | * License: University of Hull Engineering department, restricted by physics department | ||
| + | |||
| + | == Usage Examples == | ||
| + | |||
| + | ===IDL Programs=== | ||
| + | |||
| + | Below is an example of a very basic IDL program called '''helloworld.pro''' | ||
| + | |||
| + | <pre style="background-color: #C8C8C8; color: black; border: 2px solid #C8C8C8; font-family: monospace, sans-serif;"> | ||
| + | |||
| + | ; helloworld.pro | ||
| + | pro helloworld,what | ||
| + | print,'HELLO ',what | ||
| + | end | ||
| + | |||
| + | </pre> | ||
| + | |||
| + | And the corresponding '''main.pro''' program | ||
| + | |||
| + | <pre style="background-color: #C8C8C8; color: black; border: 2px solid #C8C8C8; font-family: monospace, sans-serif;"> | ||
| + | |||
| + | ; main.pro | ||
| + | pro main | ||
| + | helloworld,'WORLD' | ||
| + | end | ||
| + | |||
| + | </pre> | ||
| + | |||
| + | ===SLURM Script=== | ||
| + | |||
| + | <pre style="background-color: #C8C8C8; color: black; border: 2px solid #C8C8C8; font-family: monospace, sans-serif;"> | ||
| + | |||
| + | #!/bin/bash | ||
| + | #SBATCH --job-name=sayhello | ||
| + | #SBATCH --output=slurm.out | ||
| + | #SBATCH --error=slurm.err | ||
| + | #SBATCH --partition=compute | ||
| + | |||
| + | idl -e main | ||
| + | |||
| + | </pre> | ||
| + | |||
| + | === Batch Submission === | ||
| + | |||
| + | |||
| + | <pre style="background-color: black; color: white; border: 2px solid black; font-family: monospace, sans-serif;"> | ||
| + | [username@login01 ~]$ sbatch idl.job | ||
| + | Submitted batch job 289543 | ||
| + | </pre> | ||
| + | |||
| + | == Further information == | ||
Revision as of 12:22, 15 March 2017
Contents
Application Details
- Description : IDL, short for Interactive Data Language, is a programming language used for data analysis. It is popular in particular areas of science, such as astronomy, atmospheric physics and medical imaging. IDL shares a common syntax with PV-Wave and originated from the same codebase, though the languages have subsequently diverged in detail.
- Versions : 8.4
- Module names : idl/8.4
- License: University of Hull Engineering department, restricted by physics department
Usage Examples
IDL Programs
Below is an example of a very basic IDL program called helloworld.pro
; helloworld.pro pro helloworld,what print,'HELLO ',what end
And the corresponding main.pro program
; main.pro pro main helloworld,'WORLD' end
SLURM Script
#!/bin/bash #SBATCH --job-name=sayhello #SBATCH --output=slurm.out #SBATCH --error=slurm.err #SBATCH --partition=compute idl -e main
Batch Submission
[username@login01 ~]$ sbatch idl.job Submitted batch job 289543