WCRP-CMIP / CMIP6Plus_CVs

Controlled Vocabularies (CVs) for use in CMIP6Plus
Creative Commons Attribution 4.0 International
3 stars 4 forks source link

Populate with CMIP6 like CVs #4

Closed matthew-mizielinski closed 1 year ago

matthew-mizielinski commented 2 years ago

Have brought in a set of CVs dictionaries for required fields -- process followed was

(First commit)

(second commit)

The construction script should now be able to take any updated JSON files for the individual terms and reconstruct the part needed to drive CMOR.

In the src/ directory there is a cv_checksums module that contains functions for setting and validating the md5 checksums.

To be clear: The functions to handle MD5 checksums have been copied from other tools. The functions look at the dictionaries they are given, remove the original checksum entry, compute the checksum of the JSON string representing the dictionary and then adds this to the dictionary. As such these are a reasonably robust method of monitoring for manual changes, which is what I've used it for in the past elsewhere when I don't want a user manually editing carefully controlled information.