xdas.coordinates.DenseCoordinate.get_sampling_interval#

DenseCoordinate.get_sampling_interval(cast=True)[source]#

Return the average sample spacing (end-to-end distance divided by N-1).

Parameters:

cast (bool, optional) – If True (default), cast timedelta64 results to seconds (float).

Returns:

None if the coordinate has fewer than two elements.

Return type:

float or None