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

ybrahim import: deal with empty wells #1134

Open
Tracked by #1155
luitjansl opened this issue Aug 2, 2024 · 0 comments
Open
Tracked by #1155

ybrahim import: deal with empty wells #1134

luitjansl opened this issue Aug 2, 2024 · 0 comments

Comments

@luitjansl
Copy link
Contributor

when a well is imported as an empty dataframe ( this happens if the well has 0 lines of rate information) then the well import does not succeed. THis happens in most wells of the Ybrahim model that Frans provided..

It could be solved by modifying the from_imod5_data of model_gwf to only import the wells that have a non-empty dataframe as imported from the prj & ipf files.

      for wel_key in wel_keys:
           layer = imod5_data[wel_key]["layer"]
           if len(imod5_data[wel_key]["dataframe"]) > 0:
               if layer == 0:
                   result[wel_key] = Well.from_imod5_data(wel_key, imod5_data, times)
               else:
                   result[wel_key] = LayeredWell.from_imod5_data(
                       wel_key, imod5_data, times
                   )
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 📯 New
Development

No branches or pull requests

1 participant