Skip to content

Conversation

@mjreno
Copy link
Contributor

@mjreno mjreno commented Nov 24, 2025

dfn branch version of #260

from modflow_devtools.netcdf import (
    NetCDFModelInput,
    NetCDFPackageCfg,
)

nc_input = NetCDFModelInput(
    name="twri",
    type="gwf",
    grid_type="structured",
    mesh_type="layered",
    dims=[2, 4, 6],  # ["time", "z", "nmesh_face"]
)

nc_input.packages.append(NetCDFPackageCfg("npf", "npf", params=["k", "k22"]))
nc_input.packages.append(NetCDFPackageCfg("welg_0", "welg", params=["q"]))

ds = nc_input.to_xarray()

@mjreno mjreno marked this pull request as draft November 24, 2025 19:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant