usgs / groundmotion-processing

Parsing and processing ground motion data
Other
54 stars 42 forks source link

Extend remove instrument response options #962

Closed emthompson-usgs closed 2 years ago

emthompson-usgs commented 2 years ago

Add options to instrument response removal to allow for no water level and/or no pre filter. Closes #961.

NOTE: This will require all users to update their config file in the instrument response section to add the new pre_filt key:

    - remove_response:
        #  Apply a bandpass filter in frequency domain to the data before deconvolution?
        pre_filt: True

        # Pre-filtering frequencies. See obspy.core.trace.Trace.remove_response
        # for details. Note: if f3 is Null it will be set to 0.9*fn, if f4 is
        # Null it will be set to fn.
        f1: 0.001
        f2: 0.005
        f3: Null
        f4: Null

        # Water level (dB) for deconvolution; Set to Null to not apply a water level.
        water_level: 60.0