sfadd (2.0-git)
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
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
hw4/invint
hw4/rotate
hw5/match
hw5/pattern

 
GEO384S
        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
        riesz/fieldata
riesz/sigmdenoi
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
scons/rsf
su/rsflab16
su/rsftaup
su/rsfwellrf
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

 
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
        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
emdpf/dipfilter
emdpf/fxdecon
emdpf/hyper
emdpf/linear
emdpf/southsea
ffd/cos
flat/comaz
flat/comaz
flat/flat
flat/flatelf
fraclapl/diffq
fraclapl/twolayer
group3/bptti
group3/tiltorthocompare
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
nar/chirp
nar/hou
nar/mirko
nar/trace
nar/vecta
nmo3/azimuthtest
nmo3/mcelroy
nmodeblend/bei
nmodeblend/class
nmodeblend/simple
nmodeblend/synth
nmodeblend/timespace
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
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
reversible/nscnmo
scan3/realdata
seislet/diplet
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
specrecom/gulf
specrecom/ricker
strat/sigmoid1
strat/spec-decom
strat/spec-decom
strat/three-d
strat/three-d
strfilter/bei
strfilter/hongliu
strfilter/spray
svmf/bei
svmf/class
svmf/fairfield
svmf/test
svmf/testnoise
svmf/timespatial
synth/ordexample20hz
synth/ordexample20hz
synth/small-khuff
synwav/gch1
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
vc3/threedim

 
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