def METHOD_NAME(arr):
    """
    Flatten the array of point positions, so the resultant array
    is two-dimensional, where the first dimension is the index of the point
    and the second is the vector component (0, 1, 2 for x, y, z). Useful
    for IDW input.
    """
    xdim, ydim, zdim, vec_dim = arr.shape
    return arr.reshape((xdim * ydim * zdim, vec_dim))