sfadd (3.0)
index
system/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

 
CUP
        rna2d/shot

 
CWP
        geo2007StereographicImagingCondition/flat4
geo2007StereographicImagingCondition/gaus1
geo2007StereographicImagingCondition/sigsbee2
geo2008InterferometricImagingCondition/circle
geo2008InterferometricImagingCondition/sact1
geo2008InterferometricImagingCondition/sigs2
geo2008IsotropicAngleDomainElasticRTM/marm2allA
geo2008IsotropicAngleDomainElasticRTM/marm2oneA
geo2009TTIModeSeparation/fold
geo2009TTIModeSeparation/marmousi2
geo2009TTIModeSeparation/operator
geo2009VTIModeSeparation/aniopsize
geo2009VTIModeSeparation/oporder
geo2009VTIModeSeparation/separate2
geo2009VTIModeSeparation/separate3
geo2009VTIModeSeparation/separate5
geo2009VTIModeSeparation/sigsbee
geo2011WideAzimuthAngleDecomposition/flatEICangle
jse2006RWEImagingOverturningReflections/sigsbee
pept2011MicroearthquakeMonitoring/saf1
pept2011MicroearthquakeMonitoring/saf2
pept2011MicroearthquakeMonitoring/saf3

 
DATA
        alaska/line31-81-m8r
freeusp/land
marmousi2mp/modelproc
marmousi2mp/modelproc
nankai/data
nankai/data
nankai/shots
seam-phase1-2d/fetch
seam-phase1-2d/sfmshots
sigsbee/pwemig
teapotdome/fetch
teapotdome/tahnmostack
teapotdome/tahsubset

 
EEG
        marchenko/example

 
GALLERY
        constant/model
french/gazdag
french/model
french/oway
french/vc
gradient/model
sigsbee/oway
vofz/kirch
vofz/model
vofz/vc

 
GEE
        hlx/futterman
hlx/helicon
iin/chevron
lsq/lomask
lsq/lomask
mda/elita
mda/geostat
mda/mad
mda/misif
mda/morgan
pch/signoi
pch/tvdecon

 
GEO384H
        hw2/helix
hw2/helix
hw2/helix
hw2/running
hw3/compress
hw3/compress
hw3/pocs
hw3/pocs
hw3/rotate
hw4/invint
hw4/match
hw5/pattern

 
GEO384S
        hw0/channel2
hw0/local
hw2/groundroll
hw2/groundroll
hw2/land3d
hw2/migration
hw3/dmo
hw3/nmo
hw3/nmo3d
hw4/alaska
hw4/alaska
hw4/teapot
hw4/viking
hw4/viking
hw5/hradon
hw5/pradon
hw5/pradon
hw5/radon
hw5/radon
hw6/rtm

 
GEO384W
        hw1/wave
hw2/cmp
hw3/synth
hw4/sigsbee
hw4/synth
hw4/synth
hw5/hyper

 
GEOSTATS
        simulate/rfield
simulate/simple
spatial_stats/correlogram
spatial_stats/covariance
spatial_stats/gr_variogram
spatial_stats/variogram

 
GPGN658
        fdmod/exercise
rtmig/exercise

 
HANSUNG
        cgg/syn

 
JLU
        gvdseisint/bei
gvdseisint/ocmodel
gvdseisint/vti
riesz/fieldata
riesz/sigmdenoi
txsopf/curvedmodel
txsopf/model
txyapf/curve
txyapf/french
txyapf/real3d
txyapf/sigmoid
vdseislet/demultiple
vdseislet/demultiple
vdseislet/haskell
vdseislet/haskell
vdseislet/usp

 
MILANO
        taupvel/synth
taupvel/synth

 
PSU
        ligo/test

 
RSF
        challenge/rain
challenge/rain
reprobook/exam3
rsf/fractal
rsf/plot
rsf/unif3
school/complex
school/data
school/horizon
school/modeling
school/single
school/tapprox
school2009/channel2
school2009/local
school2012/demo
school2015/adapt
school2015/born
school2015/channel2
school2015/local
school2016/radon
school2016/synth
school2017/seismic
scons/rsf
su/rsflab16
su/rsftaup
su/rsfwellrf
tutorial2017/radon
tutorial2017/synth
tutorials/colormaps
tutorials/cs
tutorials/images
tutorials/petro1
tutorials/petro1
tutorials/smoothing
tutorials/spitz
tutorials/sthelens
tutorials/tuning
tutorials/tuning
tutorials/well-tie
tutorials/well-tie
tutorials/yilmaz1

 
SEP
        antial/imp
avo/imp
balance/ampl
balance/ampl
bspl/chirp
bspl/chirp2
bspl/plane3
bspl/radial
burg/gtens
burg/laplac
cdstep/veltran
fat/migration
findif/laplace
fkamo/impresp
fmeiko/fmarch
fmeiko/tri
fmsec/cvel
forwd/chirp
forwd/chirp2
forwd/radial
fractal/random
geostat/dix
geostat/miss
geostat/miss
helft/spike
helmholtz/lapfac
huygens/gauss
huygens/marmousi
lineiko/test
oc2/cup
oc2/elfshot
oc2/ocimp
passive/synth
pefmult/haskell
pefmult/mobil
pefmult/syn
precon/cube
precon/hlx
pwd/dune
pwd/hector
pwd/sean
pwd/signoi
pyramid/model
pyramid/pyramid
rwe/simp1
sparse2/test
sparse2/test
spitz/sign
stack/miginv
stack/velinv
steer/qdome
steer/shot
steer/wz25
super/tau
super/tau
texture/fft
vc2/beivc
vc2/beivc
vc2/elfvc
vc2/sigvc
vc2/spec
velspec/sigvc

 
SWAG
        itime/oz2
itime/oz6
itime/syn
tau/hess
tau/iso
tau/lens
tau/marm

 
TCCS
        acrossfault/synth
aii/heidrun
aii/heidrun
apefint/misscurv
apefint/missing
apefint/sean
atten/karman1
atten/karmand
atten/spectra
attr/vecta
avo/avo
avo/avo2
avo/stat
butterfly/synth2D-1-timer
crs/dome2
dbortho/hyper
deblend/fairfield-initmfnew
deblend/linear
deblend/synthcomplex
deblend/synthhyper
decomp/frenchtri
decomp/homoortho
decomp/homotri
diffr/chan3d
diffr/fault
diffr/fault
diffr/gom
diffr/gom
dsd/conflict
dsd/conflict
dsd/demo
dsd/demo
dsd/demo2
dsd/demo3.1perc
dsd/field1
dsd/field2
dsd/real
dsd/sig
dsrtomo/marm
eikods/check
eikods/marm
elas/french-dc
emdpf/dipfilter
emdpf/fxdecon
emdpf/hyper
emdpf/linear
emdpf/southsea
eseis/demo2
eseis/demo4
eseis/field
eseis/sparse
ffd/cos
flat/comaz
flat/comaz
flat/flat
flat/flatelf
fraclapl/diffq