sfadd
index
filt/main/add.c
Documentation
Add, multiply, or divide RSF datasets.

 
Synopsis
        sfadd > out.rsf scale= add= sqrt= abs= log= exp= mode= [< file0.rsf] file1.rsf file2.rsf ...
The various operations, if selected, occur in the following order:

(1) Take absolute value, abs=
(2) Add a scalar, add=
(3) Take the natural logarithm, log=
(4) Take the square root, sqrt=
(5) Multiply by a scalar, scale=
(6) Compute the base-e exponential, exp=
(7) Add, multiply, or divide the data sets, mode=

sfadd operates on integer, float, or complex data, but all the input
and output files must be of the same data type.

An alternative to sfadd is sfmath, which is more versatile, but may be
less efficient.

 
Parameters
       
 
bools abs=
If true take absolute value [nin]
 
floats add=
Scalar values to add to each dataset [nin]
 
bools exp=
If true compute exponential [nin]
 
bools log=
If true take logarithm [nin]
 
string mode=
'a' means add (default),
'p' or 'm' means multiply,
'd' means divide

 
floats scale=
Scalar values to multiply each dataset with [nin]
 
bools sqrt=
If true take square root [nin]

 
Used In
       

 
BEI
        sg/toldi

 
CWP
        geo2007StereographicImagingCondition/gaus1
geo2007StereographicImagingCondition/sigsbee2
geo2007StereographicImagingCondition/flat4
gpr2007RWEHighOrderKernels/diving
jse2006RWEImagingOverturningReflections/sigsbee

 
GEE
        hlx/helicon
iin/chevron
mda/morgan
mda/geostat
mda/misif
noiz/mad
pch/tvdecon
pch/signoi

 
GEO384W
        hw1/simple
hw4/times
hw5/hyper

 
GEOSTATS
        atten/karman
atten/karman1
atten/karman2
atten/karmand
simulate/rfield
simulate/simple
spatial_stats/gr_variogram
spatial_stats/variogram
spatial_stats/covariance
spatial_stats/correlogram

 
JSG
        attr/vecta
diffr/chan3d
diffr/gom
diffr/fault
pwc/cmp
pwc/beic
shape/smoo
shape/beivc

 
RSF
        rsf/fractal
scons/rsf

 
SEP
        antial/imp
burg/gtens
burg/laplac
cdstep/veltran
findif/laplace
fkamo/impresp
fmeiko/fmarch
fmeiko/tri
fmsec/cvel
forwd/chirp
forwd/chirp2
forwd/radial
huygens/gauss
huygens/marmousi
oc2/elfshot
oc2/cup
oc2/ocimp
precon/hlx
precon/cube
pwd/hector
pwd/sean
pwd/signoi
pwd/dune
rwe/simp1
spitz/sign
stack/velinv
stack/miginv
vc2/elfvc
vc2/beivc
velspec/sigvc