5.2.8.2.1. eqcorrscan.utils.mag_calc._sim_WA¶
- eqcorrscan.utils.mag_calc._sim_WA(trace, inventory, 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.
inventory (obspy.core.inventory.Inventory) – Inventory containing response information for the stations in st.
water_level (float) – 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: