5.8.2.1. eqcorrscan.utils.mag_calc._sim_WA

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

Remove the instrument response from a trace and simulate a Wood-Anderson.

Returns a de-meaned, de-trended, Wood Anderson simulated trace in its place.

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

Parameters:
  • trace (obspy.core.trace.Trace) – A standard obspy trace, generally should be given without pre-filtering, if given with pre-filtering for use with amplitude determination 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.
  • velocity (bool) – Whether to return a velocity trace or not - velocity is non-standard for Wood-Anderson instruments, but institutes that use seiscomp3 or Antelope require picks in velocity.
Returns:

Trace of Wood-Anderson simulated data

Return type:

obspy.core.trace.Trace