flopy.utils.gridutil module
Grid utilities
- get_disu_kwargs(nlay, nrow, ncol, delr, delc, tp, botm)[source]
Create args needed to construct a DISU package.
- Parameters:
nlay (int) – Number of layers
nrow (int) – Number of rows
ncol (int) – Number of columns
delr (numpy.ndarray) – Column spacing along a row
delc (numpy.ndarray) – Row spacing along a column
tp (int or numpy.ndarray) – Top elevation(s) of cells in the model’s top layer
botm (numpy.ndarray) – Bottom elevation(s) of all cells in the model
- 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)