-
Notifications
You must be signed in to change notification settings - Fork 245
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 a new example analysis script. #26
Merged
nikizadehgfdl
merged 2 commits into
dev/master
from
user/nnz/EddyKineticEnergyAnalysisScript
Jul 22, 2014
Merged
Adding a new example analysis script. #26
nikizadehgfdl
merged 2 commits into
dev/master
from
user/nnz/EddyKineticEnergyAnalysisScript
Jul 22, 2014
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Contributor
nikizadehgfdl
commented
Jun 20, 2014
- EddyKineticEnergy.py calculates "a" surface eddy kinetic energy annual mean
- Required adding a logarithmic color plot option to 6plot.xyplot
- Serves as an example analysis script that can be called inside the refineDiag script to be done annually
- Motivated by the plot in http://www.gfdl.noaa.gov/cms-filesystem-action/user_files/kd/pdf/c37_dixon_th85b.pdf
- Unaware of the scientific value, just an example.
- EddyKineticEnergy.py calculates the surface eddy kinetic energy annual mean - Required adding a logarithmic color plot option to 6plot.xyplot - Serves as an example analysis script that can be called inside the refineDiag script to be done annually - Motivated by the plot in http://www.gfdl.noaa.gov/cms-filesystem-action/user_files/kd/pdf/c37_dixon_th85b.pdf - Unaware of the scientific value, just an example.
ssv = rootGroup.variables['ssv'] | ||
ssv_mean = ssv[:].mean(axis=0) | ||
|
||
eke = ((ssu[:] - ssu_mean)**2 + (ssv[:] - ssv_mean)**2)/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.
There should be an i-average of u^2 from u-points to t-points and a j-average of v^2 from v-pointsto t-points. Use numpy.roll().
Nice addition! I noted (in a line comment) a discretization error in the eke calculation which I'll let you fix. |
Conflicts: Resolved tools/analysis/m6plot.py
gustavo-marques
pushed a commit
to gustavo-marques/MOM6
that referenced
this pull request
Sep 7, 2017
Remove dependency on ocean_model_mod; write/read restart files following CESM convention
nikizadehgfdl
pushed a commit
to nikizadehgfdl/MOM6
that referenced
this pull request
Oct 9, 2017
- "coupler" is needed for ice-ocean and fully coupled models. - Using version a61771c "Merge for Ulm release (21.0.0)". - Later versions need patches for gnu/pgi compatibility. - To build ice-ocean models the components land_null and atmos_null are still needed which will be added to GitHub sometime soon... - Closes mom-ocean#26. - No answer changes.
MJHarrison-GFDL
pushed a commit
to MJHarrison-GFDL/MOM6
that referenced
this pull request
Aug 16, 2022
Add optional parameter to register_diag_field "realm" to pass in a string to add a new attribute "modeling_realm". This new attribute can be used in post-processing to correct the "area"/"volume" field names. Fixes mom-ocean#26
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.