lib/redred.py
def quick_filter(trace, order = 2, cutfreq = 0.1):
    """ apply simple low pass filter to data"""
    b, a = sp.signal.butter(order, cutfreq, 'low', analog= False)
    filtered_trace = sp.signal.lfilter(b,a,trace)
    return(filtered_trace)
 apply simple low pass filter to data
apply simple low pass filter to data
apply simple low pass filter to data
def quick_filter(trace, order = 2, cutfreq = 0.1):
    b, a = sp.signal.butter(order, cutfreq, 'low', analog= False)
    filtered_trace = sp.signal.lfilter(b,a,trace)
    return(filtered_trace)
def quick_filter ( trace , order = 2 , cutfreq = 0.1 ) : b , a = sp . signal . butter ( order , cutfreq , 'low' , analog = False ) filtered_trace = sp . signal . lfilter ( b , a , trace ) return ( filtered_trace )
apply simple low pass filter to data
apply simple low pass filter to data
""" apply simple low pass filter to data"""
trace
order
cutfreq