The SolarSoft Environment
Simple Way of Invoking SolarSoft (not recommended)
Recommended Way of Invoking SolarSoft
Customizing the setup
Running SolarSoft
Comparison between Windows and Unix SolarSoft Setup
There are two ways of invoking SolarSoft under Windows:
1. Start IDL.
2. Click File, then Preferences, then the Startup
tab.
3. Set Working Directory to your preference.
3. Set Startup File to c:\ssw\gen\idl\ssw_system\idl_startup_windows.pro
(or wherever your ssw installation is)
4. Exit IDL.
5. Start IDL.
You now have an IDL session with all of the general components of SSW set up for you. To add specific instrument functionality (for example TRACE and Yohkoh/SXT) to your session, at the IDL command line type:
setssw_windows, /trace, /sxtThis method should be used only if no customization is necessary and the SSW tree is in the default location, c:/ssw.
1. Start IDL.
2. Click File, then Preferences, then the Startup
tab.
3. Set Working Directory to blank.
3. Set Startup File to blank.
4. Exit IDL.
5. Double-click the c:\ssw\site\setup\sswidl.bat
file.
You now have an IDL session with all of the general components of SSW set up for you. To add specific instrument functionality (for example TRACE and Yohkoh/SXT) to your session, at the IDL command line type:
setssw_windows, /trace, /sxtThe advantage of this method is that the sswidl.bat file can be customized to select your working directory, to run a personal IDL startup file, and to select a default set of SSW instruments. In addition, you may create several different versions of the sswidl.bat file to easily start IDL with different default environments. See the explanation below for instructions on customizing.
rem Define the location of SolarSoft, SSWDB and the Windows idl_startup set SSW=c:\ssw set SSWDB=c:\sswdb set IDL_STARTUP=c:\ssw\gen\idl\ssw_system\idl_startup_windows.pro rem A personal startup can be defined by editing the following statement set SSW_PERSONAL_STARTUP=c:\user_dir\idl_startup.pro rem You can define the default working directory using a cd command cd c:\working_dir rem A default set of instruments can be defined by editing the following rem set SSW_INSTR=hessi xray spex rem If you are not using the default version of IDL, add a path below start idlde
2. SSW_PERSONAL_STARTUP allows you to identify a personal startup file
to run after all other startup and instrument setup files are run.
You may want to define environment variables for local printers (PSLASER
and PSCOLOR) or set personal preferences (like !quiet=1). In the
example, c:\user_dir is assumed to be your "user" directory.
Note 1: Any idl_startup.pro file in the directory you
have set as your working directory will also be executed.
Note 2: You must not have the setssw_windows command in
your personal startup file - this will start an infinite loop.
start c:\rsi\idl52\idlde
7. You may create several version of the sswidl.bat file for running IDL in different environments. And you may wish to create a shortcut to each on the Desktop. If you create a shortcut, the following properties are suggested: "hidden" under general; "Run minimized" and "Close on exit" under Program. The sswidl.bat file to be executed should be specified in the "Cmd line" under Program.
$SSW\gen\setup\setup.ssw_env $SSW\site\setup.ssw_paths $SSW\site\setup.ssw_env $SSW\site\setup\IDL_STARTUP any personal idl_startup file (as defined by environment variable SSW_PERSONAL_STARTUP, or located in the current directory)
IDL> setssw_windows,/sxt,/traceMission and instrument level setup files (setup.xxx_paths and setup.xxx_env) and idl_startup files will be executed; any site and personal idl_startup files will be repeated.
Under Unix, the SolarSoft environment is created using setup files that define environment variables, and startup files the execute procedures as IDL starts. The setup files can be found in the SSW tree in /setup directories under the gen, instrument and site directories - they have filenames of the form setup.xxx_path and setup.xxx_env. The gen and instrument level setup files define default values of variables; the site level files modify the defaults to allow for local differences in the location of files. See the SolarSoft Setup web pages for more information.
All the files that define the environment variables under Unix should work for Windows. However, when you enter SSW IDL under Windows you will normally only have the general part of the SolarSoft tree selected - you then need to select a set of instruments using setssw_windows.
The setssw_windows procedure is analogous the setssw script at the shell level in Unix, but executes everything within IDL. When the user selects one or more instruments, the setssw_windows procedure executes the setup.xxx_path and setup.xxx_env files in the instrument and site directories in the same order as the Unix script, makes addition to the path using ssw_path, and finally executes any startup files.
This approach has one great advantage over the way things are done under Unix. At any time you can add another instrument and all the necessary environment variables are created, all the required startup files executed, and all the necessary extensions to the path made. Under Unix it is often necessary to exit IDL and re-enter with a new set of instruments - this is not needed under Windows.