Averaging MITgcm output: The program and scripts here are a few quick hacks that efficiently average binary files as output by MITgcm. The following assumptions apply: - all files are SINGLE-precision IEEE-754 stored in BIG-endian byte order (which is the standard for MITgcm single-precision MDSIO output) - the machine running the "average_fields" program is a LITTLE-endian architecture such as: - IA32 (Intel or AMD x86-compatible) - Linux on IA64 (eg. Altixes) The program syntax is: $ make average_fields $ ./average_fields field_1 field_3 ... field_n output_field Two additional scripts ("do_the_averages" and "job_ave") demonstrate how to easily run N simultaneous average_fields programs within either interative (the former) or queue-driven (the latter) environments. NOTE: Outputs from this program can differ slightly from machine to machine due to rounding errors. The intermediate sums are computed internally at double precision and converted to single precision immediately before being written. Both IA32 and IA64 machines have been compared and the differences (when there are any!) all appear to be acceptable within the slightly different rounding inherent with these two architectures.