flopy.utils.gridutil module
Grid utilities
- get_disu_kwargs(nlay, nrow, ncol, delr, delc, tp, botm)[source]
Simple utility for creating args needed to construct a disu package
- get_lni(ncpl, nodes) List[Tuple[int, int]] [source]
Get layer index and within-layer node index (both 0-based).
Node count per layer may be an int or array-like of integers.An integer ncpl indicates all layers have the same node count. If an integer ncpl is less than any specified node numbers, the grid is understood to have at least enough layers to contain them.
If ncpl is array-like it is understood to describe node countper zero-indexed layer.
- Parameters:
ncpl (node count per layer (int or array-like of ints)) –
nodes (node numbers (array-like of nodes)) –
- Return type:
A list of tuples (layer index, node index)