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.
There are two ways of invoking SolarSoft under Windows:
c:\ssw\gen\idl\ssw_system\idl_startup_windows.proOnce IDL has started, an example of how to select the TRACE and Yohkoh/SXT branches would be:
IDL> setssw_windows,/trace,/sxt ; (or whatever)The necessary SolarSoft routines should then be available to you to start your analysis...
Note: this method only works if the SSW tree is stored in the location assumed by the software (i.e. c:/ssw). If it isn't, or if you need greater functionality, follow the method detailed below:
You can execute the .bat file (by default this is called sswidl.bat) by double-clicking on the file. (Under Windows98, you can also execute the .bat file by double-clicking on the shortcut supplied with the installation kit.- see below)
The sswidl.bat file is generated as part the installation kit that you download after using the SSW Installation Form - the first few items will have been set to correspond with your answer about the location of the SolarSoft tree. The file should be located in $SSW\site\setup, where $SSW is used to designate the root of your SolarSoft tree.
An example of sswidl.bat is given below, together with an explanation of the instructions:
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
Only modify this definition if the value of root of SolarSoft is incorrect - this is a key component to starting SolarSoft under Windows - the routine idl_startup_windows itself SHOULD NOT BE MODIFIED.
start c:\rsi\idl52\idlde
If you are using a "cd" command in your sswidl.bat file to define the current directory, you also need to ensure that the "Working Directory" field within Startup is blank.
Move the shortcut onto the desktop. If necessary, modify the program "Cmd line" of the shortcut if the sswidl.bat file is not located under c:\idl_ssw.
The following files (if they exist) will be executed as IDL starts:
$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.
The example above shows SolarSoft invoked with the HESSI analysis environment. It you wanted to analyse SXT and TRACE data, set the environment variable to:
set SSW_INSTR=sxt traceIf you are creating your own 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.
It is also possible to set a default set of instruments by including a setssw_windows command (with the desired set of instruments) in a personal IDL startup file, rather than using a "set" command in the sswidl.bat file.