Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate CF/ACDD compliance checking #27

Open
bschroeter opened this issue Mar 29, 2022 · 3 comments
Open

Integrate CF/ACDD compliance checking #27

bschroeter opened this issue Mar 29, 2022 · 3 comments
Labels
enhancement New feature or request v2.0.0

Comments

@bschroeter
Copy link
Collaborator

In order to verify the Conventions metadata in output files, we would need to integrate CF/ACDD compliance checks into the processing chain.

http://cfconventions.org/software.html
https://github.com/ioos/compliance-checker

No timeline at this stage, just a thought starter.

@bschroeter bschroeter added the enhancement New feature or request label Mar 29, 2022
@hot007
Copy link
Member

hot007 commented Aug 18, 2022

You can leverage an existing tool that contanis both -
module use /g/data/hh5/public/modules
module load conda
cchecker.py -t {cf,acdd} $filename
Note the CF requirement is stronger than ACDD for most purposes but ACDD is worth considering.

@bschroeter
Copy link
Collaborator Author

OK, I like this idea. It looks like there is a way to integrate cchecker into other python code:

https://github.com/ioos/compliance-checker#python-usage

However, it requires that the file be written out to actually run the check rather than doing it in memory. We might have to reverse engineer it a bit to work on an in-memory dataset or write to a scratch space for testing purposes before completing a DRS run.

@bschroeter
Copy link
Collaborator Author

Pushing downstream for next major release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request v2.0.0
Projects
None yet
Development

No branches or pull requests

2 participants