Changes

  • Refreshed CMIP7-oriented user guidance in cmor_CV.c for invalid source_id and institution_id values, including current WCRP-CMIP issue links and the CMIP7 CV registration guide. (#942)
    • Updated source_id and institution_id CV error messages to point users to current CMIP7 registration issue templates and guidance instead of outdated links.
  • CMIP7 datasets now write parent and branch attributes only when the selected experiment defines parent experiments in the controlled vocabulary. (#940)
    • This is done when _cmip7_option is enabled in the user input JSON.
    • When a CMIP7 experiment has no parent experiments, CMOR now warns about stray parent attributes and removes them before writing the output file.
    • When a CMIP7 experiment requires a parent, CMOR now errors if parent_experiment_id is missing, not allowed by the controlled vocabulary, or paired with an invalid parent_activity_id.

CI / Tests

  • Added Test/test_cmor_parent_attrs.py coverage for CMIP7 parent-attribute handling across no-parent experiments, required-parent experiments, warning-and-removal behavior, and invalid parent metadata. (#940)
    • Updated existing CMIP7 Python tests to reflect the new parent-attribute rules and to clean up temporary test inputs created during test runs.

Issues / Pull Requests

GitHub