Conversation
znichollscr
left a comment
There was a problem hiding this comment.
Thanks @matthew-mizielinski, all looks good
Only one small question. I assume that the steps needed to add MOHC stuff are clear enough (we have to alter the CVs, then regenerate the table, I can help with this)?
| "filename_path_example": "tas_tavg-h2m-hxy-u_mon_glb_g99_CanESM6-MR_1pctCO2_r1i1p1f1_185001-202112.nc", | ||
| "filename_path_template": "<variable_id>_<branding_suffix>_<frequency>_<region>_<grid_label>_<source_id>_<experiment_id>_<variant_label>[_<timeRange>].nc" | ||
| "filename_example": "tas_tavg-h2m-hxy-u_mon_glb_g99_CanESM6-MR_1pctCO2_r1i1p1f1_185001-202112.nc", | ||
| "filename_template": "<variable_id><branding_suffix><frequency><region><grid_label><source_id><experiment_id><variant_label>" |
There was a problem hiding this comment.
Was the removal of time range on purpose? As I understand it, that is meant to be there so it should be something like
"filename_template": "<variable_id><branding_suffix><frequency><region><grid_label><source_id><experiment_id><variant_label>[<timeRange>]"
I also don't know whether the trailing .nc is meant to be there or not..?
There was a problem hiding this comment.
@znichollscr, I don't think <timeRange> is understood by CMOR at all. If I add it in then we end up with file names like
MIP-DRS7/CMIP7/CMIP/CCCma/CanESM6-MR/1pctCO2/r9i1p1f3/glb/mon/tos/tavg-u-hxy-sea/g99/v20260127/tos_tavg-u-hxy-sea_mon_glb_g99_CanESM6-MR_1pctCO2_r9i1p1f3_timeRange_201801-201802.nc
if I add just .nc to the end I get
MIP-DRS7/CMIP7/CMIP/CCCma/CanESM6-MR/1pctCO2/r9i1p1f3/glb/mon/tos/tavg-u-hxy-sea/g99/v20260127/tos_tavg-u-hxy-sea_mon_glb_g99_CanESM6-MR_1pctCO2_r9i1p1f3_.nc_201801-201802.nc
So it seems leaving these two items out is necessary for recent versions of CMOR (in older versions this string wasn't picked up from the CV json file at all).
There was a problem hiding this comment.
So, is the bottom line that CMOR is currently hard-wired to append the time-range to whatever filename structure is specified by the data provider in the cmor-cvs.json file? If so, is the time-range something we should put on the list of things that should be handled as input in a future release? Note that for fixed fields (when frequency = "fx"), the time-range is omitted.
There was a problem hiding this comment.
So it seems leaving these two items out is necessary for recent versions of CMOR (in older versions this string wasn't picked up from the CV json file at all).
Ok great, thanks for checking. Updated now
So, is the bottom line that CMOR is currently hard-wired to append the time-range to whatever filename structure is specified by the data provider in the cmor-cvs.json file?
This is my understanding
If so, is the time-range something we should put on the list of things that should be handled as input in a future release?
Up to the CMOR developers I would say. We're probably not going to change this convention anytime soon so it's not a big issue right now (if we ever do this change the convention, then CMOR will need an update - up to the CMOR developers whether they do the work now 'just in case' or wait until it's actually a problem).
|
Thanks @matthew-mizielinski. In terms of how we can implement this, it's a little bit complicated. I've made some pull requests to show you how this works:
Once you do all of that, then you end up with a CMOR CVs file like what you have here, see https://github.com/znichollscr/CMIP7-CVs/blob/add-ukmo-entries/cmor-cvs.json |
|
For further context about how to keep the CMOR CVs file up to date, see #271 |
Correct, I think we need a pretty minimal set of details for each model that could be constructed from the information collected by EMD. |
|
I'm going to close this PR as I think we've got everything out of it now. #336 (comment) will still be there - up to you whether you continue the conversation in that thread or start a dedicated issue |
@znichollscr, these are the changes I've had to make to use the CVs json file with the examples in https://github.com/WCRP-CMIP/cmip7-cmor-tables/
This isn't for merging, but it would be good to fix the easy items in the code that generates the CVs Json file for cmor, and get an update on the automatic generation of this file as updates to the CVs come in.