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 function to compare model results with measurements #258

Conversation

OnnoEbbens
Copy link
Collaborator

Added functions to:

  • get BRO groundwater measurements within the extent of the model
  • get heads at the locations (x,y,layer) of the BRO measurements
  • plot measured and modelled heads together

Besides this PR:

  • fixes a small bug when running modpath
  • add an extra caching function for (geo)dataframes and ObsCollections

@rubencalje
Copy link
Collaborator

Looks good. There are some fixes to the problems caused by a new Pandas version (2.1.0) in PR #257. As soon as PR #257 is merged we can check if this solves the failed tests in this PR.

Copy link
Collaborator

@dbrakenhoff dbrakenhoff left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A few comments for clarification, otherwise should be all good to go!

.values[modellayer - 1]
)
elif ds.gridtype == "vertex":
icelld2 = gi.intersect(Point(o.x, o.y))["cellids"][0]
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

icell2d? Or are we using cellid everywhere in nlmod?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we use icell2d as an integer value of a cell in a 2dimensional vertex grid and we use cellid for a list or tuple with (layer, row, col) or (layer, icell2d).

nlmod/read/bro.py Outdated Show resolved Hide resolved
nlmod/read/bro.py Outdated Show resolved Hide resolved
@OnnoEbbens OnnoEbbens merged commit 386c916 into dev Oct 10, 2023
2 checks passed
@OnnoEbbens OnnoEbbens deleted the 51-toevoegen-functionaliteit-voor-vergelijking-met-metingen-en-kalibratie branch October 19, 2023 15:38
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.

3 participants