check_waveform#
- empymod.utils.check_waveform(time, nodes, amplitudes, verb, signal=0, nquad=3)[source]#
Check waveform dict and create waveform function.
This check-function is called from
empymod.utils.check_time_only.The waveform function is based on work from Kerry Key (DIPOLE1D).
- Parameters:
- timearray_like
Times t (s).
- nodesarray_like
Waveform nodes, for which amplitudes are provided.
- amplitudesarray_like
Waveform amplitudes corresponding to the nodes.
- verb{0, 1, 2, 3, 4}
Level of verbosity.
- signal{-1, 0, 1}, default: 0
Source signal to use for convolution:
-1 : Switch-off time-domain response
0 : Impulse time-domain response
+1 : Switch-on time-domain response
- nquadint, default3
Quadrature points for wave segments.
- Returns:
- timefloat
Time required to compute for the waveform.
- signal
Signal dictionary, containing the signal itself and the waveform function.