The MADD program adds two spectra, creating a third spectrum.
The MADD program is called as follows (all parameters must be specified on one line):
<Machine ID>madd <name_r> <expno_r> <procno_r> <disk_r> <user_r> <name_1> <expno_1> <procno_1> <disk_1> <user_1> <factor_1> <name_2> <expno_2> <procno_2> <disk_2> <user_2> <factor_2>
A new spectrum file is created, using the first five parameters. The spectrum will be created using the two other spectra specified on the command line. The two spectra must have the same number of dimensions, the same number of points in all dimensions, and the same submatrix layout. This can be checked using the MPAR program. A data point in the result spectrum is calculated as the sum of the corresponding data point in spectrum 1, multiplied by factor_1, and the data point in spectrum 2, multiplied by factor_2. The two factors can be specified as negative numbers.
The spectrum created will contain only real numbers.
The scaling factors persent in the two input spectra will not be used.
The name of the spectrum created must not be the same as the name of one of the input spectra.