Description
time shift out[t] = in[t+tau]
Synopsis
sgshift <stdin >stdout out.fill=zero tau=0.1 inv=false
Parameters
| Parameter | Type | Default | Description |
|---|---|---|---|
in |
ifile |
stdin
|
input file |
out |
ofile |
stdout
|
output file |
out.fill |
enum |
zero
|
fill value at the boundary |
tau |
field|float |
0.1
|
time shift in seconds, provided as a field or float |
inv |
bool |
false
|
inverse time shift |
Input and output
Input
input file
Output
output file
Examples
1. Apply a field-defined linear moveout shift
sgfieldmath lmo:f='offset/1500+1.0' <input.sg | \
sgshift tau=lmo >shifted.sgInput must contain scalar offset and sampled vectors. For offset in metres,
1500 is a velocity in metres per second and 1.0 is an added delay in seconds.
The forward convention is out[t] = in[t+tau]; boundary fill defaults to zero.
Check sampling units and shifted values before interpreting the output.