odc.geo.math.data_resolution_and_offset

odc.geo.math.data_resolution_and_offset(data, fallback_resolution=None)[source]

Compute resolution and offset from x/y axis data.

Only uses first two coordinate values, assumes that data is regularly sampled.

Return type:

Tuple[float, float]

Returns:

(resolution, offset)