magpie.grids.grid1d

magpie.grids.grid1d(length, ngrid[, xmin=0., return_edges=False])

Returns the edges of a uniform grid along one axis.

Parameters
Lengthfloat

Length of the grid.

ngridint

Minimum value of the grid.

xminfloat, optional

Minimum value of the grid.

return_edgesbool, optional

If True then the edges of the uniform grid are also supplied.

Returns
xmidarray

The mid-point of a uniform grid.

xedgesarray, optional

The edges of a uniform grid along one axis.