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

Check points #9

Merged
merged 4 commits into from
Nov 9, 2014
Merged

Check points #9

merged 4 commits into from
Nov 9, 2014

Conversation

dcherian
Copy link
Contributor

I've updated tools.check_points to take in an input array of z0 values and check whether they are within 1m of the bottom. The 1m restriction is arbitrary for now, but works well. I do the check by interpolating to find out water depth at the (lon0, lat0) location and checking whether z0 is above that.

To keep things simple for now, I only check whether the initial z0
locations provided are within 1m of the bottom. I do this by making
an interpolation function for water depth, and checking the water
depth at the provided (lon0, lat0) locations.
…re_for_model_run not working because the particle was just below the bottom even after running the check. But that problem doesn't happen anymore. So, make the check cleaner until I run into the problem again.
kthyng added a commit that referenced this pull request Nov 9, 2014
@kthyng kthyng merged commit ef895c4 into kthyng:master Nov 9, 2014
@kthyng
Copy link
Owner

kthyng commented Nov 9, 2014

Looks good!

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.

None yet

2 participants