This software consists of three programs written in standard FORTRAN-77 that are used to reduce the BDA data to fitted spectral parameters, together with a number of IDL display routines. This software has been made largely obsolete by the development of the IDL-based BSC software discussed earlier. It is no longer being actively supported by BCS personnel. The FORTRAN programs are MKBSD, BSDCAL and BSDFIT:
0.1 in MKBSD extracts the spectra, applies instrument corrections and writes a new file, the BSD file.
BSDCAL fits selected lines in the spectra of the BSD file with Voigt profiles to produce a calibrated wavelength scale and writes this fit information to a BPC file.
BSDFIT fits a full theory spectrum to the calibrated BSD data to give electron temperature, emission measure and plasma velocity; the BPC file provides the first guess for the fitting program. The resulting fit parameters are written to a BFT file; the output theory spectra are written to the BTH file. 0.1 in
These programs can be run at the operating-system level using control files created either by using the setup sections of the programs (in the case of MKBSD and BSDCAL), or with the editor. It should be noted, however, that the differences between VMS, Ultrix, SunOS, and the other Unix-based operating systems used at Yohkoh sites complicate matters and the user may find it easier to run the programs from IDL, using BCSPRO. To do this:
If more subtle variations of the code options are required, after creation the control files may be modified either using the setup sections of the programs or by using the editor - the programs should then be re-run. For more information on these programs, see the various documents on $DIR_BCS_DOC.
Under the different operating systems, different executables are needed. The BCSPRO routine takes care of this, but the user should be aware of the different names if running outside of IDL. The task names under the different operating systems are:
Name VMS Unix MKBSD MKBSD $DIR_BCS_EXE/mkbsd_x BSDCAL BSDCAL $DIR_BCS_EXE/bsdcal_x BSDFIT BSDFIT $DIR_BCS_EXE/bsdfit_x
Note: Within Unix: the ``_x'' should be replaced by ``_u'' under Ultrix; ``_s'' under Sun/OS; and ``_m'' on the MIPS. Since MKBSD needs certain environment variables, this is normally run by executing ``$DIR_BCS_EXE/run_mkbsd'' which temporarily creates these, and automatically selects the correct task for the current machine.
0.1 in
A BSD file may be read into IDL with GET_BSD. After modification a new file may be written with WR_BSD - see section 2.5. 0.1 in IT SHOULD BE NOTED that the BSD files are not transferrable between machines and operating systems. Even though it would be possible (using IDL) to make them transferrable, since the normal route for generating the files using the FORTRAN-77 code does not produce transferrable files, it has been decided that the IDL code would follow the same restriction. The BSC files (see section 2.3), which are generated under IDL, are transferrable.