obspy.core.util.misc.guess_delta

guess_delta(channel)[source]

Estimate time delta in seconds between each sample from given channel name.

Parameters

channel (str) – Channel name, e.g. 'BHZ' or 'H'

Return type

float

Returns

Returns 0 if band code is not given or unknown.

Example

>>> print(guess_delta('BHZ'))
0.1
>>> print(guess_delta('H'))
0.0125
>>> print(guess_delta('XZY'))  
0