IDL
You can use IDL on the Linux desktops in the Astronomy group, where it is preinstalled, or you can obtain a copy for use offline, on another machine. Most of the instructions below are to do with the first case, but there are notes on the second case at the bottom.
To set up your machine for using SolarSoft-inflected IDL (works only on selected machines within Astronomy), there is some additional setup you need, beyond login, ssh and using unix.
Key points:
- The instructions below suggest that you use the alternate ‘tcsh’ shell, at least temporarily.
- When you start the
tcsh
shell, it automatically reads a number of commands from the.cshrc
file in your home directory, so we need to configure that set of commands. - Most online help for ‘how to use the shell’ talks about the bash
shell, which is by far the most common shell in use nowadays.
However you can find some relevant help for
tcsh
in the O'Reilly tcsh book. (It's not unreasonable for you to usebash
or similar for all of your usual activities, and simply to invoke atcsh
shell temporarily, when you want to start up IDL. There are numerous alternative shells you can pick from, but almost all of them are ‘Bourne shell’ variants, such asbash
, and almost none arecsh
-style.).
Setting up .cshrc
§
Download the skeleton .cshrc
file and save it as
the file .cshrc
in your home directory. You can do that a couple of
ways.
At the command-line, type
% curl https://it.physics.gla.ac.uk/notes/applications/idl/idl.cshrc.txt >.cshrc
(where the %
represents the shell prompt).
Or else it might be easier to click on the above link, copy the text of the file, and
% cat >.cshrc
<paste the file in place>
^D
(where the ^D
represents holding down the control key and typing
d
). Or do something similar with your favourite editor.
If you type ls
after this, you won't see the file. If you type ls
-a
, however, you should see the file .cshrc
amongst the listed
files (the ls
command, without options such as -a
, suppresses
display of files starting with a dot).
If you look at the newly-created .cshrc
file (less .cshrc
, then
press space to look through the file, and q
to quit), you will see a
sequence of tcsh
commands.
Over time, you will probably end up making substantial configuration
adjustments to this .cshrc
file, to point to data, catalogues, and
cache locations, or to add convenient shortcut commands. Ask your
predecessor PhD students for advice. To begin with, leave the file
unchanged.
If you are aware of any errors in this skeleton file, or wish to suggest any additions, raise a ticket FAO Norman or Sandy.
Getting going §
If you are not already running Csh (type echo $0
to see your
current shell) then type tcsh
(not csh
), and then:
% gossw
% sswidl
Local IDL: downloads and licences §
You can download the software for local installation from
login.astro.gla.ac.uk
or other group machines, in the directory
/opt/idl/media/9.0
. Thus from a macOS device, for example,
% scp login.astro.gla.ac.uk:/opt/idl/media/9.0/idl90-mac-x86_64.pkg .
and then install the package. Note that there are now x86_64 and arm install bundles now. If you're using a M1+ MacOS device, use the arm installer.
Licensing wrinkles:
- As of summer 2024 only versions 8.9 onwards of IDL can now be licenced, therefore if you are running an older version, please obtain the latest from the location noted above.
- You may need to license a copy of IDL to use on a laptop for use away from the Kelvin Building.
For assistance in either of these cases, consult CoSE IT.