Description of the program: resample


This program resamples the data with a new sampling time, which can be given as a fraction of the original one via the flag -s. This is achieved by interpolating the data locally by a polynomial of an order given by the -p flag.
Remark 1: Of course, this program only makes sense for time continous systems.
Remark 2: We did not try to implement any kind of antialiasing in frequency space. Therefore the rescaling might produce some artefacts in the power spectrum.

Usage:

resample [Options]

Everything not being a valid option will be interpreted as a potential datafile name. Given no datafile at all, means read stdin. Also - means stdin

Possible options are:

Option Description Default
-l# number of data to use whole file
-x# number of lines to be ignored 0
-c# column to be read 1
-s# new sampling time in units of the original one 0.5
-p# order of the polynomial for the interpolation 4
-o# output file name without file name: 'datafile'.rs
(or stdin.rs if stdin was used)
if no -o is given stdout is used
-V# verbosity level
  0: only panic messages
  1: add input/output messages
1
-h show these options none


Description of the Output:

Just one column: The resampled time series.
View the C-sources
Table of Contents * TISEAN home