Skip to content

Issue #1311 sprinkling from imod5 data#1312

Merged
JoerivanEngelen merged 20 commits into
issue_#1260_from_imod5_data_metaswapfrom
issue_#1311_Sprinkling_from_imod5_data
Dec 3, 2024
Merged

Issue #1311 sprinkling from imod5 data#1312
JoerivanEngelen merged 20 commits into
issue_#1260_from_imod5_data_metaswapfrom
issue_#1311_Sprinkling_from_imod5_data

Conversation

@JoerivanEngelen

@JoerivanEngelen JoerivanEngelen commented Nov 28, 2024

Copy link
Copy Markdown
Contributor

Fixes #1311

Description

Adds the following:

  • imod.mf6.LayeredWell.from_imod5_cap_data, to construct LayeredWells for MODLOW6 from the CAP package in iMOD5 Data. Throws an error if data is provided as point data (IPF, which is read as pandas DataFrame). This has rate 0.0, actual rates will be inserted by in the coupling scheme of iMOD Coupler.
  • imod.mf6.GroundwaterFlowModel.from_imod5_data adds Sprinkling well if CAP package present. This does not affect MODFLOW6 model if not coupled to MetaSWAP: The wells have rates 0.0, so will not affect the simulation results.
  • Sprinkling.from_imod5_data to construct a Sprinkling package from iMOD5 data.

Checklist

  • Links to correct issue
  • Update changelog, if changes affect users
  • PR title starts with Issue #nr, e.g. Issue #737
  • Unit tests were added
  • If feature added: Added/extended example

@JoerivanEngelen JoerivanEngelen marked this pull request as ready for review November 29, 2024 12:24
@JoerivanEngelen JoerivanEngelen changed the base branch from master to issue_#1260_from_imod5_data_metaswap November 29, 2024 12:25
Comment thread imod/tests/test_msw/test_sprinkling.py Outdated
@sonarqubecloud

sonarqubecloud Bot commented Dec 3, 2024

Copy link
Copy Markdown

Quality Gate Failed Quality Gate failed

Failed conditions
C Reliability Rating on New Code (required ≥ A)

See analysis details on SonarQube Cloud

Catch issues before they fail your Quality Gate with our IDE extension SonarQube for IDE

@JoerivanEngelen

JoerivanEngelen commented Dec 3, 2024

Copy link
Copy Markdown
Contributor Author

For some reason the example CI breaks online, but it works locally. Merging, let's see if this persists.

@JoerivanEngelen JoerivanEngelen merged commit 68b5ef2 into issue_#1260_from_imod5_data_metaswap Dec 3, 2024
@JoerivanEngelen JoerivanEngelen deleted the issue_#1311_Sprinkling_from_imod5_data branch December 3, 2024 15:49
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.

Add imod.msw.Sprinkling.from_imod5_data

2 participants