-
Notifications
You must be signed in to change notification settings - Fork 14
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 map between MPAS-Ocean and Omega variables #237
Add map between MPAS-Ocean and Omega variables #237
Conversation
Thanks for getting to this so quickly! If I remember correctly, in our conversation yesterday we concluded that for IO streams we would just manually produce different sections in the yaml file for each model. Thus, we don't need a public function that has an MPAS-O var name as an input and the Omega var name as output. We would only be using these functions to rename initial state and output dataset variables. |
From a brief look at the code, this looks good. Let me know when you would like me to test it, as I see this is marked draft. |
@cbegeman, I'm still working on this. I was about to write you to have a look but then I realized I'm not happy with it. I then revised it and I'm still not happy, but I'm getting there. |
This merge also adds or updates some attribute docstrings
Okay, @cbegeman, this is now ready for you to take another quick look. The main difference from an hour ago is that the |
variables: | ||
temperature: Temp | ||
salinity: Salt | ||
tracer1: Debug1 | ||
tracer2: Debug2 | ||
tracer3: Debug3 |
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.
Are we aware of others?
Darn it! I realized immediately after trying to use this in |
This step is appropriate for most ocean steps that are not OceanModelSteps, since often variables should be translated to or from the native model names to MPAS-Ocean names for use in Polaris
@cbegeman, I now have a solution I'm happy with. I need to test it out, hopefully tomorrow. In the meantime, let me know if it looks okay to you. |
I think this looks great! I like the IOStep idea. Somehow the map_to_model_dataset and map_from_model_dataset names aren't super intuitive to me but given that we'll mostly be calling the read/write method it doesn't matter much |
@cbegeman, I'd appreciate suggestions. |
@cbegeman, how about |
TestingI successfully ran the I set up the |
Sure, that's clearer to me. Or |
@cbegeman, I could go either way. I guess I don't see either a obviously clearer so I'm tempted to stick with what I have. Anything else you'd like to see in terms of code changes or testing before this goes in? |
tracer1: Debug1 | ||
tracer2: Debug2 | ||
tracer3: Debug3 | ||
ssh: SshCell |
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.
I'm not actually sure this is correct. We will see once Omega is actually writing output.
Nothing more from me. Feel free to merge as-is. Thanks! |
Thanks @cbegeman! |
Checklist
api.md
) has any new or modified class, method and/or functions listedTesting
comment in the PR documents testing used to verify the changes