sfmath
(1.5-svn math.c 7791 2011-10-29 13:22:26Z sfomel)
index
system/main/math.c
Documentation
Mathematical operations on data files.
Synopsis
sfmath > out.rsf n#= d#=(1,1,...) o#=(0,0,...) label#= unit#= type= label= unit= output=
Known functions:
cos, sin, tan, acos, asin, atan,
cosh, sinh, tanh, acosh, asinh, atanh,
exp, log, sqrt, abs,
erf, erfc (for float data),
arg, conj, real, imag (for complex data).
sfmath will work on float or complex data, but all the input and output
files must be of the same data type.
An alternative to sfmath is sfadd, which may be more efficient, but is
less versatile.
Examples:
sfmath x=file1.rsf y=file2.rsf power=file3.rsf output='sin((x+2*y)^power)' > out.rsf
sfmath < file1.rsf tau=file2.rsf output='exp(tau*input)' > out.rsf
sfmath n1=100 type=complex output="exp(I*x1)" > out.rsf
Arguments which are not treated as variables in mathematical expressions:
datapath=, type=, out=
See also: sfheadermath.
Parameters
float
d#=(1,1,...)
sampling on #-th axis
string
label=
data label
string
label#=
label on #-th axis
largeint
n#=
size of #-th axis
float
o#=(0,0,...)
origin on #-th axis
string
output=
Mathematical description of the output
string
type=
output data type [float,complex]
string
unit=
data unit
string
unit#=
unit on #-th axis
Used In
BEI
dpmv/matt
dwnc/sigmoid
ft1/autocor
ft1/brad
ft1/ft2d
ft1/matrix
trimo/all
vela/strat
vela/vscan
CHEN
test/fpca
test/wavmod
test/xtime
CWP
geo2006TimeShiftImagingCondition/flat
geo2006TimeShiftImagingCondition/icomp
geo2006TimeShiftImagingCondition/zicig
geo2007StereographicImagingCondition/flat4
geo2007StereographicImagingCondition/gaus1
geo2007StereographicImagingCondition/sigsbee2
geo2008InterferometricImagingCondition/circle
geo2008InterferometricImagingCondition/sact1
geo2008IsotropicAngleDomainElasticRTM/marm2allA
geo2008IsotropicAngleDomainElasticRTM/marm2oneA
geo2008NumericWEMVAoperators/flatWEMVA
geo2008NumericWEMVAoperators/saltWEMVA
geo2009TTIModeSeparation/fold
geo2009TTIModeSeparation/marmousi2
geo2009TTIModeSeparation/operator
geo2009TTIModeSeparation/tti3
geo2009TTIModeSeparation/vti3
geo2009VTIModeSeparation/aniopsize
geo2009VTIModeSeparation/oporder
geo2009VTIModeSeparation/separate2
geo2009VTIModeSeparation/separate3
geo2009VTIModeSeparation/separate5
geo2009VTIModeSeparation/sigsbee
geo2011WideAzimuthAngleDecomposition/flatEICangle
geo2011WideAzimuthAngleDecomposition/seam357
jse2006RWEImagingOverturningReflections/sigsbee
pept2011MicroearthquakeMonitoring/saf1
pept2011MicroearthquakeMonitoring/saf2
pept2011MicroearthquakeMonitoring/saf3
DATA
amoco/fdmod
marmousi/fdmod
marmousi2/fdMod
nankai/shots
pluto/fdmod
segsalt/data
sigsbee/data2A
sigsbee/fdmod2A
sigsbee/fs2B
sigsbee/nfs2B
sigsbee/ptest
sigsbee/pwemig
sigsbee/wemig
GEE
ajt/galilee
hlx/helgal
iin/chevron
iin/galilee
iin/invint
lal/multiscale
lmn/sep77
lsq/antoine
lsq/lomask
lsq/puck
lsq/vesuvio
mda/geostat
mda/levint
mda/misif
mda/pefex
noiz/antoine
noiz/burst
noiz/mad
noiz/rbst
noiz/softclip
pch/tvdecon
prc/seab
prc/sep94
GEO384W
hw1/wave
hw2/cmp
hw3/synth
hw4/sigsbee
hw4/synth
hw5/hyper
hw5/hyper2
hw5/sigsbee
hw6/blake
GEO391
hw2/sorting
hw3/fourier
hw3/pocs
hw4/rain
hw4/rotate
hw5/seabeam
hw6/dunes
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/alias
apefint/misscurv
apefint/missing
apefint/ray
apefint/sean
atten/enerd
atten/karman1
atten/karmand
atten/pdepth
atten/qcurve
atten/spectra
attr/attr
attr/vecta
avo/avo
avo/stat
crs/dome2
diffr/chan3d
diffr/fault
diffr/gom
ffd/anisotropic
ffd/bptti
ffd/cos
ffd/ffd
flat/comaz
flat/flat
flat/flatelf
fpwd/const
fpwd/sigmoid
fpwd/teapot
group/ell
hyper/amarm
lfd/aniso
lfd/bptti
lfd/dispersion1
lfd/oned
lfd/twod
lowrank/aniso
lowrank/bptti
lowrank/fio
lowrank/impres
lowrank/threed
lpf/lpf
lpf/regr
ltft/groll
ltft/timefreq
ltft/vecta
medianfilter/window
nmo3/azimuthtest
nmo3/mcelroy
oc3/bei
oc3/fault
oc3/french
oc3/frenchint
pmig/mig
pmig/nmo
reversible/delta
reversible/nscnmo
seislet/diplet
seislet/lena
seislet/plane
seislet/seis
seislet/sin2
shape/int1
shape/smoo
simistack/bei
simistack/flat4
simistack/simple
stackadcig/flat
stackadcig/sigsbee
stackadcig/simple
strfilter/bei
strfilter/hongliu
strfilter/spray
time2depth/masha2
timefreq/chev
timefreq/lowf
timefreq/syn
timelapse/duri
timelapse/long1
timelapse/timelapse
vc3/fracs
vc3/threedim
MILANO
taupvel/cmp
taupvel/synth
RSF
bash/mpi
bash/plot
bash/sample1
bash/sample2
reprobook/exam2
reprobook/exam3
reprobook/exam4
reprobook/exam5
rsf/format
rsf/fractal
rsf/plot
rsf/radial
rsf/sfawefd
rsf/sfderiv
rsf/sfdots
rsf/sfenvelope
rsf/sfgraph
rsf/sfmath
rsf/sfnoise
rsf/sfwiggle
rsf/unif3
rsf/wedge
school/clip_test
school/complex
school/marm
school/ray
school/sigsbee
school/single
school/tapprox
school2009/channel2
school2009/local
school2012/plot
school2012/sample1
school2012/sample2
scons/rsf
scons/rsfpy
su/rsflab10
su/rsflab15
su/rsflab16
su/rsflab5
su/rsflab8
su/rsfscales
usp/data
SEP
angle/agmig
bspl/bintest
bspl/chirp
bspl/chirp2
bspl/sei3d
burg/gtens
burg/tension
fat/migration
fmeiko/tri
fmsec/cvel
forwd/chirp
forwd/chirp2
fractal/random
helft/mult
helft/spike
helmholtz/wavemovie
huygens/gauss
huygens/marmousi
lineiko/test
oc2/cup
plane/cube
precon/cube
precon/oned
precon/seab
pwd/blast
pwd/dune
pwd/hector
pwd/seab
pyramid/model
pyramid/pyramid
rwe/simp1
seaofgal/gal
stack/miginv
steer/shot
steer/wz25
stoltst/elfst
stoltst/imps
texture/fft
vc2/beivc
vc2/elfvc
vc2/sigvc
vc2/spec
velspec/sigvc
waverays/gauss
SLIM
geo2008NewInsightsPareto/pareto
slimUserManual/sfsort
slimUserManual/sfthr
SWAG
anisogath/synth
eikds/marm2
eikds/smvel
itime/oz2
itime/oz6
itime/syn
tau/arte
tau/hess
tau/lens
tau/linear
tau/marm
tau/vertical
waveds/fdmod
waveds/fdmodnoSS
waveds/svmod
TRIP
hpcss/test1
hpcss/test2
hpcss/test3
hpcss/test4
hpcss/test5
iwave/data
TUTORIAL
authors/data