Conversation
|
Is the main advantage of this run script over just running |
|
Honestly, at the time I did not know how to run the compliance-checker from the command line and decided it would be convenient to have a run script in the stglib style to run it on any file as a standalone. After your comment I did figure out how to run it from the command line, but I still see the utility in this run script as it leverages the code in stglib and metadata in the file to format the command properly and run the checker. I think it will also be useful to run a batch of files in a folder. e.g in windows can use a .bat to run all *.nc files in a folder with this simple code: for %%f in (*.nc) do ( |
Add script to run cf compliance checker utility in stglib.core.utils.py as standalone. File to check is passed as argument to the run script.
usage: runcfchecker.py [-h] ncname