Correct pkg/mnc grid parameter naming#925
Conversation
|
@IvanaEscobar I like this suggestion. It removes many unnecessary differences between MDS and MNC output. Probably, more people use |
|
I have few comments (going along @mjlosch remarks):
|
To address concerns, there were no backwards compatibility issues when creating changes within
|
I believe more users opt for an MDS+ |
|
Hi all, I generated a table of (most) grid variables as they appear with MDSIO output, mic-output, and in xmitgcm-datasets: @jm-c I also added variables as they appear in Now we can fight, what's most consistent (o: @IvanaEscobar Did you check, if tools like |
|
My only input for choosing naming conventions will be that most users opt for MDS output, so it would be least inconvenient to switch to that naming convention universally. @mjlosch I checked with |
|
@mjlosch I looked at the pdf version of your table: may be could add an other column (the first one ?) with the list of grid variables as they appear in |
|
E voilà! The updated list of variables with a column that shows, what we can find in |
|
Are these suggested names for grid parameters correct? I colored the ones we didn't discuss in yellow OUTDATED grid_variable_list.pdf |
|
@IvanaEscobar I looked at the new table, with the "Suggested names" new column. Here are some thought:
But if you have a strong preference for a particular name, could also stick with it. |
|
With your updates, here is the suggested name list: If this list looks right, the next step will be to correct |
|
This looks all good to me, thanks @IvanaEscobar |
|
Thanks, this looks good to me. |
|
@mjlosch I believe "SUGGESTED NAMES" will update |
|
@IvanaEscobar Since we did not get any complain about the new names (in your updated table) , looks like we can move on to the next step, when you have find time. |
|
Done @jm-c It looks like changing the grid names causes some tests to fail. What needs to change to fix the failing checks? |
|
in There may be more places where |
|
That was the fix needed. Thanks @mjlosch I hadn't seen the additional subroutine under the stale |
|
I ran I am not aware of any python code in |
|
I pushed a little fix in Regarding python utils, should we make a little script there to show how to handle loading the old and the new MNC grid files ? |
|
@jm-c I'm not familiar with Assuming Who would be the best contact for checking this utility? |
|
I do not think it's necessary to have specific python script.
@jm-c do you really think we need a python script/function like |
|
@mjlosch If we are sure that there is no user using python with MNC output then it's fine. Otherwise we should expect, after this renaming PR is merged, that someone will report about "why my analysis script don't work anymore", and we will need to explain how to look for name changes in, e.g., "dict" if using |
|
OK, I see the point, but would love to have @jahn's opinion. I wouldn't even know where within the |
|
Not sure I understand what we are trying to illustrate and what load_grid.m does other than renaming the variables. Why not just read the grid netCDF files with rdmnc? And have a table somewhere with the old and new mnc names, maybe even in the doc string of rdmnc? |
|
Not an elegant solution, but there's now a utility that can be pointed to in the case that a user needs backwards compatibility and needs it in Python Feel free to improve |
|
The PR description was updated to account for backwards compatibility. Is this all we need to merge? |
|
Python routines in tutorial baroclinic gyre are hard-coded with mnc (old) names and should be fixed. There may be other places where the old names were hard-coded, will look further. |
|
I think the matlab version needs also some updates: MITgcm/verification/tutorial_baroclinic_gyre/analysis/matlab_plots.m Lines 20 to 45 in b7411f1 |
|
I tested the (modified) matlab and two python routines in tutorial_baroclinic_gyre, all ran with no issues, LGTM |
|
LGTM |
|
Thanks everyone, will merge this PR later today. |
What changes does this PR introduce?
Update
pkg/mncgrid names to match MDSWhat is the current behaviour?
Grid variable names are unique when using
pkg/mnc, leading to increased complexity when comparing to MDS output in post processing. eg. 'HFacC' instead of 'hFacC'What is the new behaviour
Grid variable names match MDS
Does this PR introduce a breaking change?
no
Other information:
left
mnc_cw_write_grid_info.Finpkg/mncas is since it has a clear warning that it is unsupported and unused.Suggested addition to
tag-indexupdate pkg/mnc grid names to match mds
provide backwards compatibility with MATLab and Python tools