pyflwdir.gis_utils.get_edge# pyflwdir.gis_utils.get_edge(a: ndarray, structure: ndarray | None = None) → ndarray[source]# Get edge of valid cells. Parameters: a (2D array of bool) – Boolean array valid cells. structure (2D array with shape (3,3) of bool, optional) – Structuring element used to define which cells are neighbors. If None, a 3x3 square is used. The center cell is ignored. Returns: edge – Boolean array edge cells. Return type: 2D array of bool