Learn R Programming

RSEIS (version 2.1-6)

FILT.spread: Filter trace with a spread of filters

Description

Show a time series and a spread of user defined filters to show signal at a variety of bandwidths.

Usage

FILT.spread(x, y, dt, fl = fl, fh = fh, sfact = 1, WIN = NULL, PLOT = TRUE, TIT = NULL, TAPER = 0.05, POSTTAPER=0.05)

Arguments

x
x-axis
y
y-amplitude
dt
delta-t, sec
fl
vector of low frequency cut offs
fh
vector of high frequency cut offs
sfact
scale factor, 0,1
WIN
xlimits to constrain plotting
PLOT
logical, plotting
TIT
title
TAPER
taper data prior to filter, percent cosine, default=NULL
POSTTAPER
taper output after filter, percent cosine, default=0.05

Value

  • list:
  • FMATmatrix of time series filtered
  • NotesNotes for filter of each element of FMAT

Details

Use the TAPER and POSTTAPER to reduce the edge effects prior to and after filtering.

See Also

butfilt, PLOT.MATN

Examples

Run this code
data(KH)
dt = KH$dt[1]

y =  KH$JSTR[[1]]

x =  seq(from=0, by=dt, length=length(y))



fl=rep(1/100, 5)
fh=1/c(1,2,5,10,20)

FILT.spread(x, y, dt, fl = fl, fh = fh, sfact = 1, WIN = NULL, PLOT = TRUE, TIT = NULL, TAPER = 0.05)

Run the code above in your browser using DataLab