To use IDL from X windows, first setup IDL in system-specific ways (see below).
module load idlIf you want to access NSTX or NSTX-U MDSplus data with IDL, you can just type "module load nstx" and IDL will be loaded. Most X-window systems (but not MacX and eXodus) need permission to send their X windows to your X display. For example, if you have logged into a portal machine to run IDL, you will have to type
ssh portal.pppl.govin a login window, or give permission through some security menu, to allow X windows from portal.pppl.gov to be displayed at your display. Mac users should type " -Y" after "ssh".
IDL will be in your path, so simply type idl to the system prompt.
NSTX users new to Unix should read
$NSTXUSR/util/init_files/AAA_Whats_Here.txt.
To have access to NSTX routines (and some other user-written routines),
you will need additional
directories added to your IDL_PATH environmental variable.
If you are running the csh, tcsh or bash shells,
place the following in your
.cshrc UNIX startup file:
module load nstx
setenv IDL_PATH "~/MyIDLcode:$IDL_PATH"The other common way to incorporate frequently used local routines is to place them all in a file (or several) with any name, and compile them before you start running IDL code. E.g., if you put them in ~/myidlroutines.pro, you might define an environmental variable IDL_STARTUP to point to a routine that compliles all of these, e.g., place @~/myidlroutines.pro in ~/.idl_startup, and, in csh:
setenv IDL_STARTUP "~/.idl_startup"
You have some options. See Limiting "Flashing" when using IDL at PPPL.
Your monitor, or X-server, is probably set for 24-bit color (millions of colors), and the IDL routines are trying to work with 8-bit color. Do the following immediately upon entering IDL:
IDL> Device, Decomposed=0See http://NSTX.pppl.gov/nstx/Software/IDL/simplecolors.html for an easy way to plot with named colors in IDL. Excellent advice on using color in IDL is provided at Fanning Consulting IDL Pages . The page on Limiting "Flashing" when using IDL at PPPL is also relevant.
If the IDL documention convention has been followed, you may get documentation on individual routines, e.g., "routine_name", by typing:
IDL> doc_library,'routine_name'Many routines delevoped at PPPL and elsewhere are in our conventional IDL_PATH and are documented at idl_routines.html.
Please mail comments on this page to nstx_sw_dev.