sfmath
(math.c 5359 2010-02-13 23:50:30Z 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
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/matrix
ft1/brad
ft1/ft2d
ft1/autocor
vela/vscan
vela/strat
CWP
geo2006TimeShiftImagingCondition/zicig
geo2006TimeShiftImagingCondition/icomp
geo2007StereographicImagingCondition/sigsbee2
geo2007StereographicImagingCondition/gaus1
geo2007StereographicImagingCondition/flat4
geo2008InterferometricImagingCondition/sact1
geo2008InterferometricImagingCondition/circle
geo2008NumericWEMVAoperators/saltWEMVA
geo2008NumericWEMVAoperators/flatWEMVA
jse2006RWEImagingOverturningReflections/sigsbee
DATA
amoco/fdmod
marmousi/fdmod
pluto/fdmod
segsalt/data
sigsbee/nfs2B
sigsbee/fs2B
sigsbee/fdmod2A
sigsbee/ptest
sigsbee/data2A
GEE
ajt/galilee
hlx/helgal
iin/invint
iin/galilee
iin/chevron
lal/multiscale
lmn/sep77
lsq/antoine
mda/misif
mda/geostat
mda/pefex
mda/levint
noiz/antoine
noiz/burst
noiz/rbst
noiz/mad
pch/tvdecon
prc/sep94
prc/seab
GEO384W
hw1/wave
hw2/eikonal
hw2/raytracing
hw3/cmp
hw4/dome
hw5/sigsbee
hw5/hyper
hw6/blake
GEO391
hw2/fourier
hw3/rotate
hw3/pocs
hw4/dunes
hw6/pattern
hw6/seab
hw6/rain
GEOSTATS
simulate/rfield
simulate/simple
spatial_stats/gr_variogram
spatial_stats/covariance
spatial_stats/correlogram
spatial_stats/variogram
GPGN658
fdmod/exercise
rtmig/exercise
JSG
atten/pdepth
atten/karman1
atten/karmand
atten/qcurve
atten/spectra
atten/enerd
attr/vecta
attr/attr
avo/stat
avo/avo
diffr/gom
diffr/fault
group/ell
lpf/regr
lpf/lpf
medianfilter/window
nmo3/mcelroy
nmo3/azimuthtest
pmig/mig
pmig/nmo
shape/smoo
shape/int1
simistack/simple
simistack/bei
simistack/flat4
strfilter/spray
strfilter/hongliu
strfilter/bei
time2depth/masha2
timelapse/duri
timelapse/long1
timelapse/timelapse
RSF
rsf/format
rsf/unif3
rsf/sfdots
rsf/sfmath
rsf/radial
rsf/fractal
rsf/sfwiggle
rsf/sfawefd
rsf/sfgraph
school/single
school/local
school/sigsbee
school/complex
school/channel2
scons/rsf
scons/rsfpy
su/rsfscales
usp/data
SEP
angle/agmig
bspl/sei3d
bspl/chirp2
bspl/bintest
bspl/chirp
burg/gtens
burg/tension
fmeiko/tri
fmsec/cvel
forwd/chirp2
forwd/chirp
helmholtz/wavemovie
huygens/marmousi
huygens/gauss
lineiko/test
oc2/cup
plane/cube
precon/cube
precon/seab
precon/oned
pwd/blast
pwd/seab
pwd/hector
pwd/dune
rwe/simp1
seaofgal/gal
stack/miginv
steer/shot
steer/wz25
stoltst/imps
stoltst/elfst
vc2/beivc
velspec/sigvc
SLIM
geo2008NewInsightsPareto/pareto
slimUserManual/sfsort
slimUserManual/sfthr
TRIP
hpcss/test3
hpcss/test5
hpcss/test1
hpcss/test2
hpcss/test4