-
Notifications
You must be signed in to change notification settings - Fork 3
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 get_flow_residuals and get_flow_lower_face #327
Conversation
Fix lays parameter for structured grids
So it also works for multiple packages of the same type (for example 3 DRN-packages), by summing the budgets
Parameters | ||
---------- | ||
ds : xarray.Dataset | ||
Xarray dataset with model data. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Xarray dataset with model data and the 'botm' datavar.
nlmod/gwf/output.py
Outdated
return da | ||
|
||
|
||
def get_flow_lower_face(ds, kstpkper=None, grb_file=None, lays=None): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sluikreclame? Why not layers
instead of lays
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Omdat het integers zijn. layer duidt meer op de laag-naam.
nlmod/gwf/output.py
Outdated
flowja = cbf.get_data(text="FLOW-JA-FACE", kstpkper=kstpkper) | ||
|
||
if ds.gridtype == "vertex": | ||
# detemine flf_index first |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
typo: determine
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed
return np.ma.sum(data, axis=0) | ||
|
||
|
||
def _get_binary_budget_record(fobj, ipos, header, column): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
docstring?
Thanks for the review. I implemented most of the requested changes. On top of that, I renamed |
See the title of this PR