SIGCLEAR Program reference

sgresamp

resample the data

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

Description

Interpolate input vectors at the requested output sample coordinates. Set the
output start, interval, and extent; an optional mapping vector can supply
nonuniform source coordinates. Samples outside valid input support follow the
program's configured boundary and mask behavior.

Synopsis

sgresamp <stdin >stdout mask=copy interp=linear map=NULL map.inorder=true old.ns=NULL old.s0=NULL old.ds=NULL s0=0.0 ds=0.004 tmax=TMAX

Parameters

sgresamp parameters
ParameterTypeDefaultDescription
in ifile stdin input data
out ofile stdout output data
mask enum copy out-of-range values: copy the nearest sample or use zero
Allowed: copy zero
interp enum linear interpolation method
Allowed: linear blocky
map vect NULL sample map for irregular case
map.inorder bool true whether the map vector is in increasing order
old.ns field NULL number of samples
old.s0 field NULL first sample, only for regular case (map=-1)
old.ds field NULL sample increment, only for regular case (map=-1)
s0 float 0 first sample
ds float 0.004 sample increment
tmax float TMAX last sample

Input and output

Input

input data

Output

output data