-
Notifications
You must be signed in to change notification settings - Fork 32
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
singleton and generic level #430
Comments
This variable is in CMOR tables "Emon" and "6hrLev" where in Emon, for example, ec550aer has coordinates: |
Just a comment: ec550aer (Emon and 6hrLev) appear to be the only variables which have both a vertical dimension and singleton coordinate variable. This coordinate variable is a wavelength, so it should be acceptable as far as CF is concerned. |
Yes, I think the variable is defined correctly and consistent with the CF conventions. We'll need to check that CMOR, with the patch, handles everything correctly. |
See also PCMDI/cmip6-cmor-tables#230 |
I get the same Error for |
It's not clear that the two errors are really the same. rsdcsafbnd in E3hrPt is a function of 5 coordinates: longitude latitude alevhalf spectband time1. Have we tested whether CMOR correctly deals with 5? Can we generate a test case? Regarding ec550aer, it is also a function of 5 coordinates, but the last one is a scalar dimension (not a true coordinate), so it gets handled differently by CMOR. This would require a different test code. We should try to fix these bugs as soon as we can. |
Looking at the patch, I'm concerned that it might break something else (not tested by our test codes). Do we understand what Ogochi has done? |
@taylor13 Lines 1717 to 1777 in 9238f78
The above segment of code is meant to get all non-singleton dimensions from laxes_ids into cmor_vars[vrid].axes_id . cmor_vars[vrid].axes_id should be indexed with the variable k , which doesn't get incremented if refvar.dimensions[i] is a singleton dimension. In the segment that found the Z axis, cmor_vars[vrid].axes_ids was originally indexed by i , which would leave a gap in that array when the singleton value is skipped. Ogochi's patch changes the index to k .
The other changes are for detecting when values from |
Hi,
There is a definition of Best regards, |
|
@taylor13 @mauzey1 Conditions
What's happened in codeOccurred in At line 1466, the conditional ( There is one more bug (line: 1718 & 1746). In this loop, the axes IDs are copied from Fixing the above two, code may work even though out-of-range errors remain yet. In my debug execution, |
Koji OGOCHI ogochi@jamstec.go.jp
Japan Agency for Marine-Earth Science and Technology (JAMSTEC)
reports:
Patch attached.
cmor_variable.patch.txt
The text was updated successfully, but these errors were encountered: