[FEATURE] - Improvements to imod.prepare.cleanup_wel
#1398
Labels
enhancement
New feature or request
Milestone
imod.prepare.cleanup_wel
#1398
Situation
Wells can be located at unsuitable locations in our model:
We need functionality to detect and handle these situations, with options for different handling strategies.
Summary discussion
I had a discussion with @Huite about this, summary:
Concluded that users should have control over:
Behaviour present code base
cleanup_wel
currently handles case 1. by adjusting filter location. Case 3. is handled by adjusted if filter is still overlapping with the bottom layer, but dropped if entirely blow model base.Case 2. is handled when calling
Well.to_mf6_pkg
and it meets the criteria of eitherminimum_thickness
orminimum_k
.We'd like more control over behaviour and this cleanup in one place.
Requirements
The well cleanup should handle three categories of issues:
Location issues
Fix strategies
For each issue, users should be able to choose:
"drop"
: Remove problematic wells"nearest"
: Move well to nearest valid locationValidation modes
Users should be able to control how remaining issues are handled:
"raise"
: Raise error if issues remain after fixes"warn"
: Warn if issues remain after fixes"ignore"
: Ignore remaining issuesProposed API
We were still discussing whether to use an OO approach, or prefer functions:
Object Oriented
Functions
I think because we are dealing with data transformations, a function oriented approach is preferable here, as it is easier for debug in an interactive session (IPython/Jupyter), which how most of our users are using iMOD Python.
The text was updated successfully, but these errors were encountered: