iwopy.utils.RegularDiscretizationGrid.i2gp(inds, error=True)[source]

Translates grid point indices to grid point.

Parameters

inds: int

The grid point indices, shape: (n_dims,)

error: bool

Flag for throwing error if off-grid, else return None in that case

Returns

gp: numpy.ndarray

The grid point, shape: (n_dims,)