ogs5py.tools.tools.transform_points

ogs5py.tools.tools.transform_points(points, xyz_func, **kwargs)[source]

Transform points with a given function “xyz_func”.

kwargs will be forwarded to “xyz_func”.

Parameters:
  • points (ndarray) – Array with all points postions.

  • xyz_func (function) – the function transforming the points x_new, y_new, z_new = f(x_old, y_old, z_old, **kwargs)

Returns:

new_array – transformed array

Return type:

ndarray