1 |
edhill |
1.1 |
|
2 |
|
|
Averaging MITgcm output: |
3 |
|
|
|
4 |
|
|
The program and scripts here are a few quick hacks that efficiently |
5 |
|
|
average binary files as output by MITgcm. The following assumptions |
6 |
|
|
apply: |
7 |
|
|
|
8 |
|
|
- all files are SINGLE-precision IEEE-754 stored in BIG-endian byte |
9 |
|
|
order (which is the standard for MITgcm single-precision MDSIO |
10 |
|
|
output) |
11 |
|
|
|
12 |
|
|
- the machine itself is a LITTLE-endian architecture such as: |
13 |
|
|
|
14 |
|
|
- IA32 (Intel or AMD x86-compatible) |
15 |
|
|
- Linux on IA64 (eg. Altixes) |
16 |
|
|
|
17 |
|
|
|
18 |
|
|
The program syntax is: |
19 |
|
|
|
20 |
|
|
$ make average_fields |
21 |
|
|
$ ./average_fields field_1 field_3 ... field_n output_field |
22 |
|
|
|
23 |
|
|
|
24 |
|
|
The additional scripts demonstrate how to easily run N simultaneous |
25 |
|
|
copies of the average_fields program on an Altix system such as |
26 |
|
|
Columbia. |