Learn R Programming

RSEIS (version 2.1-6)

choosfilt: INteractive CHoice of Filter

Description

Choose Butterworth filter from a selection

Usage

choosfilt(thefilts = thefilts, ncol = 5)

Arguments

thefilts
list of filter parameters
ncol
number of columns

Value

  • filter parameter list:
  • ONlogical, TRUE=filter is on
  • fllow frequency cut-off
  • fhhigh frequency cut-off
  • typetype of filter, one of c("LP", "HP","BP" ,"BR" )
  • protoprototype, c("BU", "BE" , "C1" ,"C2")

Details

Used for interactive choices in PICK.GEN. 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"))

choosfilt(thefilts = thefilts, ncol = 5)

Run the code above in your browser using DataLab