Description of the program: sav_gol


This program performes a Savitzky-Golay filter to either clean the data from high frequency noise or to get a better estimate of the Dth derivative. It it possible to run it on multivariate data.

Usage:

sav_gol [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# columns to be read 1
-m# no. of components to be read (dimension) 1
-n#,# length of the averaging window back in time,
length of the averaging window forward in time
2,2
-p# order of the fitted polynomial 2
-D# order of the derivative to be estimated 0 (just filter)
-o# output file name
without file name: 'datafile'.sg
(or stdin.sg if stdin was read)
If no -o option 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:

The output file contains l lines, each of which has m columns. It is the filtered data. The first length of the averaging window back in time and the last length of the averaging window forward in time lines are special. They contain the raw data in case that D was set to 0 and zeroes in case D was larger than zero.
View the C-sources.
Table of Contents * TISEAN home