obspy.io.gcf.core.get_time_denominator

get_time_denominator(sps)[source]

Returns the time fractional offset denominator, d, associated with an input sampling rate.

Any data written to a gcf file must have its first sample sampled at a fractional time:

n/d

where 0 <= n < d

Parameters:

sps (float, int) – sampling rate (samples per second)

Return type:

int

Returns:

fractional offset denominator, if 0 input sampling rate is not compatible with implemented GCF format, if 1 first data sample must be sampled in integer time