sfadd (1.5-svn)
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

 
CWP
        geo2007StereographicImagingCondition/flat4
geo2007StereographicImagingCondition/gaus1
geo2007StereographicImagingCondition/sigsbee2
geo2008InterferometricImagingCondition/circle
geo2008InterferometricImagingCondition/sact1
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
        nankai/shots
sigsbee/pwemig

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

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

 
GEO391
        hw2/running
hw3/fourier
hw3/fourier
hw3/pocs
hw3/pocs
hw4/rain
hw4/rotate
hw6/dunes
hw6/match

 
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

 
JSG
        apefint/misscurv
apefint/missing
apefint/sean
atten/karman1
atten/karmand
atten/spectra
attr/vecta
avo/avo
avo/avo2
avo/stat
crs/dome2
diffr/chan3d
diffr/fault
diffr/fault
diffr/gom
ffd/cos
ffd/ffd
flat/comaz
flat/comaz
flat/flat
flat/flatelf
lfd/oned
lowrank/bptti
lowrank/fio
lowrank/fio
lpf/lpf
lpf/plut
lpf/ray
lpf/regr
lpf/simon
ltft/groll
ltft/vecta
medianfilter/dragon
nmo3/azimuthtest
nmo3/mcelroy
oc3/bei
oc3/fault
oc3/french
oc3/frenchint
reversible/nscnmo
seislet/diplet
shape/beivc
shape/beivc
shape/smoo
strfilter/bei
strfilter/hongliu
strfilter/spray
timefreq/chev
timefreq/chev
timefreq/syn
timelapse/duri
timelapse/long1
timelapse/timelapse
vc3/threedim

 
MILANO
        taupvel/synth
taupvel/synth

 
RSF
        reprobook/exam3
rsf/fractal
rsf/plot
rsf/unif3
school/complex
school/single
school/tapprox
school2009/channel2
school2009/local
school2012/demo
scons/rsf
su/rsflab16
usp/data

 
SEP
        antial/imp
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
helft/spike
helmholtz/lapfac
huygens/gauss
huygens/marmousi
lineiko/test
oc2/cup
oc2/elfshot
oc2/ocimp
precon/cube
precon/hlx
pwd/dune
pwd/hector
pwd/sean
pwd/signoi
pyramid/model
pyramid/pyramid
rwe/simp1
spitz/sign
stack/miginv
stack/velinv
steer/qdome
steer/shot
steer/wz25
texture/fft
vc2/beivc
vc2/beivc
vc2/elfvc
vc2/sigvc
vc2/spec
velspec/sigvc

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

 
TRIP
        hpcss/test1
hpcss/test2
hpcss/test3
hpcss/test4
hpcss/test5