euro-cordex / cc-plugin-cc6

Compliance checker plugin to test compliance with CORDEX-CMIP6 archive specifications
Apache License 2.0
0 stars 0 forks source link

Defining basic 'mip' checker. #12

Closed sol1105 closed 2 months ago

sol1105 commented 2 months ago

Defining basic 'mip' checker.

Updating process to identify table_id.

sol1105 commented 2 months ago

With this it is possible to test against any set of MIP tables. The path to the tables needs to be specified as an input option: cchecker.py -t mip -O "mip:tables:/path/to/the/MIP/Tables" file.nc

When no tables are specified, compliance_checker will report that all tests passed, but exceptions occured. I do not know if this behaviour should be modified, since the intended behaviour is to report no error in the check setup when no mip tables are specified, since we expect the specific cc6-checker to automatically download them in this case.

Edit: I noticed I can use the _cc_specattribute of the class to make sure there are MIP tables defined for just the mipchecker.

sol1105 commented 2 months ago

The checks still need some work regarding bug fixes and unwanted exceptions, but that can be done in following PRs and needs test data from various projects.