Next: Trace Header Manipulation
Up: Data Format conversion
Previous: TRANSP - Transposing Binary
  Contents
It is often necessary to perform arithmetical operations on files,
or between two files of binary data. The program farith has
been provided for many of these tasks.
Some of the tasks for single files supported by farith include
- scaling value,
- polarity reversal,
- signum function,
- absolute value,
- exponential,
- logarithm,
- square root,
- square,
- inverse (punctuated),
- inverse of square (punctuated),
- inverse of square root (punctuated).
Binary operations (operations involving two files) include
value by value
- addition,
- subtraction,
- multiplication,
- division,
- cartesian product.
Seismic operations (which assume files consist of wavespeeds) include
- slowness perturbation (difference of inverses of files),
- sloth perturbation (difference of inverses of files),
Examples of using farith are
% farith in=data.binary op=pinv out=data.out.bin
% farith in=data1.binary in2=data2.binary op=add > data.out2.bin
John Stockwell
2007-04-10