data(CE1)
ts1 <- CE1$y
zz <- AUGMENTbutfilt(ts1, fl=1, fh=15, deltat=CE1$dt, type="LP" , proto="BU",
npoles=5 )
############## second example with plotting
data(KH, package ='RSEIS' )
w = KH$JSTR[[1]]
dt = KH$dt[1]
x = seq(from=0, by=dt, length=length(w));
plot(x,w, type='l')
par(mfrow=c(2,1) )
i=1
fl = 1/50
fh= 1/2
ftype = 'BP'
########## normal band pass filter
zz = butfilt(w, fl, fh, dt, ftype , "BU")
f.stamp = filterstamp(fl=fl, fh=fh, type=ftype)
plot(x, zz, type='l', xlab='s', ylab='amp', main= f.stamp)
title(sub='butfilt')
####
zz1 = AUGMENTbutfilt(w, fl, fh, dt, type=ftype , proto="BU", zp=TRUE, pct=0.2 )
f.stamp = filterstamp(fl=fl, fh=fh, type=ftype)
plot(x, zz1, type='l', xlab='s', ylab='amp', main= f.stamp)
title(sub='AUGMENTbutfilt')
Run the code above in your browser using DataLab