-
Notifications
You must be signed in to change notification settings - Fork 374
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
Modify how dimensions ids are set in coupler history #6268
Conversation
The coupler history was not using the dimension id of coordinate variables when defining dimensions of variables for most of the attribute vectors. This made the coupler history hard to use with viz/analysis tools like ncvis. Allow dimension ids of coordinate variables to be passed back to calling function and then used in future calls that define additional variables. Coupler history can then be viewed with ncvis and possibly other tools.
|
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.
Approved based on a visual inspection -- and looks like a very important change
@rljacob -- I approved just from looking at the code, but please let me know if it also needs to be tested |
@jonbob can you try it with an ice sheet compset? I just did watercycle ne4pg2. |
Sure -- anything I should look for? |
Make whatever mods you need to output a coupler history. Or run one of the MALI tests which will do it. Just want to make sure it writes without error when atmosphere is stub. You could try looking at the glacier coupler fields with ncvis. |
I ran SMS.T62_oQU120_ais20.MPAS_LISIO_TEST.chrysalis_intel successfully and the cpl history file could be visualized with ncvis, including the g2x and x2g fields |
ncvis was unhappy with some fields, like x2a_So_t (I think) -- it complained
but I don't think that's related to this PR |
Agreed. That's either an ncvis problem or different issue with how the domains are initialized when the component is DATM. |
The coupler history was not using the dimension id of coordinate variables when defining dimensions of variables for most of the attribute vectors. This made the coupler history hard to use with viz/analysis tools like ncvis. Allow dimension ids of coordinate variables to be passed back to calling function and then used in future calls that define additional variables. Coupler history can then be viewed with ncvis and possibly other tools. [BFB] doesn't change content of variables in a coupler history.
merged to next. |
The coupler history was not using the dimension id of coordinate variables when defining dimensions of variables for most of the attribute vectors. This made the coupler history hard to use with viz/analysis tools like ncvis. Allow dimension ids of coordinate variables to be passed back to calling function and then used in future calls that define additional variables. Coupler history can then be viewed with ncvis and possibly other tools.
[BFB] doesn't change content of variables in a coupler history.
This ncdump illustrates the problem.
Since x2a_Sx_tref doesn't have the same lat, lon dimension ids of the variables with the actual latitude and longitude (doma_ny vs. x2a_ny), most netcdf vis programs won't know how to display x2a_Sx_tref.
The fix changes the dimension ids for the variable to be:
double x2a_Sx_tref(time, doma_ny, doma_nx) ;
And similar for all other variables in the coupler history (which has variables on every mesh).