Next: Trace Header Manipulation
Up: Data Format conversion
Previous: TRANSP - Transposing Binary
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
Binary operations (operations involving two files) include
value by value
- scaling value,
- polarity reversal,
- signum function,
- absolute value,
- square root,
- inverse (punctuated),
- inverse of square (punctuated),
- inverse of square root (punctuated).
Seismic operations (which assume files consist of wavespeeds) include
- cartesian product.
Examples of using farith are
- slowness perturbation (difference of inverses of files),
- sloth perturbation (difference of inverses of files),
% farith in=data.binary op=pinv out=data.out.bin
% farith in=data1.binary in2=data2.binary op=add > data.out2.bin