climate-resource / input4mips_validation

Validation of input4MIPs data
https://input4mips-validation.readthedocs.io/en/latest/
Other
0 stars 1 forks source link

`--ignore-cf-checker-warnings` flag for validation #52

Closed znichollscr closed 1 month ago

znichollscr commented 1 month ago

The motivation

As a user, we don't always want validation to fail if the cf-checker spits out warnings. For example, the solar data shouldn't fail because of the month warning business (see https://github.com/PCMDI/input4MIPs_CVs/issues/17#issuecomment-2255734485).

The proposed solution

Add a flag to all validation related-commands, --ignore-cf-checker-warnings. This should cause warnings from the CF-checker to not cause a failure of the file validation.

Alternatives

Additional context

The cf-checker's convention is to exit with a negative error code if only warnings are found, see https://github.com/cedadev/cf-checker/blob/c0486c606f7cf4d38d3b484b427726ce1bde73ee/src/cfchecker/cfchecks.py#L3525