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

Add experimental MetaSWAP regridding functionality. #1254

Merged
merged 16 commits into from
Oct 23, 2024

Conversation

JoerivanEngelen
Copy link
Contributor

@JoerivanEngelen JoerivanEngelen commented Oct 23, 2024

Description

This PR adds experimental MetaSWAP regridding. It doesn't work yet for the sprinkling package, because this requires #728.
Mostly developed by @luitjansl , so all credits go to him for this functionality.

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

luitjansl and others added 16 commits April 30, 2024 16:20
Fixes #365

# Description
Adds regrid functionality to a number of metaswap packages
Adds unittests for regridding these packages

# Checklist

- [X] Links to correct issue
- [ ] Update changelog, if changes affect users
- [X] PR title starts with ``Issue #nr``, e.g. ``Issue #737``
- [X] Unit tests were added
- [ ] **If feature added**: Added/extended example
# Conflicts:
#	imod/msw/initial_conditions.py
#	imod/tests/test_msw/test_landuse_options.py
Fixes #1152 

# Description
Metaswap does not have the RegridderMethodType dataclass yet, so its
regridding method data were still a dictionary.
This PR implements RegridderMethodType dataclasses for metaswap, and
moves some base classes used for regridding to imod.utils (they were in
imod/mf6before)

# Checklist


- [X] Links to correct issue
- [ ] Update changelog, if changes affect users
- [X] PR title starts with ``Issue #nr``, e.g. ``Issue #737``
- [ ] Unit tests were added
- [ ] **If feature added**: Added/extended example
Fixes #1001 

# Description
adds regridding for metaswap packages meteo and grid_data
Adds a utility function for computing cell area and grid area for
equidistant and non-equidistant grids.

# Checklist


- [x] Links to correct issue
- [ ] Update changelog, if changes affect users
- [x] PR title starts with ``Issue #nr``, e.g. ``Issue #737``
- [x] Unit tests were added
- [ ] **If feature added**: Added/extended example
Fixes #1161 

# Description
Implemented a regrid_like method for metaswap models

# Checklist
<!---
Before requesting review, please go through this checklist:
-->

- [x] Links to correct issue
- [ ] Update changelog, if changes affect users
- [x] PR title starts with ``Issue #nr``, e.g. ``Issue #737``
- [x] Unit tests were added
- [ ] **If feature added**: Added/extended example
Copy link

@JoerivanEngelen JoerivanEngelen merged commit 09713d2 into master Oct 23, 2024
6 checks passed
@JoerivanEngelen JoerivanEngelen deleted the metaswap_regridding_feature_branch branch October 23, 2024 15:10
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.

2 participants