SIGCLEAR Program reference

sgshift

apply time shift on vector fields

Package: sigclear-dsp · Version: 1.2.0-2 Download JSON

Description

time shift out[t] = in[t+tau]

Synopsis

sgshift <stdin >stdout out.fill=zero tau=0.1 inv=false

Parameters

sgshift parameters
ParameterTypeDefaultDescription
in ifile stdin input file
out ofile stdout output file
out.fill enum zero fill value at the boundary
Allowed: zero nearest
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.sg

Input 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.