sfadd (4.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
cant12/lpf
cant12/lpf
cant12/stk
cant12/stk
freeusp/land
marmousi2mp/modelproc
marmousi2mp/modelproc
nankai/data
nankai/data
nankai/shots
p-cable/ntg
p-cable/removeclick
seam-phase1-2d/compare
seam-phase1-2d/fetch
seam-phase1-2d/filter
seam-phase1-2d/ntg
seam-phase1-2d/sfawefd2d
seam-phase1-2d/sfawefd2d_split
seam-phase1-2d/sfmshots
seam-phase1-2d/sfmshots1
seam-phase1-2d/sfshot1
seam-phase1-2d/vscan
sigsbee/pwemig
teapotdome/canoren
teapotdome/cmp_stack_tahstack
teapotdome/fetch
teapotdome/interp-model
teapotdome/nmostack
teapotdome/tahnmostack
teapotdome/tahsubset
teapotdome/teamodel

 
DIRACK
        examples/modelAndStack
examples/pefInterpolation
examples/vfsa-simple

 
EEG
        marchenko/example-cluster
marchenko/example

 
GALLERY
        constant/model
french/gazdag
french/model
french/oway
french/vc
gradient/model
marmousi/recurkir
sigsbee/oway
vofz/kirch
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/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
        apefsnsep/dune
apefsnsep/simplegroll
fspfint/cmp
fspfint/curve
fspfint/noise_curve
fspfint/noise_qdome
fspfint/qdome
fspfint/sean
fspfint/snr
fxyspfdenoi/qdome
gvdseisint/bei
gvdseisint/ocmodel
gvdseisint/vti
riesz/fieldata
riesz/sigmdenoi
spefdecon/rdata
spefdecon/simple
spefdecon/wedge
txsopf/curvedmodel
txsopf/model
txyapf/curve
txyapf/french
txyapf/real3d
txyapf/sigmoid
txyspfint/curve
txyspfint/field3
txyspfint/french
txyspfint/jp
vdseislet/demultiple
vdseislet/demultiple
vdseislet/haskell
vdseislet/haskell
vdseislet/usp

 
M8R
        data/freeusp
parallel/omp

 
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
school2020/seismic
scons/rsf
su/rsflab16
su/rsftaup
su/rsfwellrf
tutorial2017/radon
tutorial2017/synth
tutorials/colormaps
tutorials/cs
tutorials/images
tutorials/interp
tutorials/lineaments
tutorials/lineaments
tutorials/lineaments
tutorials/petro1
tutorials/petro1
tutorials/petro2
tutorials/petro2
tutorials/rockphysic
tutorials/rockphysic
tutorials/smoothing
tutorials/spitz
tutorials/sthelens
tutorials/timefreq
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
anisodiff/barrolka
anisodiff/pcable
anisodiff/simple
anisodiff/simple3d
apefint/misscurv
apefint/missing
apefint/sean
apwd/crnfld
apwd/trace
asa/dipping
asa/sigsep
asa/simple
asa/simpleemd
asa/tracesep
atten/karman1
atten/karmand
atten/spectra
attr/vecta
avo/avo
avo/avo2
avo/stat
butterfly/synth2D-1-timer
crs/dome2
cs/sean
cs/sean
cs/synth
cs/synth
dbortho/hyper
dealiase/field
dealiase/field
dealiase/linear
dealiase/linear
dealiase/synth
dealiase/synth
dealiase/synth30Hz
dealiase/synth30Hz
dealiase2/bei
dealiase2/bei
dealiase2/hyper
dealiase2/hyper
dealiase2/hypern
dealiase2/hypern
deblend/fairfield-initmfnew
deblend/linear
deblend/synthcomplex
deblend/synthhyper
decomp/frenchtri
decomp/homoortho
decomp/homotri
demulemd/haskell
demulemd/mobil
demulemd/syn
diffr/chan3d
diffr/fault
diffr/fault
diffr/gom
diffr/gom
dipseis/complex
dipseis/field
dipseis/hyper
dlchan/label
dlchan/testing
dlchan/thin
dmssa/field
dmssa/synth3
drr5d/synth
dsd/conflict
dsd/conflict
dsd/demo
dsd/demo
dsd/demo2
dsd/demo3.1perc
dsd/field1
dsd/field2
dsd/real
dsd/sig
dsrtomo/marm
dtwaniso/synthetic-gather
eikods/check
eikods/marm
elas/french-dc
emdpf/dipfilter
emdpf/fxdecon
emdpf/hyper
emdpf/linear
emdpf/southsea
enhemd/postack
enhemd/prestack
enhemd/sigmoid
eseis/demo2
eseis/demo4
eseis/field
eseis/sparse
ffd/cos
flat/comaz
flat/comaz
flat/flat
flat/flatelf
fraclapl/diffq
fraclapl/marmq
fraclapl/twolayer
fwiseislet/blend
fwiseislet/encoding-spar
fwiseislet/encoding
fwiseislet/noise-spar
fwiseislet/noise
fwiseislet/timedomain
fwiseislet/wavelet
group3/bptti
group3/tiltorthocompare
halfthr/hyper
halfthr/hyper
halfthr/linear
halfthr/linear
halfthr/sean
halfthr/sean
intshape/fsyn
intshape/fsyn
intshape/sean
intshape/sean
lfd/oned
lowrank/bptti
lowrank/fio
lowrank/fio
lpf/lpf
lpf/plut
lpf/ray
lpf/regr
lpf/simon
ltft/groll
ltft/vecta
medianfilter/dragon
merge/apache
merge/apache
merge/pcable
merge/pcable2
nar/chirp
nar/hou
nar/mirko
nar/trace
nar/vecta
nmo3/azimuthtest
nmo3/mcelroy
nmodeblend/bei
nmodeblend/class
nmodeblend/simple
nmodeblend/synth
nmodeblend/timespace
npm/hou
npm/mirko
npm/trace
npm/vecta-nar
oc3/bei
oc3/fault
oc3/french
oc3/frenchint
onestep/fio1d
onestep/fio1d
onestep/tiltorth
optapert/gibson
optapert/rightSigsbee
optapert/sigsbee
optapert/theo
opwd/pick
ortho/orthocomplex
ortho/orthocsimul
ortho/orthocsimul
ortho/orthofair
ortho/orthonine
ortho/orthorna
orthogroll/field
orthorhombic/tiltn
ovc/nankai
ovc/nankai
ovc/psovc
ovc/psovc
ovc/toy
ovc/toy
pcastack/synth
phase/boon
phase/boon
phase/boon3
phase/boon3
phase/nonstat
phase/signal
phase/signal
phase/zero
phase/zero
pi/barrolka
pi/bei
pi/bei
pi/simple-model
probdif/nankai
probdif/nankai
probdif/noisy-synthetic
probdif/noisy-synthetic
probdif/synthetic
probdif/synthetic
probdif/toy
probdif/toy
pwshape/parihaka
pwshape/qdome
pwshape/qdome
pwshape/qdome3
pwshape/qdome3
reversible/nscnmo
scan3/realdata
seislet/diplet
sgk/synth
sglowrank/avo
sglowrank/mms1d-all-vv
sglowrank/mms1d-dt-vv
sglowrank/mms1d-dx-vv
sglowrank/mms1d-fre
sglowrank/oned
shape/beivc
shape/beivc
shape/smoo
shemd/field
shemd/hyperoil
shemd/nonstat
shemd/synth1
sobel/pari
sparse/sparse-experim-shaping
sparse/vg
sparse/vg
specrecom/gulf
specrecom/ricker
sswtapp/strata
sswtapp/strata
strat/sigmoid1
strat/spec-decom
strat/spec-decom
strat/three-d
strat/three-d
strfilter/bei
strfilter/hongliu
strfilter/spray
strsvd/complex
strsvd/fieldstrsvd
strsvd/hyper
svmf/bei
svmf/class
svmf/fairfield
svmf/test
svmf/testnoise
svmf/timespatial
svscan/bei
svscan/beicmps
svscan/field
svscan/simple
svscan/synth
synth/ordexample20hz
synth/ordexample20hz
synth/small-khuff
synwav/gch1
t2dweak/alaska
t2dweak/alaska
t2dweak/alaska
t2dweak/field
t2dweak/field
time2depth2/beinew
time2depth2/beinew
time2depth2/hs2grad
time2depth2/synth
time2depth2/vgrad
timefreq/chev
timefreq/chev
timefreq/syn
timelapse/duri
timelapse/long1
timelapse/timelapse
uncert/beivc
uncert/beivc
varipick/global-gom
varipick/horizon
varipick/newviking
varipick/newviking
vc3/threedim
welllogs/logs
wetm/beivel
wetm/beivel
wetm/nankaizone
wetm/nankaizone

 
TONGJI
        lrmode/bptti2007.comparison
lrmode/bptti2007

 
TRIP
        hpcss/test1
hpcss/test2
hpcss/test3
hpcss/test4
hpcss/test5
hug/marm1s_deep
hug/marm1s_shallow
struct/project
struct/project

 
UH
        avostack/synh
avostack/synl

 
UWA
        geo2013ElasticModellingGPU/hti3d

 
XJTU
        gpufwi/speedup
mcaseislet/interp
mcaseislet/interp
mcaseislet/sep2
modeling2fwi/fbrec2d
test/dlct
test/fpocs2d
test/fpocs3d
test/interpseislet
test/lsinterp2d
test/mwni2d
test/pocs5d

 
ZJU
        diffrlrra/fault
diffrlrra/fault
diffrlrra/nankai_new
diffrlrra/nankai_new
diffrlrra/synth
odrr3d/hyp3d
odrr3d/hyp3d_N20
odrr3d/syn3d
odrr3d/syn3d_N6
odrr3d/syn3d_hf
odrr5d/synth
odrr5d/synth2
optnoise/flat
optnoise/postack
optnoise/prestack
q/field
sosvmf/field
sosvmf/hyper
sosvmf/jy