Skip to content

Gridded Surface🍋

GriddedSurface (GridObject) 🍋

A GriddedSurface is a XY oriented elevation surface with fixed cell size between its points. The grid points are defined at its corners in the XY plane and the Z-value of the points are not constrained. Gridded surfaces cannot be multi-Z. The cells may not be contiguous and don't have to all be defined.

For instance, a gridded surface can be of shape 5 x 3 x 2 but only have 3 cells defined at [1, 2, 1], [1, 3, 1] and [2, 3, 1].

Grid shape and cell sizes are inferred from the X, Y geometry. The grid is assumed to be cartesian and to have a constant cell size.

Parameters:

Name Type Description Default
name str

object name.

required
xyz ~Data

cell corners of the gridded surface.

required

Exceptions:

Type Description
ValueError

Variable cell size is inferred.

ValueError

There is a single cell in one of the axes.

Back to top