Learn R Programming

RSEIS (version 4.2-4)

choosfilt: INteractive CHoice of Filter

Description

Choose Butterworth filter from a selection

Usage

choosfilt(thefilts = thefilts, ncol = 5)

Value

filter parameter list:

ON

logical, TRUE=filter is on

fl

low frequency cut-off

fh

high frequency cut-off

type

type of filter, one of c("LP", "HP","BP" ,"BR" )

proto

prototype, c("BU", "BE" , "C1" ,"C2")

Arguments

thefilts

list of filter parameters

ncol

number of columns

Author

Jonathan M. Lees<jonathan.lees.edu>

Details

Used for interactive choices in swig. See example below.

See Also

butfilt, RPMG

Examples

Run this code

 thefilts <-
          list(flo=
               c(0.02, 0.02, 0.02, 0.02, 0.02,   0.02,
                 0.02, 0.02, 0.02,  0.02, 0.02,  0.02,
                 0.02,
                 1/2, 1/50,1/100, 1/100,1,1,
                 0.2, 15, 5, 2,1,
                 100),
               fhi=
               c(1/10, 1/6, 1/5, 1/4, 1/3, 1/2,
                 0.2,  0.5, 1.0,  2.0, 3.0,  4.0,
                 7.0,
                 8, 1/2.0,1/5.0,1/10.0,10,5,
                 7.0, 100, 100, 100,10,
                 100),
             type =
               c("LP","LP", "LP", "LP", "LP", "LP",
                 "LP","LP", "LP", "LP", "LP", "LP",
                 "LP",
                 "BP", "BP","BP","BP","BP","BP",
                 "HP", "HP","HP", "HP","HP",
                 "None"))

if(interactive() ) choosfilt(thefilts = thefilts, ncol = 5)


Run the code above in your browser using DataLab