-
Notifications
You must be signed in to change notification settings - Fork 6
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
Wrong values in vertices_longitude
of NEMO/LIM variables
#625
Comments
Hmm yes the line consists of wrong values of nearly 360 degrees, I'm looking into it. This will mean another round with the cmor-fixer I guess... |
ece2cmor3 calculates the vertex longitudes as midpoints of gridpoint longitudes since there used to be no nav_lon_bounds yet. The line originates from the crossing from 180 to -180 degrees where the naive midpoint calculation fails. I guess the best way is to use nav_lat/lon_bounds in ece2cmor3 from now on and modify published data with the correct values |
Not sure if this is relevant but I noticed that the lons and lats variable in the cmorized files are not exactly equal to the nav_lon and nav_lat variables in the nemo files... This might in turn have an impact on the vertices? |
Not sure I understand this, each NEMO output file contains variables |
Yes but I believe historically this was not the case, so I agree we should use those now that they're available |
I have been looking in recent test data, i.e. raw XIOS-NEMO output and I can't find any
No more attributes. |
An approach could be that, if someone has the correct files for Then |
@klauswyser provided me a NEMO output file which has the I will try whether I can easily reproduce the NEMO |
The NEMO vertices can be fixed with the cmor-fixer v3.0 release. |
… the 0-360 degree range, as inn cmor-fixer (place of code and sys.exit might need a review) #625.
The Reading the vertices files and shifting the longitude vertices to the 0-360 degree range, as in |
…ory for instructions how to obtain the vertices files #625.
…for both the NEMO ORCA1 & ORCA025 grid are made available. In the current version in any case the t staggered grid is taken, the distinction between ORCA1 & ORCA025 is made and implemented #625.
…eritices files are not inplace, was broken. This is for now temporary fixed by a direct print and a system exit #625.
Though the regular cases seem to work now in the
where vertices are tried to add for a file which has a non 2D horizontal grid. Another point, these are covered:
Testing has to prove that this coveres all 2D/3D situations. Obviously the 1D case above is also not covered at this point yet. |
…ingle points) and 1D cases, this fixes all problematic cases seen #625.
With the latest 4309a80 commit, the 1D & 0D cases are now covered with the earlier method. However, in the
Another problem I encountered on the HPC with the batch sysytem is that the relative path to the nemo-vertices fails. So as long you cmorice locally from your ece2cmor root directory it goes fine. But when submitting the job on the HPC I had to give a hack like this in my case in the
|
The above mentioned |
This path need to be organised in a neat way. @goord can I leave that to you? And please review this branch. But I think for the rest it is ready for merge into master now. |
Yes I will fix the path. Usually I take the path of the current source file to get to the resources directory. |
Paths have been fixed, files are automatically downloaded from b2share if necessary. Closing this issue. |
The cmorised NEMO/LIM variables have an auxiliary variable
vertices_longitude
in the files and there seems to be a problem with it. Below is a plot of corner 1 longitudes for an arbitrary NEMO variable, taken from the cmorised file:There is a strange line of low(~0)/high(~360) values where the lon values pass 180 degrees. This feature is present for all four vertices and (not proven but very likely) for all NEMO/LIM variables, at least for ORCA1.
For comparison, this is what the vertices longitudes look like in the original NEMO output:
So it appears that the line coincides with the transition from -180 to 180 degrees in the original values.
The text was updated successfully, but these errors were encountered: