FloPy is a Python package to create, run, and post-process MODFLOW-based models
Agent Success
Agent success rate when using this tile
66%
Improvement
Agent success rate improvement when using this tile compared to baseline
1.14x
Baseline
Agent success rate without this tile
58%
Build a tool to visualize boundary conditions from a MODFLOW groundwater model with color-coded markers for different boundary condition types.
Create a Python function that generates a map view plot of boundary conditions from a loaded MODFLOW model. The function should:
The function should work with both MODFLOW-2005 and MODFLOW 6 models.
@generates
import matplotlib.pyplot as plt
from matplotlib.figure import Figure
from matplotlib.axes import Axes
def plot_boundary_conditions(
model: object,
figsize: tuple[float, float] = (12, 10),
layer: int = 0
) -> tuple[Figure, Axes]:
"""
Create a map view plot of boundary conditions from a MODFLOW model.
Args:
model: A FloPy MODFLOW model object (MODFLOW-2005, NWT, or MODFLOW 6)
figsize: Figure size as (width, height) in inches
layer: Model layer to visualize (0-indexed)
Returns:
A tuple of (figure, axes) containing the boundary condition plot
"""
passProvides MODFLOW model handling and plotting utilities.
Provides plotting functionality.
tessl i tessl/pypi-flopy@3.9.0docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10