Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Issue #1311 sprinkling from imod5 data #1312

Conversation

JoerivanEngelen
Copy link
Contributor

@JoerivanEngelen JoerivanEngelen commented Nov 28, 2024

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
imod/tests/test_msw/test_sprinkling.py Outdated Show resolved Hide resolved
Copy link

sonarcloud bot commented Dec 3, 2024

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
Copy link
Contributor Author

JoerivanEngelen commented Dec 3, 2024

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
5 of 7 checks passed
@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