Skip to content

Add drain_from_df helper - #601

Open
bdestombe wants to merge 1 commit into
gwmod:devfrom
bdestombe:bdestombe/drain-from-df-lean
Open

bdestombe wants to merge 1 commit into
gwmod:devfrom
bdestombe:bdestombe/drain-from-df-lean

Conversation

@bdestombe

Copy link
Copy Markdown
Collaborator

Adds nlmod.gwf.drain.drain_from_df, which builds a DRN package from line, polygon and point features, similar to wel_from_df and hfb_from_df.

  • Lines: conductance = conductance_per_meter × the length of the line inside each cell.
  • Polygons: conductance = conductance_per_squared_meter × the area inside each cell.
  • Points: a given conductance (cond).
  • Each feature keeps its own elevation, also when several drains share a cell.
  • Layer placement is done by build_spd.

It is meant for fixed drains such as pipes or a pumping-station basin. For seasonal surface water, gdf_to_seasonal_pkg remains the right choice.

I have simplified this PR a lot compared with the first draft. Routing drain water to lakes (MVR) and explicit 3D cellids are left out and may follow later as separate proposals.

Related: #574 (gdf_to_grid does not fill the length column); this PR does not depend on it.

Supersedes #564.

Build a DRN package from line, polygon and point features. Line and polygon
conductance follows from the clipped length or area per cell; points use an
integrated conductance. Layer placement is delegated to build_spd. Each feature
keeps its own elevation, also when several features share a cell.
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