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

Explore the content of the JSON output format #75

Open
agstephens opened this issue Dec 7, 2021 · 0 comments
Open

Explore the content of the JSON output format #75

agstephens opened this issue Dec 7, 2021 · 0 comments

Comments

@agstephens
Copy link
Contributor

agstephens commented Dec 7, 2021

The structure of the JSON output format looks like:

{
  "product_mean-winds_land_checks:v2.0": {  # check name:version
    "scored_points": 384,    # total points
    "possible_points": 530,  # out of total
    "high_count": 35,          # number of (high) checks where the score is lower than the possible score
    "medium_count": 0,      # " " (medium) " "
    "low_count": 0,              # " " (low) " "
    "high_priorities": [...],        # sequence of high priority checks
    "medium_priorities": [...],     # sequence of medium priority checks
    "low_priorities": [...],            # sequence of low priority checks
    "all_priorities": [...],             # sequence of ALL (high, medium and low) priority checks
    "testname": "product_mean-winds_land_checks:v2.0",  # check name:version
    "source_name": "../../NCAS-Data-Project-Training-Data/Data/ncas-anemometer-1_ral_29001225_mean-winds_v0.1.nc",
    "scoreheader": {
      "3": "High Priority",
      "2": "Medium Priority",
      "1": "Low Priority"
    },
    "cc_spec_version": "4.3.3",   # Version of compliance checker tool
    "cc_url": ""
  }
}

Inside the sequence of checks, each check looks something like:

# SUCCESSES
      {
        "name": "File name structure",
        "weight": 3,
        "value": [
          1,
          1
        ],
        "msgs": [],
        "children": []
      },
      {
        "name": "File size hard limit 4Gbytes",
        "weight": 3,
        "value": [
          1,
          1
        ],
        "msgs": [],
        "children": []
      },

# FAILURES

      {
        "name": "Global attribute: Conventions",
        "weight": 3,
        "value": [
          1,
          2
        ],
        "msgs": [
          "Required 'Conventions' global attribute value does not match regex 'CF\\-1\\.6,\\ NCAS\\-AMF\\-2\\.0\\.0'."
        ],
        "children": []
      },

Tagging @gapintheclouds @gap736uk for info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant