flopy.utils.lgrutil module

class Lgr(nlayp, nrowp, ncolp, delrp, delcp, topp, botmp, idomainp, ncpp=3, ncppl=1, xllp=0.0, yllp=0.0)[source]

Bases: object

get_delr_delc()[source]
get_exchange_data(angldegx=False, cdist=False)[source]

Get the list of parent/child connections

<cellidm1> <cellidm2> <ihc> <cl1> <cl2> <hwva> <angledegx>

Returns:exglist – list of connections between parent and child
Return type:list
get_idomain()[source]

Return the idomain array for the child model. This will normally be all ones unless the idomain array for the parent model is non-rectangular and irregularly shaped. Then, parts of the child model will have idomain zero cells.

Returns:idomain – idomain array for the child model
Return type:ndarray
get_lower_left()[source]

Return the lower left corner of the child grid

Returns:(xll, yll) – location of lower left corner of the child grid
Return type:tuple
get_parent_connections(kc, ic, jc)[source]

Return a list of parent cell indices that are connected to child cell kc, ic, jc.

get_parent_indices(kc, ic, jc)[source]

Method returns the parent cell indices for this child. The returned indices are in zero-based indexing.

get_replicated_parent_array(parent_array)[source]

Get a two-dimensional array the size of the child grid that has values replicated from the provided parent array.

Parameters:parent_array (ndarray) – A two-dimensional array that is the size of the parent model rows and columns.
Returns:child_array – A two-dimensional array that is the size of the child model rows and columns
Return type:ndarray
get_shape()[source]

Return the shape of the child grid

Returns:(nlay, nrow, ncol) – shape of the child grid
Return type:tuple
get_top_botm()[source]