Program name: average_surfiles

OS: Runs on LINUX system only

Usage: This program can be used to average SMIS *.SUR images.

Syntax: average_surfiles < prefix > < input *.SUR files >

Example: Assume that we have two sets of 10 slices that we would like to average. Let these files be called a1.SUR ... a10.SUR and b1.SUR ... b10.SUR. The following command

$ average_surfiles someprefix a1.SUR ... a10.SUR b1.SUR ... b1.SUR
creates the files someprefix0001.SUR someprefix0002.sur ... someprefix0010.SUR, where, for example, someprefix0005.SUR is the average of a5.SUR and b5.SUR. The command syntax for averaging more than two sets of images is similar. The program determines the number of slices from the file header. The header information written in the resulting someprefix*.SUR files are exactly the same as the header information in the first set of slices, in this example, the a*.SUR files.