xdas.coordinates.InterpCoordinate.get_sampling_interval#

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

Return the nominal sample spacing for this coordinate.

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