Please email any concerns or comments to yacine@tapir.caltech.edu.
Download the code here (December 2008 version).
Please send me an email to get the username and password.
Readme file (pdf format)
Example input parameters
Example output spectrum
Example IDL routine to run SpDust on a grid of number densities : nh_grid.pro, and a plot of the resulting spectra.
1- Before running the code :
Change the path for the folder Data_Files in the file compile_spdust.pro.
2- Open an IDL session form the SPDUST/SpDust_IDL_routines directory
3- Compile all the IDL routines by entering at the command line :
IDL> @compile_spdust
This needs to be done only once each time you start a new session.
4- Define your input parameters in a structure. Example :
IDL> input_params = {nh: 30d, T: 1d2, chi: 1d, xh: 1d-3, xc: 3d-4, y: 0d, gamma: 0d, dipole: 9.3d, line: 7}
(for a possible use of an input file, refer to the readme)
5- SpDust takes these input parameters as a first argument, and the full path of your desired output file as a second argument. Example :
IDL> SPDUST, input_params, '~/emiss.out'
For optional arguments (frequency range, etc...), check the readme.