UO-Geophysics / MudPy

Kinematic and static rupture forward modeling and inversion code
Other
118 stars 63 forks source link

Different bandpass filter corners per data type/station #19

Closed dmelgarm closed 7 years ago

dmelgarm commented 7 years ago

Right now if you declare a bandpass filter in an inversion it is applied to all waveforms regardless of data type. Add functionality so that each data type, or even each station, can have its own band pass filter corners.

dmelgarm commented 7 years ago

Added this in. Now a typical parameter file looks like:

# #Corner frequencies in Hz =None if no filter is desired
 # [0.5] is a low pass filter
 # [0.02,0.5] is a bdan pass filter
 # [0.02,np.inf] is a high pass filter
displacement_bandpass=np.array([0.5]) 
velocity_bandpass=None
tsunami_bandpass=None
bandpass=[displacement_bandpass,velocity_bandpass,tsunami_bandpass]