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

Adding function to check sea surface elevation #764

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

simonweppe
Copy link
Contributor

To then be used in surface_stick()

simonweppe added 2 commits November 9, 2021 17:54
self.environment.sea_surface_height
if 'sea_surface_height' not in locals():
env, env_profiles, missing = \
self.get_environment(['sea_surface_height'],
Copy link
Collaborator

Choose a reason for hiding this comment

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

This does not work, since not all sublclasses of OceanDrift (nor OceanDrift itself) have a required variable sea_surface_height
Instead this method could return self.environment.sea_surface_height whenever it is available, otherwise 0

Copy link
Contributor Author

@simonweppe simonweppe Nov 22, 2021

Choose a reason for hiding this comment

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

True @knutfrode ...or maybe it makes sense to have sea_surface_height as a required variable for OceanDrift, with fallback zero ? like for wind, and waves.
Happy either way let me know and I can update the pull request accordingly.
Thanks

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.

2 participants