-
Notifications
You must be signed in to change notification settings - Fork 10
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
Changed name of dimensions in NEMO4.2 output #34
Comments
I did a try with the tests/CANAL configuration and NEMO 4.2.0, and I don't get the (x_grid_T, y_grid_T) dimensions (it outputs x and y dimensions, as in NEMO 4.0.0) |
I could reproduce this issue when diagnosing e.g. u_heattr. So I guess this issue would always occur when choosing diagnostics with: <field id= ... grid_ref="grid_..._inner" /> This could be solved in a similar fashion as for the vertical dimension. Line 80 in 72d1ca0
If you want me to work on it you would need to give write access. |
So you are proposing to replace: Lines 84 to 86 in 72d1ca0
by something like? x_nme = [i for i in ds.dims.keys() if "x" in i]
y_nme = [i for i in ds.dims.keys() if "y" in i]
to_rename.update({x: point.x for x in x_nme}).update({y: point.y for y in y_nme}) This would probably work. The easiest is that @vopikamm you fork xnemogcm, create a new branch on your fork, make the change, and afterward open a pull request. Is it fine for you? |
(We should also produce test data for this case. I'll simply try to add |
One issue I see with this is that it would rename any dimension with an |
…les-on-inner-grid closes #34 . Enable diagnosing variables on inner grid
The names of the x and y dimension in the output files from NEMO4.2 have partly changed, e.g. in grid_T.nc (x,y) are now (x_grid_T, y_grid_T). Same applies to output in grid_U.nc and grid_V.nc. Further, a second x and y dimension (x_grid_T_inner, y_grid_T_inner) appears for some fields.
The text was updated successfully, but these errors were encountered: