magpie.grids.grid2d

magpie.grids.grid2d(lengths, ngrids[, mins=[None, None], return1d=False])

Returns the mid-point of a uniform grid.

Parameters
lengthsfloat or list[float]

Length of the grid.

ngridsint or list[int]

Number of grid points.

minslist[float], optional

Minimum values of the grid along each axis.

return1dbool, optional

Returns 1d mid-points.

Returns
x2d, y2d2darray

The uniform 2d grid.

xmid, ymidarray, optional

The mid-point of the uniform grid.