import dascore as dc
import numpy as np
= (
patch 'example_event_1')
dc.get_example_patch(
)= (
taup_patch =0.1)
patch.taper(time=(..., 300))
.pass_filter(time1000,6000,10))
.tau_p(np.arange('time','slowness')
.transpose(
)= taup_patch.viz.waterfall(show=False,cmap=None)
ax = taup_patch.viz.waterfall(ax=ax) _
tau_p
tau_p(
patch: Patch ,
velocities: numpy.ndarray[Any, numpy.dtype[floating]] ,
)-> ‘PatchType’
Compute linear tau-p transform.
Parameters
Parameter | Description |
---|---|
patch | Patch to transform. Has to have dimensions of time and distance. |
velocities |
NumPY array of velocities, in m/s if units are not attached, for which to compute slowness (p). |
Note
Output will always be double the size of vels, with negative velocities (right-to-left) first, followed by positive velocities (left-to-right).
Uses linear interpolation in time