-
Notifications
You must be signed in to change notification settings - Fork 11
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
Cmems #430
base: develop
Are you sure you want to change the base?
Conversation
################################################# | ||
# calculate currents | ||
################################################# | ||
current = abs(sci_uv.dataset.u_velocity) * abs(sci_uv.dataset.v_velocity) |
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.
current = abs( complex(u,v) )
or
current = sqrt(u^2 + v^2)
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.
ok, thanks. How does it work to upgrade comments? Do I need to change the file on the CMEMS branch and push the changes again, or can I change things directly within this pull request?
I've added two examples. the cmems_example_plot.py plot is literally just a script that reads in and plots a figure, the cmems_sril34_example_plot.py shows example of the comparison between cmems and sril34. This one does the interpolation.
(I can add a mask to make the SRIL34 land region of the plot prettier, but it's a relatively pointless extra file.)
The CMEMS files are cropped around Sril Lanka ( a bit sider than the sril34 domain), so they are very small now. The SRIL34 are cropped to 3 days.