geolime.stats.grid_stats¶
Functions:
|
Return the dx,dy of a grid guess from the x,y values |
-
geolime.stats.grid_stats.
guess_dx_dy
(x_array: numpy.array, y_array: numpy.array = None, z_array: numpy.array = None)¶ Return the dx,dy of a grid guess from the x,y values
- Parameters
x_array ((M,) ndarray) – Aray of x coordinates
y_array ((M,) ndarray) – Array of y coordinates
z_array ((M,) ndarray) – Array of z coordinates
- Returns
(dx,dy) – minimum step between two value in each array
- Return type
tuple
Example
>>> x_array = np.arange(0, 1000, 5) >>> y_array = np.arange(0, 1000, 3)
>>> dx,dy = guess_dx_dy(x_array,y_array) >>> dx,dy (5,3)