-
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
hard-coded tables in CMOR #536
Comments
@alaniwi thanks for commenting. We are actually in the process of cleaning up repos (see PCMDI/xml-cmor3-database#52) and @mauzey1 has also flagged that CMOR should be carrying the primary Tables repo (PCMDI/cmip6-cmor-tables) along for the ride in conda installations, see #529. Where other than tests are the files referenced #536 (comment) actually used? In order for a user to configure and use CMOR3 they first need to clone and configure a Table subdir for their use (either cmip6-cmor-tables, input4mips-cmor-tables or obs4mips-cmor-tables currently). |
@durack1 Issue #529 is about making a git submodule of cmip6-cmor-tables inside the CMOR repo, not including it in the conda installation. @alaniwi The file |
@mauzey1 good question, those two experiments files are not up-to-date and as long as they're not being used by the code should also be purged as part of a repo cleanup. This repo should be for the CMOR software (along with it's internal tests) not for also hosting table files |
@durack1 The specific issue I encountered was related to |
@durack1 Should |
@mauzey1 it is not clear to me what the |
@durack1 It is CMOR-specific since the index values in each table-out_name entry corresponds to a function in PrePARE for testing which variable name to use. I am thinking we might not even need |
@durack1 I wanted to get back to this issue of hard-coded tables in CMOR/PrePARE. As I stated previously, we shouldn't need this file since the An example would be a dataset for cmor/LibCV/PrePARE/out_names_tests.json Lines 27 to 30 in c805fe0
Lines 340 to 348 in c805fe0
Lines 408 to 434 in c805fe0
PrePARE will determine that the dataset should have the variable name ta27 if it has 27 pressure levels.
I propose a different method of validating the file name and variable name. First, find the variable and table name in the file to find the variable entry in the table.
From there we can get the One issue when it comes to validating this feature is the lack of files from ESGF that have an out name that differs from their true variable name. Going through the out names list and searching for variables on esgf-node.llnl.gov, I've only found one dataset: One odd thing about this dataset is that the variable name |
Soon we should be moving to a slightly different way of uniquely naming variables, so that there won't be multiple "in names" in a table with the same "out name". In fact the names will be unique across all tables (although the variable may still be divided up and hosted by different tables). I'm not sure we should try to clean up things until that new approach has been agreed. |
Various tables are included in the software, which forces the user to upgrade CMOR if they are updated. In particular, the following:
Could I suggest moving them to a separate repo so that they can be updated independently? (Possibly added to https://github.com/PCMDI/cmip6-cmor-tables, although I don't know enough to be sure whether this is appropriate or not.)
Thanks.
The text was updated successfully, but these errors were encountered: