-
Notifications
You must be signed in to change notification settings - Fork 35
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
PrePARE cell_measures changed in 3.4.0 #439
Comments
@jonseddon @martinjuckes: Do you agree that ideally PrePARE should do the following:
|
The reason why the file didn't pass using CMOR 3.3.2's PrePARE is because that version of PrePARE lacks the "out_name" tests. https://github.com/PCMDI/cmor/blame/master/LibCV/PrePARE/PrePARE.py#L299 In CMOR 3.4.0, PrePARE looks up the variable and table name, extracted from the title of the NetCDF file, in out_names_tests.json. In this case it would find |
@jonseddon I agree your issue has been resolved. |
|
|
@mauzey1 Can this be closed yet? What issues remain? |
|
Besides "OPT" and "MODEL", |
@taylor13 and also ignore any table value with "OR" such as |
oops. In some of my previous messages, I meant to write "OR", not "NO". I've now corrected them. Yes, ignore any table with " OR ". Forget about anything to do with "NO", which as you noted isn't in any tables (and never was). |
I have a file with "cell_measures": "area: areacello". The MIP table for this variable (Omon.ficeberg) has "cell_measures": "area: areacello volume: volcello".
PrePARE from CMOR 3.3.2 failed this file. PrePARE from CMOR 3.4.0 is passing this file. Both versions were installed from Conda. Which behaviour is correct? We were expecting a failure.
I don't know if I'm reading it incorrectly, but from https://github.com/PCMDI/cmor/blame/master/LibCV/PrePARE/PrePARE.py#L586 I think that the regexp only returns a value if the cell_measures in the table contains "OR" (for example "area: areacello OR areacella" in SImon.sisnmass in 01.00.23 of the tables). I think that if there isn't an OR then values will be an empty list and the rest of the checks for cell_measures will pass.
The netCDF file that I've been checking is available at https://drive.google.com/file/d/1_O8JukXI6bhdIhNRPyxvWsroWsFsyQqb/view?usp=sharing
Thanks,
Jon
The text was updated successfully, but these errors were encountered: