5.7.2.1. eqcorrscan.utils.mag_calc._sim_WA

eqcorrscan.utils.mag_calc._sim_WA(trace, PAZ, seedresp, water_level)[source]

Remove the instrument response from a trace and simulate a Wood-Anderson. Returns a de-meaned, de-trended, Wood Anderson simulated trace in it’s place.

Works in-place on data and will destroy your original data, copy the trace before giving it to this function!

Parameters:
  • trace (obspy.Trace) A standard obspy trace, generally should be given without pre-filtering, if given with pre-filtering for use with amplitude determiniation for magnitudes you will need to worry about how you cope with the response of this filter yourself.
  • PAZ (dict) Dictionary containing lists of poles and zeros, the gain and the sensitivity. If unset will expect seedresp.
  • seedresp (dict) Seed response information - if unset will expect PAZ.
  • water_level (int) Water level for the simulation.
Returns:

obspy.Trace