sfmath
(math.c 3352 2008-03-05 17:01:50Z ivlad)
index
filt/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),
conj (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
See also: sfheadermath.
Parameters
float
d#=(1,1,...)
sampling on #-th axis
string
label=
data label
string
label#=
label on #-th axis
int
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/ft2d
ft1/matrix
ft1/brad
ft1/autocor
vela/vscan
vela/strat
CWP
geo2006TimeShiftImagingCondition/flat
geo2006TimeShiftImagingCondition/zicig
geo2006TimeShiftImagingCondition/icomp
geo2007StereographicImagingCondition/gaus1
geo2007StereographicImagingCondition/sigsbee2
geo2007StereographicImagingCondition/flat4
gpr2007RWEHighOrderKernels/diving
gpr2007RWEHighOrderKernels/marm
jse2006RWEImagingOverturningReflections/sigsbee
seg2006ConvertedWavesTSIC/cwtsic3
DATA
amoco/fdmod
bpait/fdmod
marmousi/fdmod
marmousi2/fdMod
pluto/fdmod
sigsbee/nfs2B
sigsbee/data2A
sigsbee/fdmod2A
sigsbee/fs2B
sigsbee/wemig
sigsbee/pwemig
sigsbee/ptest
GEE
ajt/galilee
hlx/helgal
iin/galilee
iin/chevron
iin/invint
lal/multiscale
lmn/sep77
lsq/antoine
mda/levint
mda/geostat
mda/misif
mda/pefex
noiz/burst
noiz/mad
noiz/rbst
noiz/antoine
pch/tvdecon
prc/sep94
prc/seab
GEO384W
hw1/simple
hw2/eikonal
hw3/image
hw3/blake
hw4/times
hw4/waves
hw5/sigsbee
hw5/hyper
hw6/blake
GEOSTATS
atten/random
atten/pdepth
atten/qcurve
atten/vvdata
atten/karman
atten/karman1
atten/karman2
atten/karmand
simulate/rfield
simulate/simple
spatial_stats/gr_variogram
spatial_stats/variogram
spatial_stats/covariance
spatial_stats/correlogram
JSG
attr/vecta
attr/attr
diffr/chan3d
diffr/gom
diffr/fault
group/ell
pmig/nmo
pmig/mig
pwc/cmp
shape/int1
shape/smoo
RSF
rsf/sfmath
rsf/format
rsf/radial
rsf/sfdots
rsf/sfwiggle
rsf/fractal
rsf/sfgraph
scons/rsfpy
scons/rsf
SEP
angle/agmig
burg/tension
burg/gtens
fmeiko/tri
fmsec/cvel
forwd/chirp
forwd/chirp2
huygens/gauss
huygens/marmousi
oc2/cup
plane/cube
precon/oned
precon/seab
precon/cube
pwd/hector
pwd/blast
pwd/seab
pwd/dune
rwe/simp1
seaofgal/gal
stack/miginv
stoltst/elfst
stoltst/imps
vc2/elfvc
vc2/beivc
velspec/sigvc
SLIM
slimUserManual/sfsort
slimUserManual/sfthr